@datagrok/hit-triage 1.6.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # HitTriage changelog
2
2
 
3
+ ## 1.7.1 (2025-04-09)
4
+
5
+ * Ability to reorder/hide functions in new template or functions dialog.
6
+
7
+ ## 1.7.0 (2025-04-01)
8
+
9
+ * Fix not saving campaigns
10
+
3
11
  ## 1.5.0 (2025-03-01)
4
12
 
5
13
  * Add caching to loaded campaigns.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # HitTriage
1
+ # Hit Triage
2
2
 
3
- The **HitTriage** package is a powerful tool designed for molecule analysis and campaign management within the Datagrok environment. It consists of two applications: [HitTriage](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HT.md) and [HitDesign](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HD.md).
3
+ The **Hit Triage** package is a powerful tool designed for molecule analysis and campaign management within the Datagrok environment. It consists of two applications: [Hit Triage](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HT.md) and [Hit Design](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HD.md).
4
4
 
5
- - The **HitTriage** application is designed for molecule analysis and filtering. It allows users to upload a dataset, filter it, calculate molecular properties, submit the results to any chosen function or query and share campaigns between users. More about HitTriage can be found [here](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HT.md).
5
+ - The **Hit Triage** application is designed for molecule analysis and filtering. It allows users to upload a dataset, filter it, calculate molecular properties, submit the results to any chosen function or query and share campaigns between users. More about Hit Triage can be found [here](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HT.md).
6
6
 
