@datagrok/bio 2.10.14 → 2.10.15
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.10.
|
|
8
|
+
"version": "2.10.15",
|
|
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
|
@@ -995,3 +995,12 @@ export async function enumeratorColumnChoice(df: DG.DataFrame, macroMolecule: DG
|
|
|
995
995
|
export function getEnumeratorWidget(molColumn: DG.Column): DG.Widget {
|
|
996
996
|
return _getEnumeratorWidget(molColumn);
|
|
997
997
|
}
|
|
998
|
+
|
|
999
|
+
//top-menu: Bio | Convert | SDF to JSON Library...
|
|
1000
|
+
//name: SDF to JSON Library
|
|
1001
|
+
//input: dataframe table
|
|
1002
|
+
export async function sdfToJsonLib(table: DG.DataFrame) {
|
|
1003
|
+
const _jsonMonomerLibrary = createJsonMonomerLibFromSdf(table);
|
|
1004
|
+
const jsonMonomerLibrary = JSON.stringify(_jsonMonomerLibrary);
|
|
1005
|
+
DG.Utils.download(`${table.name}.json`, jsonMonomerLibrary);
|
|
1006
|
+
}
|
|
@@ -22,18 +22,15 @@ category('detectorsBenchmark', () => {
|
|
|
22
22
|
|
|
23
23
|
test('fastaDnaShorts50Few50', async () => {
|
|
24
24
|
await detectMacromoleculeBenchmark(10, NOTATION.FASTA, ALPHABET.DNA, 50, 50);
|
|
25
|
-
}
|
|
26
|
-
{skipReason: '#1192'});
|
|
25
|
+
});
|
|
27
26
|
|
|
28
27
|
test('fastaDnaShorts50Many1E6', async () => {
|
|
29
28
|
await detectMacromoleculeBenchmark(10, NOTATION.FASTA, ALPHABET.DNA, 50, 1E6);
|
|
30
|
-
}
|
|
31
|
-
{skipReason: '#1192'});
|
|
29
|
+
});
|
|
32
30
|
|
|
33
31
|
test('fastaDnaLong1e6Few50', async () => {
|
|
34
|
-
await detectMacromoleculeBenchmark(
|
|
35
|
-
}
|
|
36
|
-
{skipReason: '#1192'});
|
|
32
|
+
await detectMacromoleculeBenchmark(15, NOTATION.FASTA, ALPHABET.DNA, 1E6, 50);
|
|
33
|
+
});
|
|
37
34
|
|
|
38
35
|
// -- separator --
|
|
39
36
|
|
|
@@ -56,6 +53,8 @@ category('detectorsBenchmark', () => {
|
|
|
56
53
|
(): DG.FuncCall => {
|
|
57
54
|
const col: DG.Column = generate(notation, [...getAlphabet(alphabet)], length, count, separator);
|
|
58
55
|
const funcCall: DG.FuncCall = detectFunc.prepare({col: col});
|
|
56
|
+
// warming up Bio
|
|
57
|
+
testDetector(funcCall);
|
|
59
58
|
return funcCall;
|
|
60
59
|
},
|
|
61
60
|
async (funcCall: DG.FuncCall): Promise<DG.Column> => {
|