@datagrok/bio 1.7.19 → 1.7.22
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/detectors.js +24 -12
- package/dist/package-test.js +12 -4
- package/dist/package.js +5 -4
- package/files/tests/testAlertCollection.csv +1252 -0
- package/package.json +6 -2
- package/src/package.ts +6 -5
- package/src/tests/detectors-test.ts +9 -0
- package/{test-Bio-4f0c8bae6479-ddc1ded2.html → test-Bio-4f0c8bae6479-dd77efbc.html} +5 -2
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.22",
|
|
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",
|
|
@@ -60,7 +60,11 @@
|
|
|
60
60
|
"Developers"
|
|
61
61
|
],
|
|
62
62
|
"sources": [
|
|
63
|
-
"css/helm.css"
|
|
63
|
+
"css/helm.css",
|
|
64
|
+
"https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js",
|
|
65
|
+
"helm/JSDraw/Scilligence.JSDraw2.Lite.js",
|
|
66
|
+
"helm/JSDraw/Scilligence.JSDraw2.Resources.js",
|
|
67
|
+
"helm/JSDraw/Pistoia.HELM-uncompressed.js"
|
|
64
68
|
],
|
|
65
69
|
"category": "Bioinformatics"
|
|
66
70
|
}
|
package/src/package.ts
CHANGED
|
@@ -26,17 +26,18 @@ import {UnitsHandler} from '@datagrok-libraries/bio/src/utils/units-handler';
|
|
|
26
26
|
import {FastaFileHandler} from '@datagrok-libraries/bio/src/utils/fasta-handler';
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
//tags: init
|
|
31
30
|
export async function initBio(): Promise<void> {
|
|
32
31
|
// apparently HELMWebEditor requires dojo to be initialized first
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
const funcList: DG.Func[] = DG.Func.find({package: 'Helm', name: 'initHelm'});
|
|
33
|
+
console.debug(`Bio: initBio() funcList.length = ${funcList.length}`);
|
|
34
|
+
if (funcList.length === 1)
|
|
35
|
+
await grok.functions.call('Helm:initHelp');
|
|
36
|
+
|
|
36
37
|
return new Promise((resolve, reject) => {
|
|
37
38
|
// @ts-ignore
|
|
38
39
|
dojo.ready(function() { resolve(null); });
|
|
39
|
-
});
|
|
40
|
+
});
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
//name: Lru
|
|
@@ -125,6 +125,7 @@ MWRSWY-CKHP
|
|
|
125
125
|
testSpgi100 = 'testSpgi100',
|
|
126
126
|
testUnichemSources = 'testUnichemSources',
|
|
127
127
|
testDmvOffices = 'testDmvOffices',
|
|
128
|
+
testAlertCollection = 'testAlertCollection',
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
const samples: { [key: string]: string } = {
|
|
@@ -145,6 +146,7 @@ MWRSWY-CKHP
|
|
|
145
146
|
'testSpgi100': 'System:AppData/Bio/tests/testSpgi100.csv',
|
|
146
147
|
'testUnichemSources': 'System:AppData/Bio/tests/testUnichemSources.csv',
|
|
147
148
|
'testDmvOffices': 'System:AppData/Bio/tests/testDmvOffices.csv',
|
|
149
|
+
'testAlertCollection': 'System:AppData/Bio/tests/testAlertCollection.csv',
|
|
148
150
|
};
|
|
149
151
|
|
|
150
152
|
const _samplesDfs: { [key: string]: Promise<DG.DataFrame> } = {};
|
|
@@ -342,6 +344,9 @@ MWRSWY-CKHP
|
|
|
342
344
|
test('samplesTestSpgi100NegativePrimaryScaffoldName', async () => {
|
|
343
345
|
await _testNeg(readSamples(Samples.testSpgi100), 'Primary Scaffold Name');
|
|
344
346
|
});
|
|
347
|
+
test('samplesTestSpgi100NegativeSampleName', async () => {
|
|
348
|
+
await _testNeg(readSamples(Samples.testSpgi100), 'Sample Name');
|
|
349
|
+
});
|
|
345
350
|
|
|
346
351
|
test('samplesTestUnichemSourcesNegativeSrcUrl', async () => {
|
|
347
352
|
await _testNeg(readSamples(Samples.testUnichemSources), 'src_url');
|
|
@@ -356,6 +361,10 @@ MWRSWY-CKHP
|
|
|
356
361
|
test('samplesTestDmvOfficesNegativeCity', async () => {
|
|
357
362
|
await _testNeg(readSamples(Samples.testDmvOffices), 'City');
|
|
358
363
|
});
|
|
364
|
+
|
|
365
|
+
test('samplesTestAlertCollectionNegativeSmarts', async () => {
|
|
366
|
+
await _testNeg(readSamples(Samples.testAlertCollection), 'smarts');
|
|
367
|
+
});
|
|
359
368
|
});
|
|
360
369
|
|
|
361
370
|
export async function _testNeg(readDf: DfReaderFunc, colName: string) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<html><head><meta charset="utf-8"/><title>Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=4f0c8bae6479. Commit
|
|
1
|
+
<html><head><meta charset="utf-8"/><title>Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=4f0c8bae6479. Commit dd77efbc.</title><style type="text/css">html,
|
|
2
2
|
body {
|
|
3
3
|
font-family: Arial, Helvetica, sans-serif;
|
|
4
4
|
font-size: 1rem;
|
|
@@ -229,7 +229,7 @@ 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=4f0c8bae6479. Commit
|
|
232
|
+
</style></head><body><div id="jesthtml-content"><header><h1 id="title">Bio Test Report. Datagrok version datagrok/datagrok:latest SHA=4f0c8bae6479. Commit dd77efbc.</h1></header><div id="metadata-container"><div id="timestamp">Started: 2022-08-01 14:54:31</div><div id="summary"><div id="suite-summary"><div class="summary-total">Suites (1)</div><div class="summary-passed">1 passed</div><div class="summary-failed summary-empty">0 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">1 passed</div><div class="summary-failed summary-empty">0 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">230.253s</div></div><div class="suite-tests"><div class="test-result passed"><div class="test-info"><div class="test-suitename"> </div><div class="test-title">TEST</div><div class="test-status">passed</div><div class="test-duration">213.793s</div></div></div></div><div class="suite-consolelog"><div class="suite-consolelog-header">Console Log</div><div class="suite-consolelog-item"><pre class="suite-consolelog-item-origin"> at Object.<anonymous> (/home/runner/work/public/public/packages/Bio/src/__jest__/test-node.ts:63:11)
|
|
233
233
|
at Generator.next (<anonymous>)
|
|
234
234
|
at fulfilled (/home/runner/work/public/public/packages/Bio/src/__jest__/test-node.ts:28:58)
|
|
235
235
|
at processTicksAndRejections (internal/process/task_queues.js:97:5)</pre><pre class="suite-consolelog-item-message">Using web root: http://localhost:8080</pre></div><div class="suite-consolelog-item"><pre class="suite-consolelog-item-origin"> at /home/runner/work/public/public/packages/Bio/src/__jest__/remote.test.ts:40:11
|
|
@@ -242,6 +242,7 @@ header {
|
|
|
242
242
|
at new Promise (<anonymous>)</pre><pre class="suite-consolelog-item-message">Testing Bio package</pre></div><div class="suite-consolelog-item"><pre class="suite-consolelog-item-origin"> at /home/runner/work/public/public/packages/Bio/src/__jest__/remote.test.ts:65:11
|
|
243
243
|
at Generator.next (<anonymous>)
|
|
244
244
|
at fulfilled (/home/runner/work/public/public/packages/Bio/src/__jest__/remote.test.ts:31:58)
|
|
245
|
+
at runMicrotasks (<anonymous>)
|
|
245
246
|
at processTicksAndRejections (internal/process/task_queues.js:97:5)</pre><pre class="suite-consolelog-item-message">Test result : Bio.WebLogo.testGetStats : OK
|
|
246
247
|
Test result : Bio.WebLogo.testGetAlphabetSimilarity : OK
|
|
247
248
|
Test result : Bio.WebLogo.testPickupPaletteN1 : OK
|
|
@@ -300,10 +301,12 @@ Test result : Bio.detectors.samplesTestCerealNegativeCerealName : OK
|
|
|
300
301
|
Test result : Bio.detectors.samplesTestSpgi100NegativeStereoCategory : OK
|
|
301
302
|
Test result : Bio.detectors.samplesTestSpgi100NegativeScaffoldNames : OK
|
|
302
303
|
Test result : Bio.detectors.samplesTestSpgi100NegativePrimaryScaffoldName : OK
|
|
304
|
+
Test result : Bio.detectors.samplesTestSpgi100NegativeSampleName : OK
|
|
303
305
|
Test result : Bio.detectors.samplesTestUnichemSourcesNegativeSrcUrl : OK
|
|
304
306
|
Test result : Bio.detectors.samplesTestUnichemSourcesNegativeBaseIdUrl : OK
|
|
305
307
|
Test result : Bio.detectors.samplesTestDmvOfficesNegativeOfficeName : OK
|
|
306
308
|
Test result : Bio.detectors.samplesTestDmvOfficesNegativeCity : OK
|
|
309
|
+
Test result : Bio.detectors.samplesTestAlertCollectionNegativeSmarts : OK
|
|
307
310
|
Test result : Bio.MSA.isCorrect : OK
|
|
308
311
|
Test result : Bio.MSA.isCorrectLong : OK
|
|
309
312
|
Test result : Bio.sequenceSpace.sequenceSpaceOpens : OK
|