@datagrok/bio 2.0.19 → 2.0.21
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 +2 -2
- package/dist/package-test.js +466 -454
- package/dist/package.js +184 -170
- package/package.json +2 -2
- package/src/package.ts +2 -1
- package/src/substructure-search/substructure-search.ts +9 -8
- package/src/tests/Palettes-test.ts +9 -10
- package/src/tests/WebLogo-positions-test.ts +6 -8
- package/src/tests/checkInputColumn-tests.ts +10 -9
- package/src/tests/convert-test.ts +30 -31
- package/src/tests/detectors-test.ts +6 -5
- package/src/tests/renderers-test.ts +13 -12
- package/src/utils/cell-renderer.ts +4 -21
- package/src/utils/multiple-sequence-alignment.ts +5 -4
- package/src/utils/utils.ts +1 -1
- package/src/viewers/vd-regions-viewer.ts +2 -4
- package/src/widgets/bio-substructure-filter.ts +9 -7
package/detectors.js
CHANGED
|
@@ -145,7 +145,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
145
145
|
if (separator && BioPackageDetectors.checkForbiddenWithSeparators(stats.freq)) return null;
|
|
146
146
|
|
|
147
147
|
const format = separator ? NOTATION.SEPARATOR : NOTATION.FASTA;
|
|
148
|
-
const
|
|
148
|
+
const aligned = stats.sameLength ? 'SEQ.MSA' : 'SEQ';
|
|
149
149
|
|
|
150
150
|
// TODO: If separator detected, then extra efforts to detect alphabet are allowed.
|
|
151
151
|
const alphabet = BioPackageDetectors.detectAlphabet(stats.freq, candidateAlphabets, gapSymbol);
|
|
@@ -153,7 +153,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
153
153
|
// const forbidden = BioPackageDetectors.checkForbiddenWoSeparator(stats.freq);
|
|
154
154
|
if (separator || alphabet != 'UN') {
|
|
155
155
|
col.setTag(DG.TAGS.UNITS, format);
|
|
156
|
-
col.setTag(UnitsHandler.TAGS.aligned,
|
|
156
|
+
col.setTag(UnitsHandler.TAGS.aligned, aligned);
|
|
157
157
|
col.setTag(UnitsHandler.TAGS.alphabet, alphabet);
|
|
158
158
|
if (separator) col.setTag(UnitsHandler.TAGS.separator, separator);
|
|
159
159
|
if (alphabet === ALPHABET.UN) {
|