@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.
Files changed (169) hide show
  1. package/DNAComplementMap.d.ts +1 -1
  2. package/addGapsToSeqReads.d.ts +3 -16
  3. package/adjustAnnotationsToInsert.d.ts +1 -2
  4. package/adjustBpsToReplaceOrInsert.d.ts +1 -2
  5. package/aliasedEnzymesByName.d.ts +1 -37
  6. package/aminoAcidToDegenerateDnaMap.d.ts +31 -1
  7. package/aminoAcidToDegenerateRnaMap.d.ts +1 -1
  8. package/annotateSingleSeq.d.ts +4 -5
  9. package/annotationTypes.d.ts +2 -2
  10. package/autoAnnotate.d.ts +8 -17
  11. package/bioData.d.ts +58 -10
  12. package/calculateEndStability.d.ts +1 -1
  13. package/calculateNebTa.d.ts +1 -6
  14. package/calculateNebTm.d.ts +4 -6
  15. package/calculatePercentGC.d.ts +1 -1
  16. package/calculateSantaLuciaTm.d.ts +114 -28
  17. package/calculateTm.d.ts +1 -13
  18. package/computeDigestFragments.d.ts +24 -30
  19. package/condensePairwiseAlignmentDifferences.d.ts +1 -1
  20. package/convertAACaretPositionOrRangeToDna.d.ts +1 -2
  21. package/convertDnaCaretPositionOrRangeToAA.d.ts +1 -2
  22. package/cutSequenceByRestrictionEnzyme.d.ts +1 -2
  23. package/defaultEnzymesByName.d.ts +1 -2
  24. package/degenerateDnaToAminoAcidMap.d.ts +1 -1
  25. package/degenerateRnaToAminoAcidMap.d.ts +1 -1
  26. package/deleteSequenceDataAtRange.d.ts +1 -2
  27. package/diffUtils.d.ts +7 -9
  28. package/doesEnzymeChopOutsideOfRecognitionSite.d.ts +1 -2
  29. package/featureTypesAndColors.d.ts +6 -19
  30. package/filterSequenceString.d.ts +10 -14
  31. package/findApproxMatches.d.ts +1 -7
  32. package/findNearestRangeOfSequenceOverlapToPosition.d.ts +1 -2
  33. package/findOrfsInPlasmid.d.ts +11 -2
  34. package/findSequenceMatches.d.ts +1 -11
  35. package/generateAnnotations.d.ts +1 -2
  36. package/generateSequenceData.d.ts +13 -8
  37. package/getAllInsertionsInSeqReads.d.ts +1 -11
  38. package/getAminoAcidDataForEachBaseOfDna.d.ts +5 -6
  39. package/getAminoAcidFromSequenceTriplet.d.ts +1 -1
  40. package/getAminoAcidStringFromSequenceString.d.ts +1 -3
  41. package/getCodonRangeForAASliver.d.ts +4 -3
  42. package/getComplementAminoAcidStringFromSequenceString.d.ts +1 -1
  43. package/getComplementSequenceAndAnnotations.d.ts +1 -5
  44. package/getComplementSequenceString.d.ts +1 -1
  45. package/getCutsiteType.d.ts +1 -2
  46. package/getCutsitesFromSequence.d.ts +1 -2
  47. package/getDegenerateDnaStringFromAAString.d.ts +1 -1
  48. package/getDegenerateRnaStringFromAAString.d.ts +1 -1
  49. package/getDigestFragmentsForCutsites.d.ts +1 -4
  50. package/getDigestFragmentsForRestrictionEnzymes.d.ts +1 -8
  51. package/getInsertBetweenVals.d.ts +1 -2
  52. package/getLeftAndRightOfSequenceInRangeGivenPosition.d.ts +1 -2
  53. package/getOrfsFromSequence.d.ts +11 -17
  54. package/getOverlapBetweenTwoSequences.d.ts +1 -2
  55. package/getPossiblePartsFromSequenceAndEnzymes.d.ts +1 -18
  56. package/getReverseAminoAcidStringFromSequenceString.d.ts +1 -1
  57. package/getReverseComplementAminoAcidStringFromSequenceString.d.ts +1 -1
  58. package/getReverseComplementAnnotation.d.ts +1 -11
  59. package/getReverseComplementSequenceAndAnnotations.d.ts +1 -5
  60. package/getReverseComplementSequenceString.d.ts +1 -1
  61. package/getReverseSequenceString.d.ts +1 -1
  62. package/getSequenceDataBetweenRange.d.ts +1 -9
  63. package/getVirtualDigest.d.ts +10 -11
  64. package/guessIfSequenceIsDnaAndNotProtein.d.ts +1 -5
  65. package/index.cjs +491 -728
  66. package/index.d.ts +5 -8
  67. package/index.js +491 -728
  68. package/index.umd.cjs +491 -728
  69. package/insertGapsIntoRefSeq.d.ts +1 -2
  70. package/insertSequenceDataAtPositionOrRange.d.ts +1 -10
  71. package/isEnzymeType2S.d.ts +1 -2
  72. package/mapAnnotationsToRows.d.ts +1 -9
  73. package/package.json +9 -12
  74. package/prepareCircularViewData.d.ts +1 -2
  75. package/prepareRowData.d.ts +3 -7
  76. package/proteinAlphabet.d.ts +1 -1
  77. package/rotateBpsToPosition.d.ts +1 -1
  78. package/rotateSequenceDataToPosition.d.ts +1 -3
  79. package/shiftAnnotationsByLen.d.ts +3 -4
  80. package/src/autoAnnotate.test.js +1 -0
  81. package/src/getSequenceDataBetweenRange.js +11 -2
  82. package/src/getSequenceDataBetweenRange.test.js +42 -0
  83. package/src/prepareRowData_output1.json +0 -1
  84. package/threeLetterSequenceStringToAminoAcidMap.d.ts +921 -11
  85. package/tidyUpAnnotation.d.ts +11 -13
  86. package/tidyUpSequenceData.d.ts +1 -15
  87. package/src/DNAComplementMap.ts +0 -32
  88. package/src/addGapsToSeqReads.ts +0 -436
  89. package/src/adjustAnnotationsToInsert.ts +0 -20
  90. package/src/adjustBpsToReplaceOrInsert.ts +0 -73
  91. package/src/aliasedEnzymesByName.ts +0 -7366
  92. package/src/aminoAcidToDegenerateDnaMap.ts +0 -32
  93. package/src/aminoAcidToDegenerateRnaMap.ts +0 -32
  94. package/src/annotateSingleSeq.ts +0 -37
  95. package/src/annotationTypes.ts +0 -23
  96. package/src/autoAnnotate.ts +0 -290
  97. package/src/bioData.ts +0 -65
  98. package/src/calculateEndStability.ts +0 -91
  99. package/src/calculateNebTa.ts +0 -46
  100. package/src/calculateNebTm.ts +0 -132
  101. package/src/calculatePercentGC.ts +0 -3
  102. package/src/calculateSantaLuciaTm.ts +0 -184
  103. package/src/calculateTm.ts +0 -242
  104. package/src/computeDigestFragments.ts +0 -238
  105. package/src/condensePairwiseAlignmentDifferences.ts +0 -85
  106. package/src/convertAACaretPositionOrRangeToDna.ts +0 -28
  107. package/src/convertDnaCaretPositionOrRangeToAA.ts +0 -28
  108. package/src/cutSequenceByRestrictionEnzyme.ts +0 -345
  109. package/src/defaultEnzymesByName.ts +0 -280
  110. package/src/degenerateDnaToAminoAcidMap.ts +0 -5
  111. package/src/degenerateRnaToAminoAcidMap.ts +0 -5
  112. package/src/deleteSequenceDataAtRange.ts +0 -13
  113. package/src/diffUtils.ts +0 -80
  114. package/src/doesEnzymeChopOutsideOfRecognitionSite.ts +0 -16
  115. package/src/featureTypesAndColors.ts +0 -167
  116. package/src/filterSequenceString.ts +0 -153
  117. package/src/findApproxMatches.ts +0 -58
  118. package/src/findNearestRangeOfSequenceOverlapToPosition.ts +0 -43
  119. package/src/findOrfsInPlasmid.ts +0 -31
  120. package/src/findSequenceMatches.ts +0 -154
  121. package/src/generateAnnotations.ts +0 -39
  122. package/src/generateSequenceData.ts +0 -212
  123. package/src/getAllInsertionsInSeqReads.ts +0 -100
  124. package/src/getAminoAcidDataForEachBaseOfDna.ts +0 -305
  125. package/src/getAminoAcidFromSequenceTriplet.ts +0 -27
  126. package/src/getAminoAcidStringFromSequenceString.ts +0 -36
  127. package/src/getCodonRangeForAASliver.ts +0 -73
  128. package/src/getComplementAminoAcidStringFromSequenceString.ts +0 -10
  129. package/src/getComplementSequenceAndAnnotations.ts +0 -25
  130. package/src/getComplementSequenceString.ts +0 -23
  131. package/src/getCutsiteType.ts +0 -18
  132. package/src/getCutsitesFromSequence.ts +0 -22
  133. package/src/getDegenerateDnaStringFromAAString.ts +0 -15
  134. package/src/getDegenerateRnaStringFromAAString.ts +0 -15
  135. package/src/getDigestFragmentsForCutsites.ts +0 -126
  136. package/src/getDigestFragmentsForRestrictionEnzymes.ts +0 -50
  137. package/src/getInsertBetweenVals.ts +0 -31
  138. package/src/getLeftAndRightOfSequenceInRangeGivenPosition.ts +0 -40
  139. package/src/getMassOfAaString.ts +0 -29
  140. package/src/getOrfsFromSequence.ts +0 -132
  141. package/src/getOverlapBetweenTwoSequences.ts +0 -30
  142. package/src/getPossiblePartsFromSequenceAndEnzymes.ts +0 -149
  143. package/src/getReverseAminoAcidStringFromSequenceString.ts +0 -22
  144. package/src/getReverseComplementAminoAcidStringFromSequenceString.ts +0 -10
  145. package/src/getReverseComplementAnnotation.ts +0 -33
  146. package/src/getReverseComplementSequenceAndAnnotations.ts +0 -46
  147. package/src/getReverseComplementSequenceString.ts +0 -18
  148. package/src/getReverseSequenceString.ts +0 -12
  149. package/src/getSequenceDataBetweenRange.ts +0 -154
  150. package/src/getVirtualDigest.ts +0 -139
  151. package/src/guessIfSequenceIsDnaAndNotProtein.ts +0 -39
  152. package/src/index.test.ts +0 -43
  153. package/src/index.ts +0 -111
  154. package/src/insertGapsIntoRefSeq.ts +0 -43
  155. package/src/insertSequenceDataAtPosition.ts +0 -2
  156. package/src/insertSequenceDataAtPositionOrRange.ts +0 -328
  157. package/src/isEnzymeType2S.ts +0 -5
  158. package/src/mapAnnotationsToRows.ts +0 -256
  159. package/src/prepareCircularViewData.ts +0 -24
  160. package/src/prepareRowData.ts +0 -61
  161. package/src/proteinAlphabet.ts +0 -271
  162. package/src/rotateBpsToPosition.ts +0 -12
  163. package/src/rotateSequenceDataToPosition.ts +0 -54
  164. package/src/shiftAnnotationsByLen.ts +0 -24
  165. package/src/threeLetterSequenceStringToAminoAcidMap.ts +0 -198
  166. package/src/tidyUpAnnotation.ts +0 -205
  167. package/src/tidyUpSequenceData.ts +0 -213
  168. package/src/types.ts +0 -109
  169. package/types.d.ts +0 -105
