@datagrok/bio 2.0.25 → 2.0.26
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 +7 -2
- package/dist/package-test.js +2042 -833
- package/dist/package.js +2166 -684
- package/files/tests/nucleotidePairs.csv +146690 -0
- package/files/tests/peptidePairs.csv +103685 -0
- package/files/tests/toAtomicLevelTest.csv +7 -0
- package/package.json +5 -7
- package/setup.sh +1 -1
- package/src/calculations/monomerLevelMols.ts +7 -4
- package/src/package-test.ts +1 -1
- package/src/package.ts +13 -18
- package/src/substructure-search/substructure-search.ts +40 -13
- package/src/tests/{WebLogo-test.ts → bio-tests.ts} +16 -2
- package/src/tests/checkInputColumn-tests.ts +6 -7
- package/src/tests/detectors-test.ts +27 -19
- package/src/tests/renderers-test.ts +9 -5
- package/src/tests/test-sequnces-generators.ts +7 -4
- package/src/utils/cell-renderer.ts +5 -2
- package/src/widgets/bio-substructure-filter.ts +24 -5
- package/src/widgets/representations.ts +3 -2
- package/src/const.ts +0 -30
- package/src/monomer-library.ts +0 -199
- package/src/utils/utils.ts +0 -135
package/detectors.js
CHANGED
|
@@ -22,6 +22,11 @@ const ALPHABET = {
|
|
|
22
22
|
UN: 'UN',
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
const ALIGNMENT = {
|
|
26
|
+
SEQ_MSA: 'SEQ.MSA',
|
|
27
|
+
SEQ: 'SEQ',
|
|
28
|
+
};
|
|
29
|
+
|
|
25
30
|
/** Class for handling notation units in Macromolecule columns */
|
|
26
31
|
class UnitsHandler {
|
|
27
32
|
static TAGS = {
|
|
@@ -128,7 +133,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
128
133
|
|
|
129
134
|
const units = NOTATION.FASTA;
|
|
130
135
|
col.setTag(DG.TAGS.UNITS, units);
|
|
131
|
-
col.setTag(UnitsHandler.TAGS.aligned,
|
|
136
|
+
col.setTag(UnitsHandler.TAGS.aligned, ALIGNMENT.SEQ_MSA);
|
|
132
137
|
col.setTag(UnitsHandler.TAGS.alphabet, alphabet);
|
|
133
138
|
return DG.SEMTYPE.MACROMOLECULE;
|
|
134
139
|
}
|
|
@@ -145,7 +150,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
145
150
|
if (separator && BioPackageDetectors.checkForbiddenWithSeparators(stats.freq)) return null;
|
|
146
151
|
|
|
147
152
|
const format = separator ? NOTATION.SEPARATOR : NOTATION.FASTA;
|
|
148
|
-
const aligned = stats.sameLength ?
|
|
153
|
+
const aligned = stats.sameLength ? ALIGNMENT.SEQ_MSA : ALIGNMENT.SEQ;
|
|
149
154
|
|
|
150
155
|
// TODO: If separator detected, then extra efforts to detect alphabet are allowed.
|
|
151
156
|
const alphabet = BioPackageDetectors.detectAlphabet(stats.freq, candidateAlphabets, gapSymbol);
|