@datagrok/bio 2.10.26 → 2.10.27
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 +2 -2
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js.map +1 -1
- package/files/tests/sepComplex.csv +4 -0
- package/package.json +2 -1
- package/src/package.g.ts +0 -0
- package/src/package.ts +1 -0
- package/src/tests/detectors-benchmark-tests.ts +1 -1
- package/src/tests/detectors-tests.ts +15 -4
- package/tsconfig.json +2 -2
- package/webpack.config.js +4 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "Leonid Stolbov",
|
|
6
6
|
"email": "lstolbov@datagrok.ai"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.10.
|
|
8
|
+
"version": "2.10.27",
|
|
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",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"@types/wu": "latest",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "latest",
|
|
57
57
|
"@typescript-eslint/parser": "latest",
|
|
58
|
+
"datagrok-tools": "latest",
|
|
58
59
|
"eslint": "latest",
|
|
59
60
|
"eslint-config-google": "latest",
|
|
60
61
|
"source-map-loader": "^4.0.1",
|
package/src/package.g.ts
ADDED
|
File without changes
|
package/src/package.ts
CHANGED
|
@@ -467,6 +467,7 @@ export async function activityCliffs(df: DG.DataFrame, macroMolecule: DG.Column<
|
|
|
467
467
|
//input: bool plotEmbeddings = true
|
|
468
468
|
//input: double sparseMatrixThreshold = 0.8 [Similarity Threshold for sparse matrix calculation]
|
|
469
469
|
//input: object options {optional: true}
|
|
470
|
+
//output: viewer result
|
|
470
471
|
//editor: Bio:SequenceSpaceEditor
|
|
471
472
|
export async function sequenceSpaceTopMenu(
|
|
472
473
|
table: DG.DataFrame, macroMolecule: DG.Column, methodName: DimReductionMethods,
|
|
@@ -25,7 +25,7 @@ category('detectorsBenchmark', () => {
|
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
test('fastaDnaShorts50Many1E6', async () => {
|
|
28
|
-
await detectMacromoleculeBenchmark(
|
|
28
|
+
await detectMacromoleculeBenchmark(20, NOTATION.FASTA, ALPHABET.DNA, 50, 1E6);
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
test('fastaDnaLong1e6Few50', async () => {
|
|
@@ -39,6 +39,7 @@ category('detectors', () => {
|
|
|
39
39
|
sepUn2 = 'sepUn2',
|
|
40
40
|
sepMsaDna1 = 'sepMsaDna1',
|
|
41
41
|
sepMsaUnWEmpty = 'sepMsaUnWEmpty',
|
|
42
|
+
sepComplex = 'sepComplex',
|
|
42
43
|
fastaMsaDna1 = 'fastaMsaDna1',
|
|
43
44
|
fastaMsaPt1 = 'fastaMsaPt1',
|
|
44
45
|
}
|
|
@@ -115,6 +116,10 @@ m1-M-m3-mon4-mon5-N-T-MON8-N9
|
|
|
115
116
|
m1-mon2-m3-mon4-mon5-Num--MON8-N9
|
|
116
117
|
|
|
117
118
|
mon1-M-mon3-mon4-mon5---MON8-N9`;
|
|
119
|
+
[csvTests.sepComplex]: string = `seq
|
|
120
|
+
Ac(1)-F-K(AEEA-AEEA-R-Ac)-L-mF-V-Y-mNle-D-W-N-mF-C(1)-G-NH2
|
|
121
|
+
Ac(1)-F-K(AEEA-ARRA-W-Ac)-L-mF-V-Y-mNle-D-W-N-mF-C(1)-G-NH2
|
|
122
|
+
Ac(1)-F-K(AEEA-AEEA-Ac)-L-mF-V-Y-mNle-D-W-N-mF-C(1)-G-NH2`;
|
|
118
123
|
[csvTests.fastaMsaDna1]: string = `seq
|
|
119
124
|
AC-GT-CT
|
|
120
125
|
CAC-T-GT
|
|
@@ -244,10 +249,6 @@ MWRSWY-CKHP`;
|
|
|
244
249
|
NOTATION.FASTA, ALIGNMENT.SEQ_MSA, ALPHABET.UN, 12, true);
|
|
245
250
|
});
|
|
246
251
|
|
|
247
|
-
test('SepMsaUnWEmpty', async () => {
|
|
248
|
-
await _testPos(readCsv(csvTests.sepMsaUnWEmpty), 'seq',
|
|
249
|
-
NOTATION.SEPARATOR, ALIGNMENT.SEQ_MSA, ALPHABET.UN, 14, true);
|
|
250
|
-
});
|
|
251
252
|
test('FastaMsaDna1', async () => {
|
|
252
253
|
await _testPos(readCsv(csvTests.fastaMsaDna1), 'seq',
|
|
253
254
|
NOTATION.FASTA, ALIGNMENT.SEQ_MSA, ALPHABET.DNA, 4, false);
|
|
@@ -284,6 +285,16 @@ MWRSWY-CKHP`;
|
|
|
284
285
|
NOTATION.SEPARATOR, ALIGNMENT.SEQ_MSA, ALPHABET.DNA, 4, false, '-');
|
|
285
286
|
});
|
|
286
287
|
|
|
288
|
+
test('SepMsaUnWEmpty', async () => {
|
|
289
|
+
await _testPos(readCsv(csvTests.sepMsaUnWEmpty), 'seq',
|
|
290
|
+
NOTATION.SEPARATOR, ALIGNMENT.SEQ_MSA, ALPHABET.UN, 14, true);
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
test('SepComplex', async () => {
|
|
294
|
+
await _testPos(readCsv(csvTests.sepComplex), 'seq',
|
|
295
|
+
NOTATION.SEPARATOR, ALIGNMENT.SEQ, ALPHABET.UN, 18, true);
|
|
296
|
+
});
|
|
297
|
+
|
|
287
298
|
test('samplesFastaCsv', async () => {
|
|
288
299
|
await _testDf(readSamples(Samples.fastaCsv), {
|
|
289
300
|
'Sequence': new PosCol(NOTATION.FASTA, ALIGNMENT.SEQ, ALPHABET.PT, 20, false),
|
package/tsconfig.json
CHANGED
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
|
|
62
62
|
|
|
63
63
|
/* Experimental Options */
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
|
|
65
|
+
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
66
66
|
|
|
67
67
|
/* Advanced Options */
|
|
68
68
|
"skipLibCheck": false, /* Skip type checking of declaration files. */
|
package/webpack.config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
+
const FuncGeneratorPlugin = require('datagrok-tools/plugins/func-gen-plugin');
|
|
2
3
|
const packageName = path.parse(require('./package.json').name).name.toLowerCase().replace(/-/g, '');
|
|
3
4
|
|
|
4
5
|
module.exports = {
|
|
@@ -22,6 +23,9 @@ module.exports = {
|
|
|
22
23
|
{test: /\.css$/, use: ['style-loader', 'css-loader']},
|
|
23
24
|
],
|
|
24
25
|
},
|
|
26
|
+
plugins: [
|
|
27
|
+
new FuncGeneratorPlugin({outputPath: './src/package.g.ts'}),
|
|
28
|
+
],
|
|
25
29
|
devtool: 'source-map',
|
|
26
30
|
externals: {
|
|
27
31
|
'datagrok-api/dg': 'DG',
|