@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.
@@ -0,0 +1,5 @@
1
+ Core
2
+ n1nc([*:3])n([*:2])c1[*:1]
3
+ C1C2CN([*:2])CC2CN1[*:1]
4
+ OC1CN([*:2])CCC1N[*:1]
5
+ CC1(N[*:1])CCN([*:2])C1
@@ -0,0 +1,5 @@
1
+ R1,R2,R3
2
+ CC1CCN([*:1])C1C,O=C(C[*:2])NCC(F)(F)F,Cc1cccc([*:3])n1
3
+ NCCC(=O)[*:1],O=C1NC(C(=O)[*:2])CO1,
4
+ CC(=O)[*:1],O=C(CCCF)[*:2],
5
+ O=C(c1cc[nH]n1)[*:1],c1ccc(C[*:2])nc1,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/sequence-translator",
3
3
  "friendlyName": "Sequence Translator",
4
- "version": "1.10.19",
4
+ "version": "1.10.21",
5
5
  "author": {
6
6
  "name": "Davit Rizhinashvili",
7
7
  "email": "drizhinashvili@datagrok.ai"
@@ -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 chemEnumerateReactionsTopMenu(): Promise<void> {
109
- return await grok.functions.call('SequenceTranslator:ChemEnumerateReactionsTopMenu', {});
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: polyToolEnumerateChem
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 | Reactions | Enumerate...
154
- export async function chemEnumerateReactionsTopMenu() : Promise<void> {
155
- await PackageFunctions.chemEnumerateReactionsTopMenu();
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: Chem Enumerator
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 | PolyTool
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': 'Bio | PolyTool | Enumerate Chem...',
278
- 'name': 'polyToolEnumerateChem',
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 chemEnumerateReactionsTopMenu(): Promise<void> {
292
- polyToolEnumerateChemUI();
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 | PolyTool',
327
+ browsePath: 'Chem',
335
328
  role: 'app'
336
329
  },
337
- name: 'Chem Enumerator',
330
+ name: 'Markush Enumerator',
338
331
  tags: ['app'],
339
332
  outputs: [{type: 'view', name: 'result'}]
340
333
  })