@datagrok/bio 1.5.8 → 1.5.9

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
@@ -75,8 +75,8 @@ class BioPackageDetectors extends DG.Package {
75
75
  // TODO: If separator detected, then extra efforts to detect alphabet are allowed.
76
76
  const alphabet = BioPackageDetectors.detectAlphabet(stats.freq, alphabetCandidates, gapSymbol);
77
77
 
78
- const forbidden = BioPackageDetectors.checkForbiddenWoSeparator(stats.freq);
79
- if (separator || !forbidden) {
78
+ // const forbidden = BioPackageDetectors.checkForbiddenWoSeparator(stats.freq);
79
+ if (separator || alphabet != 'UN') {
80
80
  const units = `${format}:${seqType}:${alphabet}`;
81
81
  col.setTag(DG.TAGS.UNITS, units);
82
82
  if (separator) col.setTag('separator', separator);
@@ -123,11 +123,11 @@ class BioPackageDetectors extends DG.Package {
123
123
  return Object.keys(freq).filter((m) => forbiddenRe.test(m)).length > 0;
124
124
  }
125
125
 
126
- /** Without a separator, special symbols or digits are not allowed as monomers. */
127
- static checkForbiddenWoSeparator(freq) {
128
- const forbiddenRe = /[\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/i;
129
- return Object.keys(freq).filter((m) => forbiddenRe.test(m)).length > 0;
130
- }
126
+ // /** Without a separator, special symbols or digits are not allowed as monomers. */
127
+ // static checkForbiddenWoSeparator(freq) {
128
+ // const forbiddenRe = /[\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/i;
129
+ // return Object.keys(freq).filter((m) => forbiddenRe.test(m)).length > 0;
130
+ // }
131
131
 
132
132
  /** Stats of sequences with specified splitter func, returns { freq, sameLength } */
133
133
  static getStats(seqCol, minLength, splitter) {