@datagrok/bio 2.17.4 → 2.17.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/CHANGELOG.md +9 -0
- package/detectors.js +4 -1
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/files/icons/monomers.png +0 -0
- package/files/tests/fasta_negative_words.csv +6 -0
- package/package.json +1 -1
- package/src/package.ts +53 -33
- package/src/tests/detectors-tests.ts +8 -0
- package/src/utils/monomer-lib/lib-manager.ts +6 -2
- package/src/utils/monomer-lib/library-file-manager/file-manager.ts +13 -1
- package/src/utils/monomer-lib/library-file-manager/ui.ts +31 -12
- package/src/utils/monomer-lib/monomer-manager/monomer-manager.ts +41 -15
package/CHANGELOG.md
CHANGED
package/detectors.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/* eslint-disable max-lines-per-function */
|
|
2
|
+
/* eslint-disable max-lines */
|
|
1
3
|
'use strict';
|
|
2
4
|
/**
|
|
3
5
|
* The class contains semantic type detectors.
|
|
@@ -266,7 +268,8 @@ class BioPackageDetectors extends DG.Package {
|
|
|
266
268
|
col.setTag(DG.TAGS.CELL_RENDERER, 'sequence');
|
|
267
269
|
return DG.SEMTYPE.MACROMOLECULE;
|
|
268
270
|
} else {
|
|
269
|
-
|
|
271
|
+
// for fasta, we need to include every sequence
|
|
272
|
+
const stats = this.getStats(categoriesSample, separator ? seqMinLength : 2, splitter);
|
|
270
273
|
const alphabetIsMultichar = Object.keys(stats.freq).some((m) => m.length > 1);
|
|
271
274
|
// Empty monomer alphabet is not allowed
|
|
272
275
|
if (Object.keys(stats.freq).length === 0) {
|