@datagrok/bio 2.17.2 → 2.17.3

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "name": "Leonid Stolbov",
6
6
  "email": "lstolbov@datagrok.ai"
7
7
  },
8
- "version": "2.17.2",
8
+ "version": "2.17.3",
9
9
  "description": "Bioinformatics support (import/export of sequences, conversion, visualization, analysis). [See more](https://github.com/datagrok-ai/public/blob/master/packages/Bio/README.md) for details.",
10
10
  "repository": {
11
11
  "type": "git",
package/src/package.ts CHANGED
@@ -419,14 +419,6 @@ export function getRegion(
419
419
  start ?? null, end ?? null, name ?? null);
420
420
  }
421
421
 
422
- //top-menu: Bio | Manage | Monomers
423
- //name: manageMonomersView
424
- //description: Edit and create monomers
425
- export async function manageMonomersView() {
426
- const monomerManager = await MonomerManager.getInstance();
427
- await monomerManager.getViewRoot();
428
- }
429
-
430
422
  //top-menu: Bio | Convert | Get Region...
431
423
  //name: Get Region Top Menu
432
424
  //description: Get sequences for a region specified from a Macromolecule
@@ -961,6 +953,29 @@ export async function manageLibrariesView(): Promise<void> {
961
953
  await showManageLibrariesView();
962
954
  }
963
955
 
956
+ //top-menu: Bio | Manage | Monomers
957
+ //name: manageMonomersView
958
+ //description: Edit and create monomers
959
+ export async function manageMonomersView() {
960
+ const monomerManager = await MonomerManager.getInstance();
961
+ await monomerManager.getViewRoot();
962
+ }
963
+
964
+ //name: Manage Monomers
965
+ //tags: app
966
+ //meta.browsePath: Peptides | Monomers
967
+ export async function manageMonomersApp() {
968
+ const monomerManager = await MonomerManager.getInstance();
969
+ await monomerManager.getViewRoot();
970
+ }
971
+
972
+ //name: Manage Libraries
973
+ //tags: app
974
+ //meta.browsePath: Peptides | Monomers
975
+ export async function manageLibrariesApp(): Promise<void> {
976
+ await showManageLibrariesView();
977
+ }
978
+
964
979
  //name: saveAsFasta
965
980
  //description: As FASTA...
966
981
  //tags: fileExporter
@@ -41,11 +41,6 @@ export function convert(col: DG.Column<string> | undefined, seqHelper: ISeqHelpe
41
41
  NOTATION.HELM,
42
42
  ];
43
43
  const toggleColumn = (newCol: DG.Column) => {
44
- if (newCol.semType !== DG.SEMTYPE.MACROMOLECULE) {
45
- targetColumnInput.value = srcCol;
46
- return;
47
- }
48
-
49
44
  srcCol = newCol;
50
45
  converterSh = seqHelper.getSeqHandler(srcCol);
51
46
  currentNotation = converterSh.notation;
@@ -69,6 +64,8 @@ export function convert(col: DG.Column<string> | undefined, seqHelper: ISeqHelpe
69
64
 
70
65
  const targetColumnInput = ui.input.column('Column', {
71
66
  table: grok.shell.t, value: srcCol,
67
+ filter: (col: DG.Column) => col.semType === DG.SEMTYPE.MACROMOLECULE,
68
+ nullable: false,
72
69
  onValueChanged: (value) => toggleColumn(value)
73
70
  });
74
71
 
@@ -34,7 +34,7 @@ export async function sequenceToMolfile(
34
34
  df.columns.add(helmCol, false);
35
35
  }
36
36
  try {
37
- res = await seqHelper.helmToAtomicLevel(helmCol, true, true);
37
+ res = await seqHelper.helmToAtomicLevel(helmCol, true, true, monomerLib);
38
38
  } finally {
39
39
  if (helmCol !== macroMolecule) {
40
40
  df.columns.remove(helmCol.name);
package/src/global.d.ts DELETED
@@ -1,13 +0,0 @@
1
- import * as grokNamespace from 'datagrok-api/grok';
2
- import * as uiNamespace from 'datagrok-api/ui';
3
- import * as DGNamespace from 'datagrok-api/dg';
4
- import * as rxjsNamespace from 'rxjs';
5
- import $Namespace from 'cash-dom';
6
-
7
- declare global {
8
- const grok: typeof grokNamespace;
9
- const ui: typeof uiNamespace;
10
- const DG: typeof DGNamespace;
11
- const rjxs: typeof rxjsNamespace;
12
- const $: typeof $Namespace;
13
- }