@@ -1,3 +1,4 @@
1
+ export default DNAComplementMap;
1
2
  declare const DNAComplementMap: {
2
3
  ".": string;
3
4
  a: string;
@@ -27,4 +28,3 @@ declare const DNAComplementMap: {
27
28
  b: string;
28
29
  B: string;
29
30
  };
30
- export default DNAComplementMap;
@@ -1,17 +1,4 @@
1
- interface SeqRead {
2
- name: string;
3
- seq: string;
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
- import { Annotation } from './types';
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
- import { Range } from '../../range-utils/src/index.ts';
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;
@@ -1,8 +1,7 @@
1
- import { SequenceData } from './types';
1
+ export default annotateSingleSeq;
2
2
  declare function annotateSingleSeq({ fullSeq, searchSeq }: {
3
- fullSeq: SequenceData;
4
- searchSeq: SequenceData;
3
+ fullSeq: any;
4
+ searchSeq: any;
5
5
  }): {
6
- matches: import('./types').Annotation[] | Record<string, string[]>;
6
+ matches: any;
7
7
  };
8
- export default annotateSingleSeq;
@@ -1,2 +1,2 @@
1
- export declare const annotationTypes: string[];
2
- export declare const modifiableTypes: string[];
1
+ export const annotationTypes: string[];
2
+ export const modifiableTypes: string[];
package/autoAnnotate.d.ts CHANGED
@@ -1,17 +1,8 @@
1
- import { Annotation } from './types';
2
- declare function autoAnnotate({ seqsToAnnotateById, annotationsToCheckById, compareName, warnIfMoreThan }: {
3
- seqsToAnnotateById: Record<string, {
4
- sequence: string;
5
- annotations: Annotation[];
6
- circular?: boolean;
7
- }>;
8
- annotationsToCheckById: Record<string, {
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 declare const protein_letters = "ACDEFGHIKLMNPQRSTVWY";
2
- export declare const protein_letters_withUandX = "ACDEFGHIKLMNPQRSTVWYUX";
3
- export declare const extended_protein_letters = "ACDEFGHIKLMNPQRSTVWYBXZJUO*";
4
- export declare const ambiguous_dna_letters = "GATCRYWSMKHBVDN";
5
- export declare const unambiguous_dna_letters = "GATC";
6
- export declare const ambiguous_rna_letters = "GAUCRYWSMKHBVDN";
7
- export declare const unambiguous_rna_letters = "GAUC";
8
- export declare const extended_dna_letters = "GATCBDSW";
9
- export declare const ambiguous_dna_values: Record<string, string>;
10
- export declare const extended_protein_values: Record<string, string>;
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 | string;
16
+ export default function calculateEndStability(sequence: string): number;
@@ -1,6 +1 @@
1
- interface NebTaOptions {
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;
@@ -1,6 +1,4 @@
1
- interface NebTmOptions {
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;
@@ -1 +1 @@
1
- export default function calculatePercentGC(bps: string): number;
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 declare function isValidSequence(sequence: string): boolean;
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 | string;
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
- import { CutSite, DigestFragment, RestrictionEnzyme } from './types';
2
- export interface ComputeDigestFragmentsParams {
3
- cutsites: CutSite[];
4
- sequenceLength: number;
5
- circular: boolean;
6
- includeOverAndUnderHangs?: boolean;
7
- computePartialDigest?: boolean;
8
- computeDigestDisabled?: boolean;
9
- computePartialDigestDisabled?: boolean;
10
- selectionLayerUpdate?: (params: {
11
- start: number;
12
- end: number;
13
- name: string;
14
- }) => void;
15
- updateSelectedFragment?: (id: string) => void;
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 declare function getDigestFragsForSeqAndEnzymes({ sequence, circular, enzymes, includeOverAndUnderHangs }: {
24
- sequence: string;
25
- circular: boolean;
26
- enzymes: RestrictionEnzyme[];
27
- includeOverAndUnderHangs?: boolean;
17
+ export function getDigestFragsForSeqAndEnzymes({ sequence, circular, enzymes, includeOverAndUnderHangs }: {
18
+ sequence: any;
19
+ circular: any;
20
+ enzymes: any;
21
+ includeOverAndUnderHangs: any;
28
22
  }): {
29
- computePartialDigestDisabled: boolean | undefined;
30
- computeDigestDisabled: boolean | undefined;
31
- fragments: DigestFragment[];
32
- overlappingEnzymes: DigestFragment[];
23
+ computePartialDigestDisabled: any;
24
+ computeDigestDisabled: any;
25
+ fragments: any[];
26
+ overlappingEnzymes: any[];
33
27
  };
@@ -1 +1 @@
1
- export default function condensePairwiseAlignmentDifferences(referenceSeq: string, alignedSeq: string): string;
1
+ export default function condensePairwiseAlignmentDifferences(referenceSeq: any, alignedSeq: any): string;
@@ -1,2 +1 @@
1
- import { Range } from './types';
2
- export default function convertAACaretPositionOrRangeToDna(rangeOrCaret: Range | number): Range | number;
1
+ export default function convertAACaretPositionOrRangeToDna(rangeOrCaret: any): any;
@@ -1,2 +1 @@
1
- import { Range } from './types';
2
- export default function convertDnaCaretPositionOrRangeToAA(rangeOrCaret: Range | number): Range | number;
1
+ export default function convertDnaCaretPositionOrRangeToAA(rangeOrCaret: any): any;
@@ -1,2 +1 @@
1
- import { CutSite, RestrictionEnzyme } from './types';
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,3 +1,2 @@
1
- import { RestrictionEnzyme } from './types';
2
- declare const defaultEnzymesByName: Record<string, RestrictionEnzyme>;
3
1
  export default defaultEnzymesByName;
2
+ declare const defaultEnzymesByName: {};
@@ -1,2 +1,2 @@
1
- declare const degenerateDnaToAminoAcidMap: import('lodash').Dictionary<string>;
2
1
  export default degenerateDnaToAminoAcidMap;
2
+ declare const degenerateDnaToAminoAcidMap: import('lodash').Dictionary<string>;
@@ -1,2 +1,2 @@
1
- declare const degenerateRnaToAminoAcidMap: import('lodash').Dictionary<string>;
2
1
  export default degenerateRnaToAminoAcidMap;
2
+ declare const degenerateRnaToAminoAcidMap: import('lodash').Dictionary<string>;
@@ -1,2 +1 @@
1
- import { SequenceData, Range } from './types';
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
- import { Delta } from 'jsondiffpatch';
2
- import { SequenceData } from './types';
3
- interface DiffOptions {
4
- ignoreKeys?: string[];
5
- }
6
- declare const getDiffFromSeqs: (oldData: SequenceData, newData: SequenceData, { ignoreKeys }?: DiffOptions) => Delta | undefined;
7
- declare const patchSeqWithDiff: (oldData: SequenceData, diffData: Delta, { ignoreKeys }?: DiffOptions) => SequenceData;
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
- import { RestrictionEnzyme } from './types';
2
- export default function doesEnzymeChopOutsideOfRecognitionSite(enzyme: RestrictionEnzyme): boolean;
1
+ export default function doesEnzymeChopOutsideOfRecognitionSite(enzyme: any): boolean;
@@ -1,21 +1,8 @@
1
- interface FeatureType {
1
+ export function getGenbankFeatureToColorMap(): {};
2
+ export const genbankFeatureTypes: {
2
3
  name: string;
3
4
  color: string;
4
- isHidden?: boolean;
5
- isGenbankStandardType?: boolean;
6
- isOverridden?: boolean;
7
- isCustomType?: boolean;
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
- interface FilterSequenceStringOptions {
2
- additionalValidChars?: string;
3
- isOligo?: boolean;
4
- name?: string;
5
- isProtein?: boolean;
6
- isRna?: boolean;
7
- isMixedRnaAndDna?: boolean;
8
- [key: string]: unknown;
9
- }
10
- export default function filterSequenceString(sequenceString?: string, { additionalValidChars, isOligo, name, isProtein, isRna, isMixedRnaAndDna }?: FilterSequenceStringOptions): [string, string[]];
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[];
@@ -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 interface ApproxMatch {
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;