@datagrok/bio 1.5.4 → 1.5.5
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 +11 -0
- package/dist/package-test.js +9 -2
- package/package.json +1 -1
- package/src/tests/detectors-test.ts +11 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@datagrok/bio",
|
|
3
3
|
"beta": false,
|
|
4
4
|
"friendlyName": "Bio",
|
|
5
|
-
"version": "1.5.
|
|
5
|
+
"version": "1.5.5",
|
|
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",
|
|
@@ -94,6 +94,7 @@ MWRSWY-CKHP
|
|
|
94
94
|
msaComplex = 'MsaComplex',
|
|
95
95
|
idCsv = 'IdCsv',
|
|
96
96
|
sarSmallCsv = 'SarSmallCsv',
|
|
97
|
+
HelmCsv = 'HelmCsv',
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
const samples: { [key: string]: string } = {
|
|
@@ -102,6 +103,7 @@ MWRSWY-CKHP
|
|
|
102
103
|
'MsaComplex': 'System:AppData/Bio/samples/sample_MSA.csv',
|
|
103
104
|
'IdCsv': 'System:AppData/Bio/samples/id.csv',
|
|
104
105
|
'SarSmallCsv': 'System:AppData/Bio/samples/sar-small.csv',
|
|
106
|
+
'HelmCsv': 'System:AppData/Bio/samples/sample_HELM.csv',
|
|
105
107
|
};
|
|
106
108
|
|
|
107
109
|
const _samplesDfs: { [key: string]: Promise<DG.DataFrame> } = {};
|
|
@@ -194,6 +196,14 @@ MWRSWY-CKHP
|
|
|
194
196
|
test('samplesSarSmallCsvNegativeSmiles', async () => {
|
|
195
197
|
await _testNeg(readSamplesCsv(Samples.sarSmallCsv), 'smiles');
|
|
196
198
|
});
|
|
199
|
+
|
|
200
|
+
test('samplesHelmCsvHELM', async () => {
|
|
201
|
+
await _testPos(readSamplesCsv(Samples.HelmCsv), 'HELM', 'HELM', null);
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
test('samplesHelmCsvNegativeActivity', async () => {
|
|
205
|
+
await _testNeg(readSamplesCsv(Samples.HelmCsv), 'Activity');
|
|
206
|
+
});
|
|
197
207
|
});
|
|
198
208
|
|
|
199
209
|
export async function _testNeg(readDf: DfReaderFunc, colName: string) {
|
|
@@ -203,7 +213,7 @@ export async function _testNeg(readDf: DfReaderFunc, colName: string) {
|
|
|
203
213
|
expect(col.semType === DG.SEMTYPE.MACROMOLECULE, false);
|
|
204
214
|
}
|
|
205
215
|
|
|
206
|
-
export async function _testPos(readDf: DfReaderFunc, colName: string, units: string, separator: string) {
|
|
216
|
+
export async function _testPos(readDf: DfReaderFunc, colName: string, units: string, separator: string | null = null) {
|
|
207
217
|
const df: DG.DataFrame = await readDf();
|
|
208
218
|
|
|
209
219
|
const col: DG.Column = df.col(colName)!;
|