@datagrok-libraries/bio
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -8,3 +8,3 @@ { | ||
"friendlyName": "Datagrok bio library", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "", | ||
@@ -14,3 +14,3 @@ "dependencies": { | ||
"cash-dom": "latest", | ||
"datagrok-api": "^1.6.0", | ||
"datagrok-api": "^1.6.6", | ||
"dayjs": "latest", | ||
@@ -17,0 +17,0 @@ "rxjs": "^6.5.5", |
@@ -15,5 +15,5 @@ import { WebLogo } from '../viewers/web-logo'; | ||
; | ||
toFasta(targetNotation) { return targetNotation === "FASTA" /* NOTATION.FASTA */; } | ||
toSeparator(targetNotation) { return targetNotation === "SEPARATOR" /* NOTATION.SEPARATOR */; } | ||
toHelm(targetNotation) { return targetNotation === "HELM" /* NOTATION.HELM */; } | ||
toFasta(targetNotation) { return targetNotation === "fasta" /* NOTATION.FASTA */; } | ||
toSeparator(targetNotation) { return targetNotation === "separator" /* NOTATION.SEPARATOR */; } | ||
toHelm(targetNotation) { return targetNotation === "helm" /* NOTATION.HELM */; } | ||
/** | ||
@@ -29,3 +29,3 @@ * Convert a Macromolecule column from FASTA to SEPARATOR notation | ||
fastaGapSymbol = this.defaultGapSymbol; | ||
const newColumn = this.getNewColumn("SEPARATOR" /* NOTATION.SEPARATOR */); | ||
const newColumn = this.getNewColumn("separator" /* NOTATION.SEPARATOR */); | ||
// assign the values to the newly created empty column | ||
@@ -37,7 +37,7 @@ newColumn.init((idx) => { | ||
if (fastaMonomersArray[i] === fastaGapSymbol) | ||
fastaMonomersArray[i] = this._defaultGapSymbolsDict.SEPARATOR; | ||
fastaMonomersArray[i] = UnitsHandler._defaultGapSymbolsDict.SEPARATOR; | ||
} | ||
return fastaMonomersArray.join(separator); | ||
}); | ||
newColumn.setTag('separator', separator); | ||
newColumn.setTag(UnitsHandler.TAGS.separator, separator); | ||
return newColumn; | ||
@@ -69,3 +69,3 @@ } | ||
if (mm === sourceGapSymbol) | ||
return this._defaultGapSymbolsDict.HELM; | ||
return UnitsHandler._defaultGapSymbolsDict.HELM; | ||
else | ||
@@ -100,3 +100,3 @@ return `${leftWrapper}${mm}${rightWrapper}`; | ||
const [prefix, leftWrapper, rightWrapper, postfix] = this.getHelmWrappers(); | ||
const newColumn = this.getNewColumn("HELM" /* NOTATION.HELM */); | ||
const newColumn = this.getNewColumn("helm" /* NOTATION.HELM */); | ||
// assign the values to the empty column | ||
@@ -117,4 +117,4 @@ newColumn.init((idx) => { | ||
if (fastaGapSymbol === null) | ||
fastaGapSymbol = this._defaultGapSymbolsDict.FASTA; | ||
const newColumn = this.getNewColumn("FASTA" /* NOTATION.FASTA */); | ||
fastaGapSymbol = UnitsHandler._defaultGapSymbolsDict.FASTA; | ||
const newColumn = this.getNewColumn("fasta" /* NOTATION.FASTA */); | ||
// assign the values to the empty column | ||
@@ -158,4 +158,4 @@ newColumn.init((idx) => { | ||
tgtGapSymbol = (this.toFasta(tgtNotation)) ? | ||
this._defaultGapSymbolsDict.FASTA : | ||
this._defaultGapSymbolsDict.SEPARATOR; | ||
UnitsHandler._defaultGapSymbolsDict.FASTA : | ||
UnitsHandler._defaultGapSymbolsDict.SEPARATOR; | ||
} | ||
@@ -180,3 +180,3 @@ if (this.toSeparator(tgtNotation) && tgtSeparator === '') | ||
item = item.replace(helmWrappersRe, ''); | ||
if (item === this._defaultGapSymbolsDict.HELM) { | ||
if (item === UnitsHandler._defaultGapSymbolsDict.HELM) { | ||
tgtMonomersArray.push(tgtGapSymbol); | ||
@@ -199,3 +199,3 @@ } | ||
// TODO: implementatioreturn this.getNewColumn(); | ||
return this.getNewColumn("SEPARATOR" /* NOTATION.SEPARATOR */); | ||
return this.getNewColumn("separator" /* NOTATION.SEPARATOR */); | ||
} | ||
@@ -226,2 +226,2 @@ /** Dispatcher method for notation conversion | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm90YXRpb24tY29udmVydGVyLmpzIiwic291cmNlU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0Z3RTZXBhcmF0b3IgPT09IG51bGwpXG4gICAgICB0aHJvdyBuZXcgRXJyb3IoJ3RndCBzZXBhcmF0b3IgaXMgbm90IHNwZWNpZmllZCcpO1xuXG4gICAgaWYgKHRoaXMuaXNGYXN0YSgpICYmIHRoaXMudG9TZXBhcmF0b3IodGd0Tm90YXRpb24pICYmIHRndFNlcGFyYXRvciAhPT0gbnVsbClcbiAgICAgIHJldHVybiB0aGlzLmNvbnZlcnRGYXN0YVRvU2VwYXJhdG9yKHRndFNlcGFyYXRvcik7XG4gICAgZWxzZSBpZiAoKHRoaXMuaXNGYXN0YSgpIHx8IHRoaXMuaXNTZXBhcmF0b3IoKSkgJiYgdGhpcy50b0hlbG0odGd0Tm90YXRpb24pKVxuICAgICAgcmV0dXJuIHRoaXMuY29udmVydFRvSGVsbSgpO1xuICAgIGVsc2UgaWYgKHRoaXMuaXNTZXBhcmF0b3IoKSAmJiB0aGlzLnRvRmFzdGEodGd0Tm90YXRpb24pKVxuICAgICAgcmV0dXJuIHRoaXMuY29udmVydFNlcGFyYXRvclRvRmFzdGEoKTtcbiAgICBlbHNlIGlmICh0aGlzLmlzSGVsbSgpICYmIHRoaXMudG9GYXN0YSh0Z3ROb3RhdGlvbikpIC8vIHRoZSBjYXNlIG9mIEhFTE1cbiAgICAgIHJldHVybiB0aGlzLmNvbnZlcnRIZWxtKHRndE5vdGF0aW9uKTtcbiAgICBlbHNlIC8vIHRoaXMuaXNIZWxtKCkgJiYgdGhpcy50b1NlcGFyYXRvcih0Z3ROb3RhdGlvbilcbiAgICAgIHJldHVybiB0aGlzLmNvbnZlcnRIZWxtKHRndE5vdGF0aW9uLCB0Z3RTZXBhcmF0b3IhKTtcbiAgfVxuXG4gIHB1YmxpYyBjb25zdHJ1Y3Rvcihjb2w6IERHLkNvbHVtbikge1xuICAgIHN1cGVyKGNvbCk7XG4gIH1cbn1cbiJdfQ== |
import * as DG from 'datagrok-api/dg'; | ||
/** enum type to simplify setting "user-friendly" notation if necessary */ | ||
export declare const enum NOTATION { | ||
FASTA = "FASTA", | ||
SEPARATOR = "SEPARATOR", | ||
HELM = "HELM" | ||
FASTA = "fasta", | ||
SEPARATOR = "separator", | ||
HELM = "helm" | ||
} | ||
export declare const enum ALPHABET { | ||
DNA = "DNA", | ||
RNA = "RNA", | ||
PT = "PT", | ||
UN = "UN" | ||
} | ||
/** Class for handling notation units in Macromolecule columns */ | ||
export declare class UnitsHandler { | ||
static readonly TAGS: { | ||
aligned: string; | ||
alphabet: string; | ||
alphabetSize: string; | ||
alphabetIsMultichar: string; | ||
separator: string; | ||
}; | ||
protected readonly _column: DG.Column; | ||
@@ -14,3 +27,3 @@ protected _units: string; | ||
protected _defaultGapSymbol: string; | ||
protected _defaultGapSymbolsDict: { | ||
protected static readonly _defaultGapSymbolsDict: { | ||
HELM: string; | ||
@@ -17,0 +30,0 @@ SEPARATOR: string; |
@@ -6,7 +6,2 @@ import * as DG from 'datagrok-api/dg'; | ||
constructor(col) { | ||
this._defaultGapSymbolsDict = { | ||
HELM: '*', | ||
SEPARATOR: '', | ||
FASTA: '-', | ||
}; | ||
this._column = col; | ||
@@ -19,16 +14,20 @@ const units = this._column.tags[DG.TAGS.UNITS]; | ||
this._notation = this.getNotation(); | ||
this._defaultGapSymbol = (this.isFasta()) ? this._defaultGapSymbolsDict.FASTA : | ||
(this.isHelm()) ? this._defaultGapSymbolsDict.HELM : | ||
this._defaultGapSymbolsDict.SEPARATOR; | ||
if (!this.column.tags.has('.alphabetSize')) { | ||
this._defaultGapSymbol = (this.isFasta()) ? UnitsHandler._defaultGapSymbolsDict.FASTA : | ||
(this.isHelm()) ? UnitsHandler._defaultGapSymbolsDict.HELM : | ||
UnitsHandler._defaultGapSymbolsDict.SEPARATOR; | ||
if (!this.column.tags.has(UnitsHandler.TAGS.alphabetSize)) { | ||
if (this.isHelm()) | ||
throw new Error(`For column '${this.column.name}' of notation '${this.notation}' tag '.alphabetSize' is mandatory.`); | ||
throw new Error(`For column '${this.column.name}' of notation '${this.notation}' ` + | ||
`tag '${UnitsHandler.TAGS.alphabetSize}' is mandatory.`); | ||
else if (['UN'].includes(this.alphabet)) | ||
throw new Error(`For column '${this.column.name}' of alphabet '${this.alphabet}' tag '.alphabetSize' is mandatory.`); | ||
throw new Error(`For column '${this.column.name}' of alphabet '${this.alphabet}' ` + | ||
`tag '${UnitsHandler.TAGS.alphabetSize}' is mandatory.`); | ||
} | ||
if (!this.column.tags.has('.alphabetIsMultichar')) { | ||
if (!this.column.tags.has(UnitsHandler.TAGS.alphabetIsMultichar)) { | ||
if (this.isHelm()) | ||
throw new Error(`For column '${this.column.name}' of notation '${this.notation}' tag '.alphabetIsMultichar' is mandatory.`); | ||
throw new Error(`For column '${this.column.name}' of notation '${this.notation}' ` + | ||
`tag '${UnitsHandler.TAGS.alphabetIsMultichar}' is mandatory.`); | ||
else if (['UN'].includes(this.alphabet)) | ||
throw new Error(`For column '${this.column.name}' of alphabet '${this.alphabet}' tag '.alphabetIsMultichar' is mandatory.`); | ||
throw new Error(`For column '${this.column.name}' of alphabet '${this.alphabet}' ` + | ||
`tag '${UnitsHandler.TAGS.alphabetIsMultichar}' is mandatory.`); | ||
} | ||
@@ -42,5 +41,5 @@ } | ||
const alphabetCandidates = [ | ||
['PT', UnitsHandler.PeptideFastaAlphabet], | ||
['DNA', UnitsHandler.DnaFastaAlphabet], | ||
['RNA', UnitsHandler.RnaFastaAlphabet], | ||
["PT" /* ALPHABET.PT */, UnitsHandler.PeptideFastaAlphabet], | ||
["DNA" /* ALPHABET.DNA */, UnitsHandler.DnaFastaAlphabet], | ||
["RNA" /* ALPHABET.RNA */, UnitsHandler.RnaFastaAlphabet], | ||
]; | ||
@@ -51,6 +50,5 @@ // Calculate likelihoods for alphabet_candidates | ||
const alphabet = maxCos > 0.65 ? alphabetCandidates[alphabetCandidatesSim.indexOf(maxCos)][0] : 'UN'; | ||
const units = 'fasta'; | ||
col.setTag(DG.TAGS.UNITS, units); | ||
col.setTag('aligned', seqType); | ||
col.setTag('alphabet', alphabet); | ||
col.setTag(DG.TAGS.UNITS, "fasta" /* NOTATION.FASTA */); | ||
col.setTag(UnitsHandler.TAGS.aligned, seqType); | ||
col.setTag(UnitsHandler.TAGS.alphabet, alphabet); | ||
} | ||
@@ -62,3 +60,3 @@ get units() { return this._units; } | ||
get separator() { | ||
const separator = this.column.getTag('separator'); | ||
const separator = this.column.getTag(UnitsHandler.TAGS.separator); | ||
if (separator !== null) | ||
@@ -70,3 +68,3 @@ return separator; | ||
get aligned() { | ||
const aligned = this.column.getTag('aligned'); | ||
const aligned = this.column.getTag(UnitsHandler.TAGS.aligned); | ||
if (aligned !== null) { | ||
@@ -81,3 +79,3 @@ return aligned; | ||
get alphabet() { | ||
const alphabet = this.column.getTag('alphabet'); | ||
const alphabet = this.column.getTag(UnitsHandler.TAGS.alphabet); | ||
if (alphabet !== null) { | ||
@@ -91,4 +89,4 @@ return alphabet.toUpperCase(); | ||
getAlphabetSize() { | ||
if (this.notation == 'HELM' || this.alphabet == 'UN') { | ||
const alphabetSize = parseInt(this.column.getTag('.alphabetSize')); | ||
if (this.notation == "helm" /* NOTATION.HELM */ || this.alphabet == "UN" /* ALPHABET.UN */) { | ||
const alphabetSize = parseInt(this.column.getTag(UnitsHandler.TAGS.alphabetSize)); | ||
return alphabetSize; | ||
@@ -98,10 +96,10 @@ } | ||
switch (this.alphabet) { | ||
case 'PT': | ||
case "PT" /* ALPHABET.PT */: | ||
return 20; | ||
case "DNA" /* ALPHABET.DNA */: | ||
case "RNA" /* ALPHABET.RNA */: | ||
return 4; | ||
case 'NT': | ||
console.warn(`Unexpected alphabet 'NT'.`); | ||
return 4; | ||
case 'DNA': | ||
case 'RNA': | ||
return 4; | ||
default: | ||
@@ -113,4 +111,4 @@ throw new Error(`Unexpected alphabet '${this.alphabet}'.`); | ||
getAlphabetIsMultichar() { | ||
if (this.notation == 'HELM' || this.alphabet == 'UN') { | ||
const alphabetIsMultichar = this.column.getTag('.alphabetIsMultichar') == 'true' ? true : false; | ||
if (this.notation == "helm" /* NOTATION.HELM */ || this.alphabet == "UN" /* ALPHABET.UN */) { | ||
const alphabetIsMultichar = this.column.getTag(UnitsHandler.TAGS.alphabetIsMultichar) == 'true' ? true : false; | ||
return alphabetIsMultichar; | ||
@@ -122,5 +120,5 @@ } | ||
} | ||
isFasta() { return this.notation === "FASTA" /* NOTATION.FASTA */; } | ||
isSeparator() { return this.notation === "SEPARATOR" /* NOTATION.SEPARATOR */; } | ||
isHelm() { return this.notation === "HELM" /* NOTATION.HELM */; } | ||
isFasta() { return this.notation === "fasta" /* NOTATION.FASTA */; } | ||
isSeparator() { return this.notation === "separator" /* NOTATION.SEPARATOR */; } | ||
isHelm() { return this.notation === "helm" /* NOTATION.HELM */; } | ||
isRna() { return this.alphabet === 'RNA'; } | ||
@@ -134,8 +132,8 @@ isDna() { return this.alphabet === 'DNA'; } | ||
getNotation() { | ||
if (this.units.toLowerCase().startsWith('fasta')) | ||
return "FASTA" /* NOTATION.FASTA */; | ||
else if (this.units.toLowerCase().startsWith('separator')) | ||
return "SEPARATOR" /* NOTATION.SEPARATOR */; | ||
else if (this.units.toLowerCase().startsWith('helm')) | ||
return "HELM" /* NOTATION.HELM */; | ||
if (this.units.toLowerCase().startsWith("fasta" /* NOTATION.FASTA */)) | ||
return "fasta" /* NOTATION.FASTA */; | ||
else if (this.units.toLowerCase().startsWith("separator" /* NOTATION.SEPARATOR */)) | ||
return "separator" /* NOTATION.SEPARATOR */; | ||
else if (this.units.toLowerCase().startsWith("helm" /* NOTATION.HELM */)) | ||
return "helm" /* NOTATION.HELM */; | ||
else | ||
@@ -158,3 +156,3 @@ throw new Error(`Column '${this.column.name}' has unexpected notation '${this.units}'.`); | ||
newColumn.semType = DG.SEMTYPE.MACROMOLECULE; | ||
newColumn.setTag(DG.TAGS.UNITS, this.units.replace(this.notation.toLowerCase().toString(), targetNotation.toLowerCase().toString())); | ||
newColumn.setTag(DG.TAGS.UNITS, this.notation); | ||
newColumn.setTag(DG.TAGS.CELL_RENDERER, 'Macromolecule'); | ||
@@ -183,3 +181,3 @@ return newColumn; | ||
units = units.toLowerCase(); | ||
const prefixes = ["FASTA" /* NOTATION.FASTA */, "SEPARATOR" /* NOTATION.SEPARATOR */, "HELM" /* NOTATION.HELM */]; | ||
const prefixes = ["fasta" /* NOTATION.FASTA */, "separator" /* NOTATION.SEPARATOR */, "helm" /* NOTATION.HELM */]; | ||
const postfixes = ['rna', 'dna', 'pt']; | ||
@@ -210,2 +208,14 @@ const prefixCriterion = prefixes.some((p) => units.startsWith(p.toLowerCase())); | ||
} | ||
UnitsHandler.TAGS = { | ||
aligned: 'aligned', | ||
alphabet: 'alphabet', | ||
alphabetSize: '.alphabetSize', | ||
alphabetIsMultichar: '.alphabetIsMultichar', | ||
separator: 'separator', | ||
}; | ||
UnitsHandler._defaultGapSymbolsDict = { | ||
HELM: '*', | ||
SEPARATOR: '', | ||
FASTA: '-', | ||
}; | ||
UnitsHandler.PeptideFastaAlphabet = new Set([ | ||
@@ -217,2 +227,2 @@ 'G', 'L', 'Y', 'S', 'E', 'Q', 'D', 'N', 'F', 'A', | ||
UnitsHandler.RnaFastaAlphabet = new Set(['A', 'C', 'G', 'U']); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5pdHMtaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVuaXRzLWhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUl0QyxPQUFPLEVBQUMsT0FBTyxFQUFjLE1BQU0scUJBQXFCLENBQUM7QUFTekQsaUVBQWlFO0FBQ2pFLE1BQU0sT0FBTyxZQUFZO0lBcU52QixZQUFtQixHQUFjO1FBaE52QiwyQkFBc0IsR0FBRztZQUNqQyxJQUFJLEVBQUUsR0FBRztZQUNULFNBQVMsRUFBRSxFQU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Gb3IgY29sdW1uICcke3RoaXMuY29sdW1uLm5hbWV9JyBvZiBhbHBoYWJldCAnJHt0aGlzLmFscGhhYmV0fScgYCArXG4gICAgICAgICAgYHRhZyAnJHtVbml0c0hhbmRsZXIuVEFHUy5hbHBoYWJldElzTXVsdGljaGFyfScgaXMgbWFuZGF0b3J5LmApO1xuICAgIH1cbiAgfVxufVxuIl19 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
350094
2601
Updateddatagrok-api@^1.6.6