@datagrok/bio 2.4.5 → 2.4.6
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
CHANGED
|
@@ -165,7 +165,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
165
165
|
if (statsAsChars.sameLength) {
|
|
166
166
|
const stats = this.getStats(categoriesSample, seqMinLength, splitter);
|
|
167
167
|
const alphabet = this.detectAlphabet(stats.freq, candidateAlphabets, '-', colNameLikely);
|
|
168
|
-
if (alphabet === ALPHABET.UN
|
|
168
|
+
if (alphabet === ALPHABET.UN) return null;
|
|
169
169
|
|
|
170
170
|
col.setTag(DG.TAGS.UNITS, units);
|
|
171
171
|
if (separator) col.setTag(UnitsHandler.TAGS.separator, separator);
|
|
@@ -193,8 +193,7 @@ class BioPackageDetectors extends DG.Package {
|
|
|
193
193
|
|
|
194
194
|
// TODO: If separator detected, then extra efforts to detect alphabet are allowed.
|
|
195
195
|
const alphabet = this.detectAlphabet(stats.freq, candidateAlphabets, gapSymbol, colNameLikely);
|
|
196
|
-
|
|
197
|
-
if (units === NOTATION.FASTA && alphabet === ALPHABET.UN && !alphabetIsMultichar && !colNameLikely) return null;
|
|
196
|
+
if (units === NOTATION.FASTA && alphabet === ALPHABET.UN && !alphabetIsMultichar) return null;
|
|
198
197
|
|
|
199
198
|
// const forbidden = this.checkForbiddenWoSeparator(stats.freq);
|
|
200
199
|
col.setTag(DG.TAGS.UNITS, units);
|