@teselagen/sequence-utils 0.3.38-beta.2 → 0.3.41
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/DNAComplementMap.d.ts +1 -1
- package/addGapsToSeqReads.d.ts +3 -16
- package/adjustAnnotationsToInsert.d.ts +1 -2
- package/adjustBpsToReplaceOrInsert.d.ts +1 -2
- package/aliasedEnzymesByName.d.ts +1 -37
- package/aminoAcidToDegenerateDnaMap.d.ts +31 -1
- package/aminoAcidToDegenerateRnaMap.d.ts +1 -1
- package/annotateSingleSeq.d.ts +4 -5
- package/annotationTypes.d.ts +2 -2
- package/autoAnnotate.d.ts +8 -17
- package/bioData.d.ts +58 -10
- package/calculateEndStability.d.ts +1 -1
- package/calculateNebTa.d.ts +1 -6
- package/calculateNebTm.d.ts +4 -6
- package/calculatePercentGC.d.ts +1 -1
- package/calculateSantaLuciaTm.d.ts +114 -28
- package/calculateTm.d.ts +1 -13
- package/computeDigestFragments.d.ts +24 -30
- package/condensePairwiseAlignmentDifferences.d.ts +1 -1
- package/convertAACaretPositionOrRangeToDna.d.ts +1 -2
- package/convertDnaCaretPositionOrRangeToAA.d.ts +1 -2
- package/cutSequenceByRestrictionEnzyme.d.ts +1 -2
- package/defaultEnzymesByName.d.ts +1 -2
- package/degenerateDnaToAminoAcidMap.d.ts +1 -1
- package/degenerateRnaToAminoAcidMap.d.ts +1 -1
- package/deleteSequenceDataAtRange.d.ts +1 -2
- package/diffUtils.d.ts +7 -9
- package/doesEnzymeChopOutsideOfRecognitionSite.d.ts +1 -2
- package/featureTypesAndColors.d.ts +6 -19
- package/filterSequenceString.d.ts +10 -14
- package/findApproxMatches.d.ts +1 -7
- package/findNearestRangeOfSequenceOverlapToPosition.d.ts +1 -2
- package/findOrfsInPlasmid.d.ts +11 -2
- package/findSequenceMatches.d.ts +1 -11
- package/generateAnnotations.d.ts +1 -2
- package/generateSequenceData.d.ts +13 -8
- package/getAllInsertionsInSeqReads.d.ts +1 -11
- package/getAminoAcidDataForEachBaseOfDna.d.ts +5 -6
- package/getAminoAcidFromSequenceTriplet.d.ts +1 -1
- package/getAminoAcidStringFromSequenceString.d.ts +1 -3
- package/getCodonRangeForAASliver.d.ts +4 -3
- package/getComplementAminoAcidStringFromSequenceString.d.ts +1 -1
- package/getComplementSequenceAndAnnotations.d.ts +1 -5
- package/getComplementSequenceString.d.ts +1 -1
- package/getCutsiteType.d.ts +1 -2
- package/getCutsitesFromSequence.d.ts +1 -2
- package/getDegenerateDnaStringFromAAString.d.ts +1 -1
- package/getDegenerateRnaStringFromAAString.d.ts +1 -1
- package/getDigestFragmentsForCutsites.d.ts +1 -4
- package/getDigestFragmentsForRestrictionEnzymes.d.ts +1 -8
- package/getInsertBetweenVals.d.ts +1 -2
- package/getLeftAndRightOfSequenceInRangeGivenPosition.d.ts +1 -2
- package/getOrfsFromSequence.d.ts +11 -17
- package/getOverlapBetweenTwoSequences.d.ts +1 -2
- package/getPossiblePartsFromSequenceAndEnzymes.d.ts +1 -18
- package/getReverseAminoAcidStringFromSequenceString.d.ts +1 -1
- package/getReverseComplementAminoAcidStringFromSequenceString.d.ts +1 -1
- package/getReverseComplementAnnotation.d.ts +1 -11
- package/getReverseComplementSequenceAndAnnotations.d.ts +1 -5
- package/getReverseComplementSequenceString.d.ts +1 -1
- package/getReverseSequenceString.d.ts +1 -1
- package/getSequenceDataBetweenRange.d.ts +1 -9
- package/getVirtualDigest.d.ts +10 -11
- package/guessIfSequenceIsDnaAndNotProtein.d.ts +1 -5
- package/index.cjs +491 -728
- package/index.d.ts +5 -8
- package/index.js +491 -728
- package/index.umd.cjs +491 -728
- package/insertGapsIntoRefSeq.d.ts +1 -2
- package/insertSequenceDataAtPositionOrRange.d.ts +1 -10
- package/isEnzymeType2S.d.ts +1 -2
- package/mapAnnotationsToRows.d.ts +1 -9
- package/package.json +9 -12
- package/prepareCircularViewData.d.ts +1 -2
- package/prepareRowData.d.ts +3 -7
- package/proteinAlphabet.d.ts +1 -1
- package/rotateBpsToPosition.d.ts +1 -1
- package/rotateSequenceDataToPosition.d.ts +1 -3
- package/shiftAnnotationsByLen.d.ts +3 -4
- package/src/autoAnnotate.test.js +1 -0
- package/src/getSequenceDataBetweenRange.js +11 -2
- package/src/getSequenceDataBetweenRange.test.js +42 -0
- package/src/prepareRowData_output1.json +0 -1
- package/threeLetterSequenceStringToAminoAcidMap.d.ts +921 -11
- package/tidyUpAnnotation.d.ts +11 -13
- package/tidyUpSequenceData.d.ts +1 -15
- package/src/DNAComplementMap.ts +0 -32
- package/src/addGapsToSeqReads.ts +0 -436
- package/src/adjustAnnotationsToInsert.ts +0 -20
- package/src/adjustBpsToReplaceOrInsert.ts +0 -73
- package/src/aliasedEnzymesByName.ts +0 -7366
- package/src/aminoAcidToDegenerateDnaMap.ts +0 -32
- package/src/aminoAcidToDegenerateRnaMap.ts +0 -32
- package/src/annotateSingleSeq.ts +0 -37
- package/src/annotationTypes.ts +0 -23
- package/src/autoAnnotate.ts +0 -290
- package/src/bioData.ts +0 -65
- package/src/calculateEndStability.ts +0 -91
- package/src/calculateNebTa.ts +0 -46
- package/src/calculateNebTm.ts +0 -132
- package/src/calculatePercentGC.ts +0 -3
- package/src/calculateSantaLuciaTm.ts +0 -184
- package/src/calculateTm.ts +0 -242
- package/src/computeDigestFragments.ts +0 -238
- package/src/condensePairwiseAlignmentDifferences.ts +0 -85
- package/src/convertAACaretPositionOrRangeToDna.ts +0 -28
- package/src/convertDnaCaretPositionOrRangeToAA.ts +0 -28
- package/src/cutSequenceByRestrictionEnzyme.ts +0 -345
- package/src/defaultEnzymesByName.ts +0 -280
- package/src/degenerateDnaToAminoAcidMap.ts +0 -5
- package/src/degenerateRnaToAminoAcidMap.ts +0 -5
- package/src/deleteSequenceDataAtRange.ts +0 -13
- package/src/diffUtils.ts +0 -80
- package/src/doesEnzymeChopOutsideOfRecognitionSite.ts +0 -16
- package/src/featureTypesAndColors.ts +0 -167
- package/src/filterSequenceString.ts +0 -153
- package/src/findApproxMatches.ts +0 -58
- package/src/findNearestRangeOfSequenceOverlapToPosition.ts +0 -43
- package/src/findOrfsInPlasmid.ts +0 -31
- package/src/findSequenceMatches.ts +0 -154
- package/src/generateAnnotations.ts +0 -39
- package/src/generateSequenceData.ts +0 -212
- package/src/getAllInsertionsInSeqReads.ts +0 -100
- package/src/getAminoAcidDataForEachBaseOfDna.ts +0 -305
- package/src/getAminoAcidFromSequenceTriplet.ts +0 -27
- package/src/getAminoAcidStringFromSequenceString.ts +0 -36
- package/src/getCodonRangeForAASliver.ts +0 -73
- package/src/getComplementAminoAcidStringFromSequenceString.ts +0 -10
- package/src/getComplementSequenceAndAnnotations.ts +0 -25
- package/src/getComplementSequenceString.ts +0 -23
- package/src/getCutsiteType.ts +0 -18
- package/src/getCutsitesFromSequence.ts +0 -22
- package/src/getDegenerateDnaStringFromAAString.ts +0 -15
- package/src/getDegenerateRnaStringFromAAString.ts +0 -15
- package/src/getDigestFragmentsForCutsites.ts +0 -126
- package/src/getDigestFragmentsForRestrictionEnzymes.ts +0 -50
- package/src/getInsertBetweenVals.ts +0 -31
- package/src/getLeftAndRightOfSequenceInRangeGivenPosition.ts +0 -40
- package/src/getMassOfAaString.ts +0 -29
- package/src/getOrfsFromSequence.ts +0 -132
- package/src/getOverlapBetweenTwoSequences.ts +0 -30
- package/src/getPossiblePartsFromSequenceAndEnzymes.ts +0 -149
- package/src/getReverseAminoAcidStringFromSequenceString.ts +0 -22
- package/src/getReverseComplementAminoAcidStringFromSequenceString.ts +0 -10
- package/src/getReverseComplementAnnotation.ts +0 -33
- package/src/getReverseComplementSequenceAndAnnotations.ts +0 -46
- package/src/getReverseComplementSequenceString.ts +0 -18
- package/src/getReverseSequenceString.ts +0 -12
- package/src/getSequenceDataBetweenRange.ts +0 -154
- package/src/getVirtualDigest.ts +0 -139
- package/src/guessIfSequenceIsDnaAndNotProtein.ts +0 -39
- package/src/index.test.ts +0 -43
- package/src/index.ts +0 -111
- package/src/insertGapsIntoRefSeq.ts +0 -43
- package/src/insertSequenceDataAtPosition.ts +0 -2
- package/src/insertSequenceDataAtPositionOrRange.ts +0 -328
- package/src/isEnzymeType2S.ts +0 -5
- package/src/mapAnnotationsToRows.ts +0 -256
- package/src/prepareCircularViewData.ts +0 -24
- package/src/prepareRowData.ts +0 -61
- package/src/proteinAlphabet.ts +0 -271
- package/src/rotateBpsToPosition.ts +0 -12
- package/src/rotateSequenceDataToPosition.ts +0 -54
- package/src/shiftAnnotationsByLen.ts +0 -24
- package/src/threeLetterSequenceStringToAminoAcidMap.ts +0 -198
- package/src/tidyUpAnnotation.ts +0 -205
- package/src/tidyUpSequenceData.ts +0 -213
- package/src/types.ts +0 -109
- package/types.d.ts +0 -105
package/DNAComplementMap.d.ts
CHANGED
package/addGapsToSeqReads.d.ts
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
name:
|
|
3
|
-
|
|
4
|
-
pos: number;
|
|
5
|
-
cigar: string;
|
|
6
|
-
reversed?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default function addGapsToSeqReads(refSeq: {
|
|
9
|
-
name: string;
|
|
10
|
-
sequence: string;
|
|
11
|
-
}, seqReads: SeqRead[]): {
|
|
12
|
-
name: string;
|
|
13
|
-
sequence: string;
|
|
14
|
-
reversed?: boolean;
|
|
15
|
-
cigar?: string;
|
|
1
|
+
export default function addGapsToSeqReads(refSeq: any, seqReads: any): {
|
|
2
|
+
name: any;
|
|
3
|
+
sequence: any;
|
|
16
4
|
}[];
|
|
17
|
-
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function adjustAnnotationsToInsert(annotationsToBeAdjusted: Record<string, Annotation> | Annotation[], insertStart: number, insertLength: number): boolean[];
|
|
1
|
+
export default function adjustAnnotationsToInsert(annotationsToBeAdjusted: any, insertStart: any, insertLength: any): any[];
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function adjustBpsToReplaceOrInsert(bpString: string, insertString: string | undefined, caretPositionOrRange: number | Range): string;
|
|
1
|
+
export default function adjustBpsToReplaceOrInsert(bpString: any, insertString: string | undefined, caretPositionOrRange: any): any;
|
|
@@ -1,38 +1,2 @@
|
|
|
1
|
-
declare const aliasedEnzymes: ({
|
|
2
|
-
aliases: string[];
|
|
3
|
-
site: string;
|
|
4
|
-
forwardRegex: string;
|
|
5
|
-
reverseRegex: string;
|
|
6
|
-
topSnipOffset: number;
|
|
7
|
-
bottomSnipOffset: number;
|
|
8
|
-
isType2S?: undefined;
|
|
9
|
-
cutType?: undefined;
|
|
10
|
-
usForward?: undefined;
|
|
11
|
-
usReverse?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
aliases: string[];
|
|
14
|
-
site: string;
|
|
15
|
-
forwardRegex: string;
|
|
16
|
-
reverseRegex: string;
|
|
17
|
-
topSnipOffset: number;
|
|
18
|
-
bottomSnipOffset: number;
|
|
19
|
-
isType2S: boolean;
|
|
20
|
-
cutType?: undefined;
|
|
21
|
-
usForward?: undefined;
|
|
22
|
-
usReverse?: undefined;
|
|
23
|
-
} | {
|
|
24
|
-
aliases: string[];
|
|
25
|
-
isType2S: boolean;
|
|
26
|
-
site: string;
|
|
27
|
-
forwardRegex: string;
|
|
28
|
-
reverseRegex: string;
|
|
29
|
-
topSnipOffset: number;
|
|
30
|
-
bottomSnipOffset: number;
|
|
31
|
-
cutType: number;
|
|
32
|
-
usForward: number;
|
|
33
|
-
usReverse: number;
|
|
34
|
-
})[];
|
|
35
|
-
declare const aliasedEnzymesByName: Record<string, (typeof aliasedEnzymes)[number] & {
|
|
36
|
-
name: string;
|
|
37
|
-
}>;
|
|
38
1
|
export default aliasedEnzymesByName;
|
|
2
|
+
declare const aliasedEnzymesByName: {};
|
|
@@ -1,2 +1,32 @@
|
|
|
1
|
-
declare const aminoAcidToDegenerateDnaMap: Record<string, string>;
|
|
2
1
|
export default aminoAcidToDegenerateDnaMap;
|
|
2
|
+
declare const aminoAcidToDegenerateDnaMap: {
|
|
3
|
+
"-": string;
|
|
4
|
+
".": string;
|
|
5
|
+
"*": string;
|
|
6
|
+
a: string;
|
|
7
|
+
b: string;
|
|
8
|
+
c: string;
|
|
9
|
+
d: string;
|
|
10
|
+
e: string;
|
|
11
|
+
f: string;
|
|
12
|
+
g: string;
|
|
13
|
+
h: string;
|
|
14
|
+
i: string;
|
|
15
|
+
j: string;
|
|
16
|
+
k: string;
|
|
17
|
+
l: string;
|
|
18
|
+
m: string;
|
|
19
|
+
n: string;
|
|
20
|
+
o: string;
|
|
21
|
+
p: string;
|
|
22
|
+
q: string;
|
|
23
|
+
r: string;
|
|
24
|
+
s: string;
|
|
25
|
+
t: string;
|
|
26
|
+
u: string;
|
|
27
|
+
v: string;
|
|
28
|
+
w: string;
|
|
29
|
+
x: string;
|
|
30
|
+
y: string;
|
|
31
|
+
z: string;
|
|
32
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export default aminoAcidToDegenerateRnaMap;
|
|
1
2
|
declare const aminoAcidToDegenerateRnaMap: {
|
|
2
3
|
"-": string;
|
|
3
4
|
".": string;
|
|
@@ -29,4 +30,3 @@ declare const aminoAcidToDegenerateRnaMap: {
|
|
|
29
30
|
y: string;
|
|
30
31
|
z: string;
|
|
31
32
|
};
|
|
32
|
-
export default aminoAcidToDegenerateRnaMap;
|
package/annotateSingleSeq.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export default annotateSingleSeq;
|
|
2
2
|
declare function annotateSingleSeq({ fullSeq, searchSeq }: {
|
|
3
|
-
fullSeq:
|
|
4
|
-
searchSeq:
|
|
3
|
+
fullSeq: any;
|
|
4
|
+
searchSeq: any;
|
|
5
5
|
}): {
|
|
6
|
-
matches:
|
|
6
|
+
matches: any;
|
|
7
7
|
};
|
|
8
|
-
export default annotateSingleSeq;
|
package/annotationTypes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export const annotationTypes: string[];
|
|
2
|
+
export const modifiableTypes: string[];
|
package/autoAnnotate.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
sequence: string;
|
|
10
|
-
id: string;
|
|
11
|
-
}>;
|
|
12
|
-
compareName?: boolean;
|
|
13
|
-
warnIfMoreThan?: number;
|
|
14
|
-
}): Record<string, Annotation[] | Record<string, string[]>>;
|
|
15
|
-
declare function convertApELikeRegexToRegex(regString?: string): string;
|
|
16
|
-
declare function convertProteinSeqToDNAIupac(sequence: string): string;
|
|
17
|
-
export { convertProteinSeqToDNAIupac, convertApELikeRegexToRegex, autoAnnotate };
|
|
1
|
+
export function convertProteinSeqToDNAIupac(sequence: any): string;
|
|
2
|
+
export function convertApELikeRegexToRegex(regString?: string): string;
|
|
3
|
+
export function autoAnnotate({ seqsToAnnotateById, annotationsToCheckById, compareName, warnIfMoreThan }: {
|
|
4
|
+
seqsToAnnotateById: any;
|
|
5
|
+
annotationsToCheckById: any;
|
|
6
|
+
compareName: any;
|
|
7
|
+
warnIfMoreThan: any;
|
|
8
|
+
}): {};
|
package/bioData.d.ts
CHANGED
|
@@ -1,10 +1,58 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
1
|
+
export const protein_letters: "ACDEFGHIKLMNPQRSTVWY";
|
|
2
|
+
export const protein_letters_withUandX: "ACDEFGHIKLMNPQRSTVWYUX";
|
|
3
|
+
export const extended_protein_letters: "ACDEFGHIKLMNPQRSTVWYBXZJUO*";
|
|
4
|
+
export const ambiguous_dna_letters: "GATCRYWSMKHBVDN";
|
|
5
|
+
export const unambiguous_dna_letters: "GATC";
|
|
6
|
+
export const ambiguous_rna_letters: "GAUCRYWSMKHBVDN";
|
|
7
|
+
export const unambiguous_rna_letters: "GAUC";
|
|
8
|
+
export const extended_dna_letters: "GATCBDSW";
|
|
9
|
+
export const ambiguous_dna_values: {
|
|
10
|
+
".": string;
|
|
11
|
+
A: string;
|
|
12
|
+
C: string;
|
|
13
|
+
G: string;
|
|
14
|
+
T: string;
|
|
15
|
+
M: string;
|
|
16
|
+
R: string;
|
|
17
|
+
W: string;
|
|
18
|
+
S: string;
|
|
19
|
+
Y: string;
|
|
20
|
+
K: string;
|
|
21
|
+
V: string;
|
|
22
|
+
H: string;
|
|
23
|
+
D: string;
|
|
24
|
+
B: string;
|
|
25
|
+
X: string;
|
|
26
|
+
N: string;
|
|
27
|
+
};
|
|
28
|
+
export const extended_protein_values: {
|
|
29
|
+
A: string;
|
|
30
|
+
B: string;
|
|
31
|
+
C: string;
|
|
32
|
+
D: string;
|
|
33
|
+
E: string;
|
|
34
|
+
F: string;
|
|
35
|
+
G: string;
|
|
36
|
+
H: string;
|
|
37
|
+
I: string;
|
|
38
|
+
J: string;
|
|
39
|
+
K: string;
|
|
40
|
+
L: string;
|
|
41
|
+
M: string;
|
|
42
|
+
N: string;
|
|
43
|
+
O: string;
|
|
44
|
+
P: string;
|
|
45
|
+
Q: string;
|
|
46
|
+
R: string;
|
|
47
|
+
S: string;
|
|
48
|
+
T: string;
|
|
49
|
+
U: string;
|
|
50
|
+
V: string;
|
|
51
|
+
W: string;
|
|
52
|
+
X: string;
|
|
53
|
+
Y: string;
|
|
54
|
+
Z: string;
|
|
55
|
+
"*": string;
|
|
56
|
+
".": string;
|
|
57
|
+
"-": string;
|
|
58
|
+
};
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
* @returns {number} - Delta G (kcal/mol) for the last 5 bases at 3' end
|
|
14
14
|
* @throws {Error} Invalid sequence or too short.
|
|
15
15
|
*/
|
|
16
|
-
export default function calculateEndStability(sequence: string): number
|
|
16
|
+
export default function calculateEndStability(sequence: string): number;
|
package/calculateNebTa.d.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
monovalentCationConc?: number;
|
|
3
|
-
polymerase?: string;
|
|
4
|
-
}
|
|
5
|
-
export default function calculateNebTa(sequences: string[], primerConc: number, { monovalentCationConc, polymerase }?: NebTaOptions): number | string;
|
|
6
|
-
export {};
|
|
1
|
+
export default function calculateNebTa(sequences: any, primerConc: any, { monovalentCationConc, polymerase }?: {}): any;
|
package/calculateNebTm.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
monovalentCationConc?: number;
|
|
3
|
-
primerConc?: number;
|
|
4
|
-
}
|
|
5
|
-
export default function calculateNebTm(sequence: string, { monovalentCationConc, primerConc }?: NebTmOptions): number | string;
|
|
6
|
-
export {};
|
|
1
|
+
export default function calculateNebTm(sequence: any, { monovalentCationConc, primerConc }?: {
|
|
2
|
+
monovalentCationConc?: number | undefined;
|
|
3
|
+
primerConc?: number | undefined;
|
|
4
|
+
}): string | number;
|
package/calculatePercentGC.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function calculatePercentGC(bps:
|
|
1
|
+
export default function calculatePercentGC(bps: any): number;
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Primer3 Melting Temperature Calculator
|
|
3
|
-
*
|
|
4
|
-
* Implements the melting temperature calculation algorithm from Primer3
|
|
5
|
-
* based on the documentation at https://primer3.ut.ee/primer3web_help.htm
|
|
6
|
-
*
|
|
7
|
-
* Uses SantaLucia (1998) nearest-neighbor thermodynamics method with
|
|
8
|
-
* fixed Primer3 custom parameters:
|
|
9
|
-
* - Formula: SantaLucia (1998)
|
|
10
|
-
* - Salt correction: SantaLucia (1998)
|
|
11
|
-
* - Monovalent salt: 50.0 mM
|
|
12
|
-
* - Divalent salt: 1.5 mM
|
|
13
|
-
* - dNTP concentration: 0.6 mM
|
|
14
|
-
* - DNA concentration: 50.0 nM
|
|
15
|
-
*
|
|
16
|
-
* References:
|
|
17
|
-
* - SantaLucia JR (1998) "A unified view of polymer, dumbbell and
|
|
18
|
-
* oligonucleotide DNA nearest-neighbor thermodynamics",
|
|
19
|
-
* Proc Natl Acad Sci 95:1460-65
|
|
20
|
-
*/
|
|
21
|
-
export interface SantaLuciaParams {
|
|
22
|
-
dH: number;
|
|
23
|
-
dS: number;
|
|
24
|
-
}
|
|
25
|
-
export declare const SANTA_LUCIA_NN: Record<string, SantaLuciaParams>;
|
|
26
|
-
export declare const SANTA_LUCIA_INIT: Record<string, SantaLuciaParams>;
|
|
27
1
|
/**
|
|
28
2
|
* Validate DNA sequence
|
|
29
3
|
*
|
|
30
4
|
* @param {string} sequence - DNA sequence
|
|
31
5
|
* @returns {boolean} - True if valid
|
|
32
6
|
*/
|
|
33
|
-
export
|
|
7
|
+
export function isValidSequence(sequence: string): boolean;
|
|
34
8
|
/**
|
|
35
9
|
* Calculate melting temperature using SantaLucia (1998) method
|
|
36
10
|
*
|
|
@@ -38,4 +12,116 @@ export declare function isValidSequence(sequence: string): boolean;
|
|
|
38
12
|
* @returns {number} - Melting temperature in Celsius
|
|
39
13
|
* @throws {Error} Invalid sequence or too short.
|
|
40
14
|
*/
|
|
41
|
-
export default function calculateSantaLuciaTm(sequence: string): number
|
|
15
|
+
export default function calculateSantaLuciaTm(sequence: string): number;
|
|
16
|
+
export namespace SANTA_LUCIA_NN {
|
|
17
|
+
namespace AA {
|
|
18
|
+
let dH: number;
|
|
19
|
+
let dS: number;
|
|
20
|
+
}
|
|
21
|
+
namespace TT {
|
|
22
|
+
let dH_1: number;
|
|
23
|
+
export { dH_1 as dH };
|
|
24
|
+
let dS_1: number;
|
|
25
|
+
export { dS_1 as dS };
|
|
26
|
+
}
|
|
27
|
+
namespace AT {
|
|
28
|
+
let dH_2: number;
|
|
29
|
+
export { dH_2 as dH };
|
|
30
|
+
let dS_2: number;
|
|
31
|
+
export { dS_2 as dS };
|
|
32
|
+
}
|
|
33
|
+
namespace TA {
|
|
34
|
+
let dH_3: number;
|
|
35
|
+
export { dH_3 as dH };
|
|
36
|
+
let dS_3: number;
|
|
37
|
+
export { dS_3 as dS };
|
|
38
|
+
}
|
|
39
|
+
namespace CA {
|
|
40
|
+
let dH_4: number;
|
|
41
|
+
export { dH_4 as dH };
|
|
42
|
+
let dS_4: number;
|
|
43
|
+
export { dS_4 as dS };
|
|
44
|
+
}
|
|
45
|
+
namespace TG {
|
|
46
|
+
let dH_5: number;
|
|
47
|
+
export { dH_5 as dH };
|
|
48
|
+
let dS_5: number;
|
|
49
|
+
export { dS_5 as dS };
|
|
50
|
+
}
|
|
51
|
+
namespace GT {
|
|
52
|
+
let dH_6: number;
|
|
53
|
+
export { dH_6 as dH };
|
|
54
|
+
let dS_6: number;
|
|
55
|
+
export { dS_6 as dS };
|
|
56
|
+
}
|
|
57
|
+
namespace AC {
|
|
58
|
+
let dH_7: number;
|
|
59
|
+
export { dH_7 as dH };
|
|
60
|
+
let dS_7: number;
|
|
61
|
+
export { dS_7 as dS };
|
|
62
|
+
}
|
|
63
|
+
namespace CT {
|
|
64
|
+
let dH_8: number;
|
|
65
|
+
export { dH_8 as dH };
|
|
66
|
+
let dS_8: number;
|
|
67
|
+
export { dS_8 as dS };
|
|
68
|
+
}
|
|
69
|
+
namespace AG {
|
|
70
|
+
let dH_9: number;
|
|
71
|
+
export { dH_9 as dH };
|
|
72
|
+
let dS_9: number;
|
|
73
|
+
export { dS_9 as dS };
|
|
74
|
+
}
|
|
75
|
+
namespace GA {
|
|
76
|
+
let dH_10: number;
|
|
77
|
+
export { dH_10 as dH };
|
|
78
|
+
let dS_10: number;
|
|
79
|
+
export { dS_10 as dS };
|
|
80
|
+
}
|
|
81
|
+
namespace TC {
|
|
82
|
+
let dH_11: number;
|
|
83
|
+
export { dH_11 as dH };
|
|
84
|
+
let dS_11: number;
|
|
85
|
+
export { dS_11 as dS };
|
|
86
|
+
}
|
|
87
|
+
namespace CG {
|
|
88
|
+
let dH_12: number;
|
|
89
|
+
export { dH_12 as dH };
|
|
90
|
+
let dS_12: number;
|
|
91
|
+
export { dS_12 as dS };
|
|
92
|
+
}
|
|
93
|
+
namespace GC {
|
|
94
|
+
let dH_13: number;
|
|
95
|
+
export { dH_13 as dH };
|
|
96
|
+
let dS_13: number;
|
|
97
|
+
export { dS_13 as dS };
|
|
98
|
+
}
|
|
99
|
+
namespace GG {
|
|
100
|
+
let dH_14: number;
|
|
101
|
+
export { dH_14 as dH };
|
|
102
|
+
let dS_14: number;
|
|
103
|
+
export { dS_14 as dS };
|
|
104
|
+
}
|
|
105
|
+
namespace CC {
|
|
106
|
+
let dH_15: number;
|
|
107
|
+
export { dH_15 as dH };
|
|
108
|
+
let dS_15: number;
|
|
109
|
+
export { dS_15 as dS };
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export namespace SANTA_LUCIA_INIT {
|
|
113
|
+
export namespace GC_1 {
|
|
114
|
+
let dH_16: number;
|
|
115
|
+
export { dH_16 as dH };
|
|
116
|
+
let dS_16: number;
|
|
117
|
+
export { dS_16 as dS };
|
|
118
|
+
}
|
|
119
|
+
export { GC_1 as GC };
|
|
120
|
+
export namespace AT_1 {
|
|
121
|
+
let dH_17: number;
|
|
122
|
+
export { dH_17 as dH };
|
|
123
|
+
let dS_17: number;
|
|
124
|
+
export { dS_17 as dS };
|
|
125
|
+
}
|
|
126
|
+
export { AT_1 as AT };
|
|
127
|
+
}
|
package/calculateTm.d.ts
CHANGED
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* DNA melting temperature calculator.
|
|
3
|
-
* @author Nick Elsbree
|
|
4
|
-
* @author Zinovii Dmytriv (original author)
|
|
5
|
-
*/
|
|
6
|
-
interface CalculateTemperatureOptions {
|
|
7
|
-
type?: "breslauer" | "sugimoto" | "unified";
|
|
8
|
-
A?: number;
|
|
9
|
-
R?: number;
|
|
10
|
-
primerConc?: number;
|
|
11
|
-
monovalentCationConc?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: (_sequence: string, { type, A, R, primerConc, monovalentCationConc }?: CalculateTemperatureOptions) => number;
|
|
1
|
+
declare function _default(_sequence: any, { type, A, R, primerConc, monovalentCationConc }?: {}): number;
|
|
14
2
|
export default _default;
|
|
@@ -1,33 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export declare function computeDigestFragments({ cutsites, sequenceLength, circular, includeOverAndUnderHangs, computePartialDigest, computeDigestDisabled, computePartialDigestDisabled, selectionLayerUpdate, updateSelectedFragment }: ComputeDigestFragmentsParams): {
|
|
18
|
-
computePartialDigestDisabled: boolean | undefined;
|
|
19
|
-
computeDigestDisabled: boolean | undefined;
|
|
20
|
-
fragments: DigestFragment[];
|
|
21
|
-
overlappingEnzymes: DigestFragment[];
|
|
1
|
+
export function computeDigestFragments({ cutsites, sequenceLength, circular, includeOverAndUnderHangs, computePartialDigest, computeDigestDisabled, computePartialDigestDisabled, selectionLayerUpdate, updateSelectedFragment }: {
|
|
2
|
+
cutsites: any;
|
|
3
|
+
sequenceLength: any;
|
|
4
|
+
circular: any;
|
|
5
|
+
includeOverAndUnderHangs: any;
|
|
6
|
+
computePartialDigest: any;
|
|
7
|
+
computeDigestDisabled: any;
|
|
8
|
+
computePartialDigestDisabled: any;
|
|
9
|
+
selectionLayerUpdate: any;
|
|
10
|
+
updateSelectedFragment: any;
|
|
11
|
+
}): {
|
|
12
|
+
computePartialDigestDisabled: any;
|
|
13
|
+
computeDigestDisabled: any;
|
|
14
|
+
fragments: any[];
|
|
15
|
+
overlappingEnzymes: any[];
|
|
22
16
|
};
|
|
23
|
-
export
|
|
24
|
-
sequence:
|
|
25
|
-
circular:
|
|
26
|
-
enzymes:
|
|
27
|
-
includeOverAndUnderHangs
|
|
17
|
+
export function getDigestFragsForSeqAndEnzymes({ sequence, circular, enzymes, includeOverAndUnderHangs }: {
|
|
18
|
+
sequence: any;
|
|
19
|
+
circular: any;
|
|
20
|
+
enzymes: any;
|
|
21
|
+
includeOverAndUnderHangs: any;
|
|
28
22
|
}): {
|
|
29
|
-
computePartialDigestDisabled:
|
|
30
|
-
computeDigestDisabled:
|
|
31
|
-
fragments:
|
|
32
|
-
overlappingEnzymes:
|
|
23
|
+
computePartialDigestDisabled: any;
|
|
24
|
+
computeDigestDisabled: any;
|
|
25
|
+
fragments: any[];
|
|
26
|
+
overlappingEnzymes: any[];
|
|
33
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function condensePairwiseAlignmentDifferences(referenceSeq:
|
|
1
|
+
export default function condensePairwiseAlignmentDifferences(referenceSeq: any, alignedSeq: any): string;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function convertAACaretPositionOrRangeToDna(rangeOrCaret: Range | number): Range | number;
|
|
1
|
+
export default function convertAACaretPositionOrRangeToDna(rangeOrCaret: any): any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function convertDnaCaretPositionOrRangeToAA(rangeOrCaret: Range | number): Range | number;
|
|
1
|
+
export default function convertDnaCaretPositionOrRangeToAA(rangeOrCaret: any): any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function cutSequenceByRestrictionEnzyme(pSequence: string, circular: boolean, restrictionEnzyme: RestrictionEnzyme): CutSite[];
|
|
1
|
+
export default function cutSequenceByRestrictionEnzyme(pSequence: any, circular: any, restrictionEnzyme: any): any[];
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function deleteSequenceDataAtRange(sequenceData: SequenceData, range: Range): SequenceData;
|
|
1
|
+
export default function deleteSequenceDataAtRange(sequenceData: any, range: any): any;
|
package/diffUtils.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare const reverseSeqDiff: (diffData: Delta) => Delta | undefined;
|
|
9
|
-
export { getDiffFromSeqs, patchSeqWithDiff, reverseSeqDiff };
|
|
1
|
+
export function getDiffFromSeqs(oldData: any, newData: any, { ignoreKeys }?: {
|
|
2
|
+
ignoreKeys?: never[] | undefined;
|
|
3
|
+
}): import('jsondiffpatch').Delta;
|
|
4
|
+
export function patchSeqWithDiff(oldData: any, diff: any, { ignoreKeys }?: {
|
|
5
|
+
ignoreKeys?: never[] | undefined;
|
|
6
|
+
}): unknown;
|
|
7
|
+
export function reverseSeqDiff(diff: any): import('jsondiffpatch').Delta;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function doesEnzymeChopOutsideOfRecognitionSite(enzyme: RestrictionEnzyme): boolean;
|
|
1
|
+
export default function doesEnzymeChopOutsideOfRecognitionSite(enzyme: any): boolean;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export function getGenbankFeatureToColorMap(): {};
|
|
2
|
+
export const genbankFeatureTypes: {
|
|
2
3
|
name: string;
|
|
3
4
|
color: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
declare const genbankFeatureTypes: FeatureType[];
|
|
10
|
-
declare const getMergedFeatureMap: () => Record<string, FeatureType>;
|
|
11
|
-
declare const getFeatureToColorMap: ({ includeHidden }?: {
|
|
12
|
-
includeHidden?: boolean;
|
|
13
|
-
}) => Record<string, string>;
|
|
14
|
-
declare const getFeatureTypes: ({ includeHidden }?: {
|
|
15
|
-
includeHidden?: boolean;
|
|
16
|
-
}) => string[];
|
|
17
|
-
export { genbankFeatureTypes };
|
|
18
|
-
export declare function getGenbankFeatureToColorMap(): Record<string, string>;
|
|
19
|
-
export { getFeatureToColorMap };
|
|
20
|
-
export { getFeatureTypes };
|
|
21
|
-
export { getMergedFeatureMap };
|
|
5
|
+
}[];
|
|
6
|
+
export function getFeatureToColorMap({ includeHidden }?: {}): {};
|
|
7
|
+
export function getFeatureTypes({ includeHidden }?: {}): any[];
|
|
8
|
+
export function getMergedFeatureMap(): any;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
additionalValidChars?: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export
|
|
11
|
-
export declare function getAcceptedChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: FilterSequenceStringOptions): string;
|
|
12
|
-
export declare function getReplaceChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: FilterSequenceStringOptions): Record<string, string>;
|
|
13
|
-
export declare const filterRnaString: (s: string, o: FilterSequenceStringOptions) => string;
|
|
14
|
-
export {};
|
|
1
|
+
export default function filterSequenceString(sequenceString?: string, { additionalValidChars, isOligo, name, isProtein, isRna, isMixedRnaAndDna }?: {
|
|
2
|
+
additionalValidChars?: string | undefined;
|
|
3
|
+
}): (string | string[])[];
|
|
4
|
+
export function getAcceptedChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: {}): string;
|
|
5
|
+
export function getReplaceChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: {}): {
|
|
6
|
+
t?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
t: string;
|
|
9
|
+
};
|
|
10
|
+
export function filterRnaString(s: any, o: any): string | string[];
|
package/findApproxMatches.d.ts
CHANGED
|
@@ -7,10 +7,4 @@
|
|
|
7
7
|
* @param {boolean} circular - Whether to treat the target sequence as circular (default: false)
|
|
8
8
|
* @returns {Array} - Array of objects containing { index, match, mismatchPositions }
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
11
|
-
index: number;
|
|
12
|
-
match: string;
|
|
13
|
-
mismatchPositions: number[];
|
|
14
|
-
numMismatches: number;
|
|
15
|
-
}
|
|
16
|
-
export default function findApproxMatches(searchSeq: string, targetSeq: string, maxMismatches: number, circular?: boolean): ApproxMatch[];
|
|
10
|
+
export default function findApproxMatches(searchSeq: string, targetSeq: string, maxMismatches: number, circular?: boolean): any[];
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { Range } from '../../range-utils/src/index.ts';
|
|
2
|
-
declare function findNearestRangeOfSequenceOverlapToPosition(sequenceToSearch: string, overlapSequence: string, positionStart?: number, isLinear?: boolean): Range | null;
|
|
3
1
|
export default findNearestRangeOfSequenceOverlapToPosition;
|
|
2
|
+
declare function findNearestRangeOfSequenceOverlapToPosition(sequenceToSearch: any, overlapSequence: any, positionStart: any, isLinear: any): any;
|