@datagrok/bio 2.11.36 → 2.11.37

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.11.36",
8
+ "version": "2.11.37",
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",
@@ -81,12 +81,12 @@ MWRSWYCKHPMWRSWYCKHPMWRSWYCKHPMWRSWYCKHPMWRSWYCKHPMWRSWYCKHPMWRSWYCKHPMWRSWYCKHP
81
81
  test('isCorrectHelm', async () => {
82
82
  await awaitContainerStart();
83
83
  await _testMSAOnColumn(helmFromCsv, helmToCsv, NOTATION.HELM, NOTATION.SEPARATOR, undefined, 'mafft');
84
- }, {timeout: 60000});
84
+ }, {timeout: 60000 /* docker */});
85
85
 
86
86
  test('isCorrectHelmLong', async () => {
87
87
  await awaitContainerStart();
88
88
  await _testMSAOnColumn(longHelmFromCsv, longHelmToCsv, NOTATION.HELM, NOTATION.SEPARATOR, undefined, 'mafft');
89
- }, {timeout: 60000});
89
+ }, {timeout: 60000 /* docker */});
90
90
 
91
91
  test('isCorrectSeparator', async () => {
92
92
  await _testMSAOnColumn(
@@ -1,6 +1,6 @@
1
1
  import * as DG from 'datagrok-api/dg';
2
2
 
3
- import {category, expect, test} from '@datagrok-libraries/utils/src/test';
3
+ import {before, category, expect, test} from '@datagrok-libraries/utils/src/test';
4
4
  import {runPepsea} from '../utils/pepsea';
5
5
  import {awaitContainerStart} from './utils';
6
6
 
@@ -12,13 +12,16 @@ category('PepSeA', () => {
12
12
  "PEPTIDE1{F.L.R.G.Y.[MeF].Y.W.S.N.D.C}$$$$","F.L.R.G.Y.MeF.Y.W.S.N.D.C"
13
13
  "PEPTIDE1{F.V.R.G.Y.[MeF].Y.W.S.N.C}$$$$","F.V.R.G.Y.MeF.Y.W.S..N.C"`;
14
14
 
15
- test('Basic alignment', async () => {
15
+ before(async () => {
16
16
  await awaitContainerStart();
17
+ });
18
+
19
+ test('Basic alignment', async () => {
17
20
  const table = DG.DataFrame.fromCsv(testCsv);
18
21
  const alignedCol = await runPepsea(table.getCol('HELM'), 'msa(HELM)');
19
22
  expect(alignedCol !== null, true, 'PepSeA container has not started');
20
23
  const alignedTestCol = table.getCol('MSA');
21
24
  for (let i = 0; i < alignedCol!.length; ++i)
22
25
  expect(alignedCol!.get(i) == alignedTestCol.get(i), true);
23
- }, {timeout: 60000});
26
+ }, {timeout: 60000 /* docker */});
24
27
  });
@@ -106,7 +106,9 @@ export class HelmToMolfileConverter {
106
106
  return DG.Column.fromStrings(columnName, beautifiedMols.map((mol) => {
107
107
  if (mol === null)
108
108
  return '';
109
- return mol.get_molblock();
109
+ const molBlock = mol.get_v3Kmolblock();
110
+ mol!.delete();
111
+ return molBlock;
110
112
  }));
111
113
  }
112
114