@datagrok/bio 1.7.2 → 1.7.3
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 -1
- package/dist/package-test.js +380 -309
- package/dist/package.js +295 -276
- package/package.json +3 -6
- package/src/package-test.ts +1 -1
- package/src/package.ts +13 -16
- package/src/tests/WebLogo-test.ts +18 -0
- package/src/tests/activity-cliffs-tests.ts +14 -9
- package/src/tests/convert-test.ts +1 -1
- package/src/tests/detectors-test.ts +8 -2
- package/src/tests/renderer-test.ts +8 -2
- package/src/tests/sequence-space-test.ts +7 -3
- package/src/tests/splitters-test.ts +35 -0
- package/src/utils/cell-renderer.ts +8 -5
- package/src/utils/convert.ts +1 -1
- package/{test-Bio-34f75e5127b8-ac96da52.html → test-Bio-34f75e5127b8-303cfb72.html} +2 -2
- package/src/tests/splitter-test.ts +0 -22
- package/src/utils/notation-converter.ts +0 -280
package/detectors.js
CHANGED
|
@@ -111,9 +111,10 @@ class BioPackageDetectors extends DG.Package {
|
|
|
111
111
|
// const noSeparatorRe = /[a-z\d]+$/i;
|
|
112
112
|
const noSeparatorChemRe = /[HBCNOFPSKVYI]/i; // Mendeleev's periodic table single char elements
|
|
113
113
|
const noSeparatorAlphaDigitRe = /[\dA-Z]/i;
|
|
114
|
+
const noSeparatorBracketsRe = /[\[\]()<>{}]/i;
|
|
114
115
|
const cleanFreq = Object.assign({}, ...Object.entries(freq)
|
|
115
116
|
.filter(([m, f]) => m != ' ' &&
|
|
116
|
-
!noSeparatorChemRe.test(m) && !noSeparatorAlphaDigitRe.test(m) &&
|
|
117
|
+
!noSeparatorChemRe.test(m) && !noSeparatorAlphaDigitRe.test(m) && !noSeparatorBracketsRe.test(m) &&
|
|
117
118
|
!BioPackageDetectors.PeptideFastaAlphabet.has(m) &&
|
|
118
119
|
!BioPackageDetectors.DnaFastaAlphabet.has(m))
|
|
119
120
|
.map(([m, f]) => ({[m]: f})));
|