@datagrok/sequence-translator 1.10.19 → 1.10.21
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 +4 -0
- package/detectors.js +4 -4
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/files/enumeration/chem_enum_cores.csv +5 -0
- package/files/enumeration/chem_enum_rgroups.csv +5 -0
- package/package.json +1 -1
- package/src/package-api.ts +2 -9
- package/src/package.g.ts +6 -13
- package/src/package.ts +9 -16
- package/src/polytool/pt-chem-enum-dialog.ts +377 -58
- package/test-console-output-1.log +164 -163
- package/test-record-1.mp4 +0 -0
package/package.json
CHANGED
package/src/package-api.ts
CHANGED
|
@@ -95,18 +95,11 @@ export namespace funcs {
|
|
|
95
95
|
return await grok.functions.call('SequenceTranslator:PolyToolEnumerateHelmTopMenu', {});
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
/**
|
|
99
|
-
Perform enumeration of a molecule using different fragments at specified positions
|
|
100
|
-
*/
|
|
101
|
-
export async function polyToolEnumerateChemTopMenu(): Promise<void> {
|
|
102
|
-
return await grok.functions.call('SequenceTranslator:PolyToolEnumerateChemTopMenu', {});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
98
|
/**
|
|
106
99
|
Enumerate cores and R-group lists into a molecule table (Zip or Cartesian)
|
|
107
100
|
*/
|
|
108
|
-
export async function
|
|
109
|
-
return await grok.functions.call('SequenceTranslator:
|
|
101
|
+
export async function chemEnumerateMarkushTopMenu(): Promise<void> {
|
|
102
|
+
return await grok.functions.call('SequenceTranslator:ChemEnumerateMarkushTopMenu', {});
|
|
110
103
|
}
|
|
111
104
|
|
|
112
105
|
export async function polyToolColumnChoice(df: DG.DataFrame , macroMolecule: DG.Column ): Promise<void> {
|
package/src/package.g.ts
CHANGED
|
@@ -141,18 +141,11 @@ export async function polyToolEnumerateHelmTopMenu() : Promise<void> {
|
|
|
141
141
|
await PackageFunctions.polyToolEnumerateHelmTopMenu();
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
//name:
|
|
145
|
-
//description: Perform enumeration of a molecule using different fragments at specified positions
|
|
146
|
-
//top-menu: Bio | PolyTool | Enumerate Chem...
|
|
147
|
-
export async function polyToolEnumerateChemTopMenu() : Promise<void> {
|
|
148
|
-
await PackageFunctions.polyToolEnumerateChemTopMenu();
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
//name: chemEnumerateReactions
|
|
144
|
+
//name: Markush Enumerator
|
|
152
145
|
//description: Enumerate cores and R-group lists into a molecule table (Zip or Cartesian)
|
|
153
|
-
//top-menu: Chem | Transform |
|
|
154
|
-
export async function
|
|
155
|
-
await PackageFunctions.
|
|
146
|
+
//top-menu: Chem | Transform | Markush Enumeration...
|
|
147
|
+
export async function chemEnumerateMarkushTopMenu() : Promise<void> {
|
|
148
|
+
await PackageFunctions.chemEnumerateMarkushTopMenu();
|
|
156
149
|
}
|
|
157
150
|
|
|
158
151
|
//input: dataframe df { description: Input data table }
|
|
@@ -175,11 +168,11 @@ export async function ptEnumeratorHelmApp() : Promise<void> {
|
|
|
175
168
|
await PackageFunctions.ptEnumeratorHelmApp();
|
|
176
169
|
}
|
|
177
170
|
|
|
178
|
-
//name:
|
|
171
|
+
//name: Markush Enumerator
|
|
179
172
|
//tags: app
|
|
180
173
|
//output: view result
|
|
181
174
|
//meta.icon: img/icons/structure.png
|
|
182
|
-
//meta.browsePath: Chem
|
|
175
|
+
//meta.browsePath: Chem
|
|
183
176
|
//meta.role: app
|
|
184
177
|
export async function ptEnumeratorChemApp() {
|
|
185
178
|
return await PackageFunctions.ptEnumeratorChemApp();
|
package/src/package.ts
CHANGED
|
@@ -274,22 +274,15 @@ export class PackageFunctions {
|
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
@grok.decorators.func({
|
|
277
|
-
'top-menu': '
|
|
278
|
-
'name': '
|
|
279
|
-
'description': 'Perform enumeration of a molecule using different fragments at specified positions'
|
|
280
|
-
})
|
|
281
|
-
static async polyToolEnumerateChemTopMenu(): Promise<void> {
|
|
282
|
-
polyToolEnumerateChemUI();
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
@grok.decorators.func({
|
|
287
|
-
'top-menu': 'Chem | Transform | Reactions | Enumerate...',
|
|
288
|
-
'name': 'chemEnumerateReactions',
|
|
277
|
+
'top-menu': 'Chem | Transform | Markush Enumeration...',
|
|
278
|
+
'name': 'Markush Enumerator',
|
|
289
279
|
'description': 'Enumerate cores and R-group lists into a molecule table (Zip or Cartesian)'
|
|
290
280
|
})
|
|
291
|
-
static async
|
|
292
|
-
|
|
281
|
+
static async chemEnumerateMarkushTopMenu(): Promise<void> {
|
|
282
|
+
let cell: DG.Cell | undefined = undefined;
|
|
283
|
+
if (grok.shell.tv?.dataFrame && grok.shell.tv.dataFrame.currentCell && grok.shell.tv.dataFrame.currentCell.column.semType === DG.SEMTYPE.MOLECULE)
|
|
284
|
+
cell = grok.shell.tv.dataFrame.currentCell;
|
|
285
|
+
polyToolEnumerateChemUI(cell);
|
|
293
286
|
}
|
|
294
287
|
|
|
295
288
|
|
|
@@ -331,10 +324,10 @@ export class PackageFunctions {
|
|
|
331
324
|
@grok.decorators.func({
|
|
332
325
|
meta: {
|
|
333
326
|
icon: 'img/icons/structure.png',
|
|
334
|
-
browsePath: 'Chem
|
|
327
|
+
browsePath: 'Chem',
|
|
335
328
|
role: 'app'
|
|
336
329
|
},
|
|
337
|
-
name: '
|
|
330
|
+
name: 'Markush Enumerator',
|
|
338
331
|
tags: ['app'],
|
|
339
332
|
outputs: [{type: 'view', name: 'result'}]
|
|
340
333
|
})
|