@teselagen/sequence-utils 0.3.30 → 0.3.32-beta.1

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 (40) hide show
  1. package/calculateNebTa.d.ts +1 -4
  2. package/calculateTm.d.ts +1 -7
  3. package/diffUtils.d.ts +2 -2
  4. package/featureTypesAndColors.d.ts +2 -6
  5. package/filterSequenceString.d.ts +2 -17
  6. package/findApproxMatches.d.ts +10 -0
  7. package/findApproxMatches.test.d.ts +1 -0
  8. package/generateSequenceData.d.ts +0 -5
  9. package/getAminoAcidStringFromSequenceString.d.ts +1 -3
  10. package/index.cjs +4013 -3929
  11. package/index.d.ts +1 -0
  12. package/index.js +4013 -3929
  13. package/index.umd.cjs +4013 -3929
  14. package/mapAnnotationsToRows.d.ts +1 -3
  15. package/package.json +1 -1
  16. package/src/adjustBpsToReplaceOrInsert.test.js +1 -1
  17. package/src/cutSequenceByRestrictionEnzyme.test.js +1 -1
  18. package/src/deleteSequenceDataAtRange.test.js +1 -1
  19. package/src/diffUtils.test.js +1 -1
  20. package/src/doesEnzymeChopOutsideOfRecognitionSite.test.js +1 -1
  21. package/src/filterSequenceString.test.js +0 -1
  22. package/src/findApproxMatches.js +50 -0
  23. package/src/findApproxMatches.test.js +126 -0
  24. package/src/generateSequenceData.test.js +1 -1
  25. package/src/getDigestFragmentsForRestrictionEnzymes.test.js +1 -1
  26. package/src/getLeftAndRightOfSequenceInRangeGivenPosition.test.js +1 -1
  27. package/src/getPossiblePartsFromSequenceAndEnzymes.test.js +1 -1
  28. package/src/getReverseComplementAnnotation.test.js +1 -1
  29. package/src/getReverseComplementSequenceAndAnnotations.test.js +1 -1
  30. package/src/getReverseComplementSequenceString.test.js +1 -1
  31. package/src/getReverseSequenceString.test.js +1 -1
  32. package/src/getSequenceDataBetweenRange.test.js +1 -1
  33. package/src/getVirtualDigest.test.js +1 -1
  34. package/src/guessIfSequenceIsDnaAndNotProtein.test.js +1 -1
  35. package/src/index.js +1 -0
  36. package/src/insertSequenceDataAtPosition.test.js +1 -1
  37. package/src/insertSequenceDataAtPositionOrRange.test.js +1 -1
  38. package/src/mapAnnotationsToRows.test.js +1 -1
  39. package/src/tidyUpSequenceData.test.js +1 -1
  40. package/tidyUpAnnotation.d.ts +1 -1
@@ -1,4 +1 @@
1
- export default function calculateNebTa(sequences: any, primerConc: any, { monovalentCationConc, polymerase }?: {
2
- monovalentCationConc: any;
3
- polymerase: any;
4
- }): any;
1
+ export default function calculateNebTa(sequences: any, primerConc: any, { monovalentCationConc, polymerase }?: {}): any;
package/calculateTm.d.ts CHANGED
@@ -1,8 +1,2 @@
1
- declare function _default(_sequence: any, { type, A, R, primerConc, monovalentCationConc }?: {
2
- type: any;
3
- A: any;
4
- R: any;
5
- primerConc: any;
6
- monovalentCationConc: any;
7
- }): number;
1
+ declare function _default(_sequence: any, { type, A, R, primerConc, monovalentCationConc }?: {}): number;
8
2
  export default _default;
package/diffUtils.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export function getDiffFromSeqs(oldData: any, newData: any, { ignoreKeys }?: {
2
- ignoreKeys?: any[] | undefined;
2
+ ignoreKeys?: never[] | undefined;
3
3
  }): any;
4
4
  export function patchSeqWithDiff(oldData: any, diff: any, { ignoreKeys }?: {
5
- ignoreKeys?: any[] | undefined;
5
+ ignoreKeys?: never[] | undefined;
6
6
  }): any;
7
7
  export function reverseSeqDiff(diff: any): any;
@@ -3,10 +3,6 @@ export const genbankFeatureTypes: {
3
3
  name: string;
4
4
  color: string;
5
5
  }[];
6
- export function getFeatureToColorMap({ includeHidden }?: {
7
- includeHidden: any;
8
- }): {};
9
- export function getFeatureTypes({ includeHidden }?: {
10
- includeHidden: any;
11
- }): any[];
6
+ export function getFeatureToColorMap({ includeHidden }?: {}): {};
7
+ export function getFeatureTypes({ includeHidden }?: {}): any[];
12
8
  export function getMergedFeatureMap(): any;
@@ -1,23 +1,8 @@
1
1
  export default function filterSequenceString(sequenceString?: string, { additionalValidChars, isOligo, name, isProtein, isRna, isMixedRnaAndDna }?: {
2
2
  additionalValidChars?: string | undefined;
3
- isOligo: any;
4
- name: any;
5
- isProtein: any;
6
- isRna: any;
7
- isMixedRnaAndDna: any;
8
3
  }): (string | string[])[];
9
- export function getAcceptedChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: {
10
- isOligo: any;
11
- isProtein: any;
12
- isRna: any;
13
- isMixedRnaAndDna: any;
14
- }): string;
15
- export function getReplaceChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: {
16
- isOligo: any;
17
- isProtein: any;
18
- isRna: any;
19
- isMixedRnaAndDna: any;
20
- }): {
4
+ export function getAcceptedChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: {}): string;
5
+ export function getReplaceChars({ isOligo, isProtein, isRna, isMixedRnaAndDna }?: {}): {
21
6
  t?: undefined;
22
7
  } | {
23
8
  t: string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Find approximate matches of a search sequence within a target sequence
3
+ *
4
+ * @param {string} searchSeq - The sequence to search for
5
+ * @param {string} targetSeq - The sequence to search within
6
+ * @param {number} maxMismatches - Maximum number of mismatches allowed
7
+ * @param {boolean} circular - Whether to treat the target sequence as circular (default: false)
8
+ * @returns {Array} - Array of objects containing { index, match, mismatchPositions }
9
+ */
10
+ export default function findApproxMatches(searchSeq: string, targetSeq: string, maxMismatches: number, circular?: boolean): any[];
@@ -0,0 +1 @@
1
+ export {};
@@ -1,10 +1,5 @@
1
1
  export default function generateSequenceData({ isProtein, sequenceLength, numFeatures, numParts, numPrimers, numTranslations }?: {
2
- isProtein: any;
3
2
  sequenceLength?: number | undefined;
4
- numFeatures: any;
5
- numParts: any;
6
- numPrimers: any;
7
- numTranslations: any;
8
3
  }): {
9
4
  circular: boolean;
10
5
  name: string;
@@ -1,3 +1 @@
1
- export default function getAminoAcidStringFromSequenceString(sequenceString: any, { doNotExcludeAsterisk }?: {
2
- doNotExcludeAsterisk: any;
3
- }): string;
1
+ export default function getAminoAcidStringFromSequenceString(sequenceString: any, { doNotExcludeAsterisk }?: {}): string;