@datagrok/sequence-translator 1.0.16 → 1.0.17
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 +0 -28
- package/dist/package-test.js +3830 -3738
- package/dist/package.js +3826 -3734
- package/package.json +3 -1
- package/setup-unlink-clean.sh +21 -0
- package/src/autostart/calculations.ts +2 -2
- package/src/autostart/registration.ts +102 -37
- package/src/{axolabs/define-pattern.ts → axolabs-tab/axolabs-tab.ts} +2 -2
- package/src/axolabs-tab/define-pattern.ts +874 -0
- package/src/{axolabs → axolabs-tab}/draw-svg.ts +1 -1
- package/src/{axolabs → axolabs-tab}/helpers.ts +2 -2
- package/src/{autostart → hardcode-to-be-eliminated}/ICDs.ts +0 -0
- package/src/{autostart → hardcode-to-be-eliminated}/IDPs.ts +0 -0
- package/src/{structures-works → hardcode-to-be-eliminated}/const.ts +0 -0
- package/src/{axolabs → hardcode-to-be-eliminated}/constants.ts +0 -0
- package/src/{structures-works → hardcode-to-be-eliminated}/converters.ts +1 -1
- package/src/{structures-works → hardcode-to-be-eliminated}/map.ts +2 -2
- package/src/{autostart → hardcode-to-be-eliminated}/salts.ts +0 -0
- package/src/{autostart → hardcode-to-be-eliminated}/sources.ts +0 -0
- package/src/{autostart → hardcode-to-be-eliminated}/users.ts +0 -0
- package/src/{main/main-view.ts → main-tab/main-tab.ts} +27 -79
- package/src/package.ts +40 -23
- package/src/sdf-tab/sdf-tab.ts +163 -0
- package/src/{structures-works → sdf-tab}/sequence-codes-tools.ts +8 -5
- package/src/tests/smiles-tests.ts +2 -2
- package/src/utils/const.ts +0 -0
- package/src/{helpers.ts → utils/helpers.ts} +3 -3
- package/src/utils/sdf-add-columns.ts +3 -3
- package/src/utils/sdf-save-table.ts +4 -4
- package/src/utils/structures-works/draw-molecule.ts +84 -0
- package/src/{structures-works → utils/structures-works}/from-monomers.ts +15 -16
- package/src/{structures-works → utils/structures-works}/mol-transformations.ts +34 -52
- package/{test-SequenceTranslator-6288c2fbe346-cce4ac1d.html → test-SequenceTranslator-6288c2fbe346-695b7b55.html} +10 -10
- package/src/structures-works/save-sense-antisense.ts +0 -91
package/detectors.js
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
class SequenceTranslatorPackageDetectors extends DG.Package {
|
|
2
|
-
isDnaNucleotides(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|A|T|G|C){6,}$/.test(sequence);}
|
|
3
|
-
isRnaNucleotides(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|A|U|G|C){6,}$/.test(sequence);}
|
|
4
|
-
isAsoGapmerBioSpring(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|\*|5|6|7|8|9|A|T|G|C){6,}$/.test(sequence);}
|
|
5
|
-
isAsoGapmerGcrs(sequence) {return /^(?=.*moe)(?=.*5mC)(?=.*ps){6,}/.test(sequence);}
|
|
6
|
-
isSiRnaBioSpring(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|\*|1|2|3|4|5|6|7|8){6,}$/.test(sequence);}
|
|
7
|
-
isSiRnaAxolabs(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|f|s|A|C|G|U|a|c|g|u){6,}$/.test(sequence);}
|
|
8
|
-
isSiRnaGcrs(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|f|m|p|s|A|C|G|U){6,}$/.test(sequence);}
|
|
9
|
-
isGcrs(sequence) {return /(\(invabasic\)|\(GalNAc-2-JNJ\)|f|m|p|s|A|C|G|U){6,}$/.test(sequence);}
|
|
10
|
-
isMermade12(sequence) {
|
|
11
|
-
return /(\(invabasic\)|\(GalNAc-2-JNJ\)|I|i|J|j|K|k|L|l|E|e|F|f|G|g|H|h|Q|q){6,}$/.test(sequence);
|
|
12
|
-
}
|
|
13
|
-
//tags: semTypeDetector
|
|
14
|
-
//input: column col
|
|
15
|
-
//output: string semType
|
|
16
|
-
detectNucleotides(col) {
|
|
17
|
-
if (col.type === DG.TYPE.STRING) {
|
|
18
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isDnaNucleotides(s))) return 'DNA nucleotides';
|
|
19
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isRnaNucleotides(s))) return 'RNA nucleotides';
|
|
20
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isAsoGapmerBioSpring(s))) return 'BioSpring / Gapmers';
|
|
21
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isAsoGapmerGcrs(s))) return 'GCRS / Gapmers';
|
|
22
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isSiRnaBioSpring(s))) return 'BioSpring / siRNA';
|
|
23
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isSiRnaAxolabs(s))) return 'Axolabs / siRNA';
|
|
24
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isGcrs(s))) return 'GCRS';
|
|
25
|
-
if (DG.Detector.sampleCategories(col, (s) => this.isMermade12(s))) return 'Mermade 12 / siRNA';
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|