7
- - The **HitDesign** application is similar in terms of campaign management, but instead of uploading a dataset, users can sketch molecules, calculate molecular properties, filter and organize them in stages. More about HitDesign can be found [here](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HT.md).
7
+ - The **Hit Design** application is similar in terms of campaign management, but instead of uploading a dataset, users can sketch molecules, calculate molecular properties, filter and organize them in stages. More about Hit Design can be found [here](https://github.com/datagrok-ai/public/blob/master/packages/HitTriage/README_HT.md).
8
8
 
9
9
 
package/README_HD.md CHANGED
@@ -1,6 +1,6 @@
1
- # HitDesign
1
+ # Hit Design
2
2
 
3
- HitDesign streamlines the process of designing new molecules and collaborating on molecular ideas.
3
+ Hit Design streamlines the process of designing new molecules and collaborating on molecular ideas.
4
4
  You can sketch molecules,
5
5
  calculate or predict chemical and biological properties, enrich data with information
6
6
  from the proprietary databases, filter based on these properties or substructure search, select hits,
@@ -13,7 +13,7 @@ seamless integration.
13
13
 
14
14
  ## Templates
15
15
 
16
- Templates in HitDesign contain essential configurations for conducting a campaign. Template configuration includes:
16
+ Templates in Hit Design contain essential configurations for conducting a campaign. Template configuration includes:
17
17
 
18
18
  - **Name** : Identifies the template.
19
19
 
@@ -25,7 +25,7 @@ Templates in HitDesign contain essential configurations for conducting a campaig
25
25
 
26
26
  - **Stages** : Define stages for the campaign. Tiles view provides a versatile way to organize molecules in the campaign. Users can drag and drop molecules between stages. For example, stages can be used to organize molecules by their readiness for synthesis.
27
27
 
28
- - **Compute functions** : HitDesign aggregates compute functions tagged with `HitTriageFunction` from Datagrok packages. Users can select from these functions to perform calculations (e.g., mass, solubility, mutagenicity, partial charges, toxicity risks, etc.) on the dataset.
28
+ - **Compute functions** : Hit Design aggregates compute functions tagged with `HitTriageFunction` from Datagrok packages. Users can select from these functions to perform calculations (e.g., mass, solubility, mutagenicity, partial charges, toxicity risks, etc.) on the dataset.
29
29
  Every time user changes given molecule or adds new molecule to a dataframe, compute functions are executed automatically for that row.
30
30
 
31
31
  - **Submit function** : Define custom submit functions (tagged with `HitTriageSubmitFunction`) to further process or save the filtered and computed dataset. This could include saving to a private database or additional calculations.
@@ -80,7 +80,7 @@ Campaign status can be changed through 'Submit' menu. You can set status to anyt
80
80
 
81
81
  ## Adding custom compute and submit functions
82
82
 
83
- HitDesign allows users to define custom compute and submit functions, and these functions can be written in any Datagrok package that is installed in the environment.
83
+ Hit Design allows users to define custom compute and submit functions, and these functions can be written in any Datagrok package that is installed in the environment.
84
84
 
85
85
  ### Compute Functions
86
86
 
@@ -189,6 +189,10 @@ from unnest(@molecules) as molecules
189
189
  where is_valid_smiles(Cast(molecules as cstring))
190
190
  ```
191
191
 
192
+ If the number of functions is getting large, you might prefer to see only relevant ones in the order you prefer. You can hide/reorder the functions in functions dialog or template using the pencil (✎) icon on the top right corner.
193
+
194
+ ![hitDesignReadmeImg](https://github.com/datagrok-ai/public/blob/master/help/uploads/hittriage/HD-Reorder-functions.gif?raw=true)
195
+
192
196
  ### Submit Functions
193
197
 
194
198
  Submit functions are used to save or submit the filtered and computed dataset. This could include saving to a private database or additional calculations. Submit functions are defined in the same way as compute functions, but they are tagged with `HitTriageSubmitFunction` tag. The function should accept only two inputs, `Dataframe` `df` and `String` `molecules`, which are the resulting dataframe and name of molecules column respectively. For example, we can create a function that saves the filtered and computed dataset to a database:
@@ -216,7 +220,7 @@ Similarly, you can manage view permissions, which will restrict access to viewin
216
220
 
217
221
  ![hitDesignReadmeImg](https://github.com/datagrok-ai/public/blob/master/help/uploads/hittriage/HD-view-permissions.gif?raw=true)
218
222
 
219
- You can also modify the default shyaring permissions for all newly created campaigns. To do so, modify the HitTriage package settings.
223
+ You can also modify the default sharing permissions for all newly created campaigns. To do so, modify the HitTriage package settings.
220
224
 
221
225
  1. Go to `Browse` → `Platform` and click on `Plugins` (or directly via a link at `{your_datagrok_url}/packages`).
222
226
  2. Under Cheminformatics, click on `HitTriage` package.
package/README_HT.md CHANGED
@@ -1,16 +1,16 @@
1
- # HitTriage
1
+ # Hit Triage
2
2
 
3
- HitTriage is a dynamic application designed for chemists and biologists to streamline the process of selecting molecular hits. It facilitates collaboration by allowing users to load datasets, calculate molecular properties, filter based on these properties or substructure search, select hits, save campaigns, and share their work with others. The application is built around templates and campaigns, providing a structured yet flexible approach to hit triage process.
3
+ Hit Triage is a dynamic application designed for chemists and biologists to streamline the process of selecting molecular hits. It facilitates collaboration by allowing users to load datasets, calculate molecular properties, filter based on these properties or substructure search, select hits, save campaigns, and share their work with others. The application is built around templates and campaigns, providing a structured yet flexible approach to hit triage process.
4
4
 
5
5
  ## Templates
6
6
 
7
- Templates in HitTriage contain essential configurations for conducting a campaign. template configuration includes:
7
+ Templates in Hit Triage contain essential configurations for conducting a campaign. template configuration includes:
8
8
 
9
9
  - **Name** : Identifies the template.
10
10
 
11
11
  - **Campaign Prefix** : A code used as a prefix for campaign names (e.g., TMP-1, TMP-2).
12
12
 
13
- - **Data Ingestion Settings** : Controls how molecular data is ingested into the template. Users can choose between file upload or a query option. For the query, HitTriage searches for functions in any Datagrok package tagged with `HitTriageDataSource` and queries with same tag. For example, a package can export the following function:
13
+ - **Data Ingestion Settings** : Controls how molecular data is ingested into the template. Users can choose between file upload or a query option. For the query, Hit Triage searches for functions in any Datagrok package tagged with `HitTriageDataSource` and queries with same tag. For example, a package can export the following function:
14
14
 
15
15
  ```//name: Demo File Ingestion
16
16
  //input: int numberOfMolecules [Molecules count]
@@ -68,7 +68,7 @@ export async function chemblMolregno(table: DG.DataFrame, molecules: DG.Column):
68
68
  }
69
69
  ```
70
70
 
71
- This function will go through every molecule in the dataframe, convert them to canonical smiles and call the query from Chembl database, that will retrieve the molregno number. The result will be added as a new column to the dataframe. If this function is defined in the `Chembl` package, after building and deploying it to stand, it will be automatically added to the compute functions list in HitDesign.
71
+ This function will go through every molecule in the dataframe, convert them to canonical smiles and call the query from Chembl database, that will retrieve the molregno number. The result will be added as a new column to the dataframe. If this function is defined in the `Chembl` package, after building and deploying it to stand, it will be automatically added to the compute functions list in Hit Design.
72
72
 
73
73
  Datagrok scripts can also be used as compute functions. For example, you can create a js script that adds a new column to the dataframe. This script also needs to have `HitTriageFunction` tag and should accept `Dataframe` `table` and `Column` `molecules` as first two inputs:
74
74