@datagrok/bio 2.1.10 → 2.1.12
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/.eslintrc.json +1 -0
- package/detectors.js +5 -4
- package/dist/package-test.js +2182 -57664
- package/dist/package.js +1773 -57252
- package/dist/vendors-node_modules_datagrok-libraries_ml_src_workers_dimensionality-reducer_js.js +301 -250
- package/package.json +10 -12
- package/src/analysis/sequence-activity-cliffs.ts +5 -5
- package/src/analysis/sequence-diversity-viewer.ts +3 -2
- package/src/analysis/sequence-search-base-viewer.ts +2 -1
- package/src/analysis/sequence-similarity-viewer.ts +2 -2
- package/src/calculations/monomerLevelMols.ts +3 -3
- package/src/package.ts +28 -25
- package/src/substructure-search/substructure-search.ts +9 -9
- package/src/tests/Palettes-test.ts +9 -9
- package/src/tests/WebLogo-positions-test.ts +64 -57
- package/src/tests/bio-tests.ts +31 -21
- package/src/tests/checkInputColumn-tests.ts +17 -17
- package/src/tests/converters-test.ts +30 -30
- package/src/tests/detectors-benchmark-tests.ts +15 -16
- package/src/tests/detectors-tests.ts +31 -24
- package/src/tests/fasta-export-tests.ts +2 -3
- package/src/tests/renderers-test.ts +17 -15
- package/src/tests/splitters-test.ts +3 -3
- package/src/tests/utils/sequences-generators.ts +7 -7
- package/src/utils/cell-renderer.ts +33 -24
- package/src/utils/convert.ts +10 -10
- package/src/utils/multiple-sequence-alignment.ts +6 -7
- package/src/utils/save-as-fasta.ts +8 -8
- package/src/viewers/vd-regions-viewer.ts +15 -14
- package/tsconfig.json +1 -1
- package/jest.config.js +0 -33
- package/src/__jest__/remote.test.ts +0 -77
- package/src/__jest__/test-node.ts +0 -98
- package/test-Bio-62cc009524f3-e7a922ae.html +0 -392
package/.eslintrc.json
CHANGED
package/detectors.js
CHANGED
|
@@ -139,7 +139,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
139
139
|
const statsAsChars = this.getStats(categoriesSample, 5,
|
|
140
140
|
this.getSplitterAsChars(SEQ_SAMPLE_LENGTH_LIMIT));
|
|
141
141
|
// Empty statsAsShars.freq alphabet means no strings of enough length presented in the data
|
|
142
|
-
if (Object.keys(statsAsChars.freq).length === 0) return;
|
|
142
|
+
if (Object.keys(statsAsChars.freq).length === 0) return null;
|
|
143
143
|
|
|
144
144
|
const decoy = this.detectAlphabet(statsAsChars.freq, decoyAlphabets, null);
|
|
145
145
|
if (decoy != ALPHABET.UN) return null;
|
|
@@ -150,14 +150,13 @@ class BioPackageDetectors extends DG.Package {
|
|
|
150
150
|
const splitter = separator ? this.getSplitterWithSeparator(separator, SEQ_SAMPLE_LENGTH_LIMIT) :
|
|
151
151
|
this.getSplitterAsFasta(SEQ_SAMPLE_LENGTH_LIMIT);
|
|
152
152
|
|
|
153
|
-
col.setTag(DG.TAGS.UNITS, units);
|
|
154
|
-
if (separator) col.setTag(UnitsHandler.TAGS.separator, separator);
|
|
155
|
-
|
|
156
153
|
if (statsAsChars.sameLength) {
|
|
157
154
|
const stats = this.getStats(categoriesSample, 5, splitter);
|
|
158
155
|
const alphabet = this.detectAlphabet(stats.freq, candidateAlphabets, '-');
|
|
159
156
|
if (alphabet === ALPHABET.UN) return null;
|
|
160
157
|
|
|
158
|
+
col.setTag(DG.TAGS.UNITS, units);
|
|
159
|
+
if (separator) col.setTag(UnitsHandler.TAGS.separator, separator);
|
|
161
160
|
col.setTag(UnitsHandler.TAGS.aligned, ALIGNMENT.SEQ_MSA);
|
|
162
161
|
col.setTag(UnitsHandler.TAGS.alphabet, alphabet);
|
|
163
162
|
return DG.SEMTYPE.MACROMOLECULE;
|
|
@@ -175,6 +174,8 @@ class BioPackageDetectors extends DG.Package {
|
|
|
175
174
|
|
|
176
175
|
// const forbidden = this.checkForbiddenWoSeparator(stats.freq);
|
|
177
176
|
if (separator || alphabet != 'UN') {
|
|
177
|
+
col.setTag(DG.TAGS.UNITS, units);
|
|
178
|
+
if (separator) col.setTag(UnitsHandler.TAGS.separator, separator);
|
|
178
179
|
col.setTag(UnitsHandler.TAGS.aligned, aligned);
|
|
179
180
|
col.setTag(UnitsHandler.TAGS.alphabet, alphabet);
|
|
180
181
|
if (alphabet === ALPHABET.UN) {
|