@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 +7 -7
- package/dist/package-test.js +37 -8
- package/dist/package.js +2 -4
- package/files/samples/testDemog.csv +5851 -0
- package/files/samples/testHelm.csv +6 -0
- package/files/samples/{id.csv → testId.csv} +0 -0
- package/files/samples/{sar-small.csv → testSmiles.csv} +0 -0
- package/package.json +1 -1
- package/src/tests/detectors-test.ts +42 -6
- package/src/utils/cell-renderer.ts +9 -12
- package/{test-Bio-34f75e5127b8-c4c5a3dc.html → test-Bio-34f75e5127b8-b47d4664.html} +4 -3
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 ||
|
|
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
|
-
|
|
129
|
-
|
|
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) {
|