@datagrok/bio 1.7.8 → 1.7.9
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@datagrok/bio",
|
|
3
3
|
"beta": false,
|
|
4
4
|
"friendlyName": "Bio",
|
|
5
|
-
"version": "1.7.
|
|
5
|
+
"version": "1.7.9",
|
|
6
6
|
"description": "Bio is a [package](https://datagrok.ai/help/develop/develop#packages) for the [Datagrok](https://datagrok.ai) platform",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {category,
|
|
1
|
+
import {category, expectArray, test} from '@datagrok-libraries/utils/src/test';
|
|
2
2
|
|
|
3
3
|
import * as grok from 'datagrok-api/grok';
|
|
4
4
|
import * as DG from 'datagrok-api/dg';
|
|
5
5
|
|
|
6
|
-
import {ConverterFunc
|
|
6
|
+
import {ConverterFunc} from './types';
|
|
7
7
|
import {NOTATION, NotationConverter} from '@datagrok-libraries/bio/src/utils/notation-converter';
|
|
8
8
|
|
|
9
9
|
// import {mmSemType} from '../const';
|
|
@@ -76,21 +76,19 @@ RNA1{R(U)P.R(U)P.R(C)P.R(A)P.R(A)P.R(C)P}$$$
|
|
|
76
76
|
`,
|
|
77
77
|
|
|
78
78
|
fastaGaps: `seq
|
|
79
|
-
FW-PH-
|
|
80
|
-
-
|
|
81
|
-
|
|
79
|
+
FW-PH-EYY
|
|
80
|
+
FYNRQWYV-
|
|
81
|
+
FKP-Q-SEYV
|
|
82
82
|
`,
|
|
83
|
-
|
|
84
83
|
separatorGaps: `seq
|
|
85
|
-
F/W//P/H//E/Y
|
|
86
|
-
/Y/N/R/Q/W/Y/V/
|
|
87
|
-
|
|
84
|
+
F/W//P/H//E/Y/Y
|
|
85
|
+
F/Y/N/R/Q/W/Y/V/
|
|
86
|
+
F/K/P//Q//S/E/Y/V
|
|
88
87
|
`,
|
|
89
|
-
|
|
90
88
|
helmGaps: `seq
|
|
91
|
-
PEPTIDE1{F.W.*.P.H.*.E.Y}$$$
|
|
92
|
-
PEPTIDE1{
|
|
93
|
-
PEPTIDE1{
|
|
89
|
+
PEPTIDE1{F.W.*.P.H.*.E.Y.Y}$$$
|
|
90
|
+
PEPTIDE1{F.Y.N.R.Q.W.Y.V.*}$$$
|
|
91
|
+
PEPTIDE1{F.K.P.*.Q.*.S.E.Y.V}$$$
|
|
94
92
|
`,
|
|
95
93
|
};
|
|
96
94
|
|
|
@@ -113,6 +111,9 @@ PEPTIDE1{M.K.P.*.*.*.S.E.Y.V}$$$
|
|
|
113
111
|
};
|
|
114
112
|
|
|
115
113
|
function converter(tgtNotation: NOTATION, tgtSeparator: string | null = null): ConverterFunc {
|
|
114
|
+
if (tgtNotation === NOTATION.SEPARATOR && !tgtSeparator)
|
|
115
|
+
throw new Error(`Argument 'separator' is missed for notation '${tgtNotation.toString()}'.`);
|
|
116
|
+
|
|
116
117
|
return function(srcCol: DG.Column): DG.Column {
|
|
117
118
|
const converter = new NotationConverter(srcCol);
|
|
118
119
|
const resCol = converter.convert(tgtNotation, tgtSeparator);
|
|
@@ -206,7 +207,7 @@ PEPTIDE1{M.K.P.*.*.*.S.E.Y.V}$$$
|
|
|
206
207
|
|
|
207
208
|
// helm -> separator
|
|
208
209
|
test('HelmDnaToSeparator', async () => {
|
|
209
|
-
await _testConvert(Samples.helmDna, converter(NOTATION.SEPARATOR), Samples.separatorDna);
|
|
210
|
+
await _testConvert(Samples.helmDna, converter(NOTATION.SEPARATOR, '/'), Samples.separatorDna);
|
|
210
211
|
});
|
|
211
212
|
test('HelmRnaToSeparator', async () => {
|
|
212
213
|
await _testConvert(Samples.helmRna, converter(NOTATION.SEPARATOR, '*'), Samples.separatorRna);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<html><head><meta charset="utf-8"/><title>Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=34f75e5127b8. Commit
|
|
1
|
+
<html><head><meta charset="utf-8"/><title>Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=34f75e5127b8. Commit 0a8a5821.</title><style type="text/css">html,
|
|
2
2
|
body {
|
|
3
3
|
font-family: Arial, Helvetica, sans-serif;
|
|
4
4
|
font-size: 1rem;
|
|
@@ -229,14 +229,10 @@ header {
|
|
|
229
229
|
font-size: 1rem;
|
|
230
230
|
padding: 0 0.5rem;
|
|
231
231
|
}
|
|
232
|
-
</style></head><body><div id="jesthtml-content"><header><h1 id="title">Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=34f75e5127b8. Commit
|
|
232
|
+
</style></head><body><div id="jesthtml-content"><header><h1 id="title">Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=34f75e5127b8. Commit 0a8a5821.</h1></header><div id="metadata-container"><div id="timestamp">Started: 2022-07-19 13:18:04</div><div id="summary"><div id="suite-summary"><div class="summary-total">Suites (1)</div><div class="summary-passed summary-empty">0 passed</div><div class="summary-failed">1 failed</div><div class="summary-pending summary-empty">0 pending</div></div><div id="test-summary"><div class="summary-total">Tests (1)</div><div class="summary-passed summary-empty">0 passed</div><div class="summary-failed">1 failed</div><div class="summary-pending summary-empty">0 pending</div></div></div></div><div id="suite-1" class="suite-container"><div class="suite-info"><div class="suite-path">/home/runner/work/public/public/packages/Bio/src/__jest__/remote.test.ts</div><div class="suite-time warn">189.946s</div></div><div class="suite-tests"><div class="test-result failed"><div class="test-info"><div class="test-suitename"> </div><div class="test-title">TEST</div><div class="test-status">failed</div><div class="test-duration">177.683s</div></div><div class="failureMessages"> <pre class="failureMsg">Error: Test result : Bio.MSA.is_correct : TypeError: Cannot read properties of undefined (reading 'split')
|
|
233
233
|
Test result : Bio.splitters.testHelm1 : Error: Expected R(U)P at position 0, got U
|
|
234
234
|
Test result : Bio.splitters.testHelm2 : Error: Expected R(U)P at position 1, got U
|
|
235
235
|
Test result : Bio.splitters.testHelm3 : Error: Expected R(U) at position 1, got U)
|
|
236
|
-
Test result : Bio.converters.testFastaGapsToSeparator : Error: Units are not specified in column
|
|
237
|
-
Test result : Bio.converters.testFastaGapsToHelm : Error: Units are not specified in column
|
|
238
|
-
Test result : Bio.converters.HelmDnaToFasta : Error: Units are not specified in column
|
|
239
|
-
Test result : Bio.converters.HelmDnaToSeparator : Error: Units are not specified in column
|
|
240
236
|
|
|
241
237
|
at /home/runner/work/public/public/packages/Bio/src/__jest__/remote.test.ts:67:20
|
|
242
238
|
at Generator.next (<anonymous>)
|
|
@@ -321,9 +317,11 @@ Test result : Bio.renderers.afterConvert : OK
|
|
|
321
317
|
Test result : Bio.converters.testFastaPtToSeparator : OK
|
|
322
318
|
Test result : Bio.converters.testFastaDnaToSeparator : OK
|
|
323
319
|
Test result : Bio.converters.testFastaRnaToSeparator : OK
|
|
320
|
+
Test result : Bio.converters.testFastaGapsToSeparator : OK
|
|
324
321
|
Test result : Bio.converters.testFastaPtToHelm : OK
|
|
325
322
|
Test result : Bio.converters.testFastaDnaToHelm : OK
|
|
326
323
|
Test result : Bio.converters.testFastaRnaToHelm : OK
|
|
324
|
+
Test result : Bio.converters.testFastaGapsToHelm : OK
|
|
327
325
|
Test result : Bio.converters.testSeparatorPtToFasta : OK
|
|
328
326
|
Test result : Bio.converters.testSeparatorDnaToFasta : OK
|
|
329
327
|
Test result : Bio.converters.testSeparatorRnaToFasta : OK
|
|
@@ -332,8 +330,10 @@ Test result : Bio.converters.testSeparatorPtToHelm : OK
|
|
|
332
330
|
Test result : Bio.converters.testSeparatorDnaToHelm : OK
|
|
333
331
|
Test result : Bio.converters.testSeparatorRnaToHelm : OK
|
|
334
332
|
Test result : Bio.converters.testSeparatorGapsToHelm : OK
|
|
333
|
+
Test result : Bio.converters.HelmDnaToFasta : OK
|
|
335
334
|
Test result : Bio.converters.HelmRnaToFasta : OK
|
|
336
335
|
Test result : Bio.converters.HelmPtToFasta : OK
|
|
336
|
+
Test result : Bio.converters.HelmDnaToSeparator : OK
|
|
337
337
|
Test result : Bio.converters.HelmRnaToSeparator : OK
|
|
338
338
|
Test result : Bio.converters.HelmPtToSeparator : OK
|
|
339
339
|
</pre></div></div></div></div></body></html>
|