@rnacanvas/search 1.4.0 → 1.5.0

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/README.md CHANGED
@@ -45,6 +45,18 @@ var CUGCCA = new Motif('CUGCCA');
45
45
  CUGCCA.toString(); // "CUGCCA"
46
46
  ```
47
47
 
48
+ ## `function removeGapCharacters()`
49
+
50
+ Returns a new string with all periods and dashes having been removed from the input string.
51
+
52
+ Removing gap characters can make searching for motifs and complements a simpler task.
53
+
54
+ ```javascript
55
+ removeGapCharacters('.A-GU..C--'); // "AGUC"
56
+
57
+ removeGapCharacters('---...'); // ""
58
+ ```
59
+
48
60
  ## `class SequenceCharacter`
49
61
 
50
62
  Represents a character in a sequence.
@@ -0,0 +1,8 @@
1
+ import type { SequenceCharacter } from './SequenceCharacter';
2
+ /**
3
+ * Returns true if the two characters form a G:U or G:T pair.
4
+ *
5
+ * Returns false for empty strings and strings containing more than one character.
6
+ */
7
+ export declare function isWobblePair(c1: SequenceCharacter | string, c2: SequenceCharacter | string): boolean;
8
+ //# sourceMappingURL=isWobblePair.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isWobblePair.d.ts","sourceRoot":"","sources":["../src/isWobblePair.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,iBAAiB,GAAG,MAAM,EAAE,EAAE,EAAE,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAiBpG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnacanvas/search",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Find motifs and complements",
5
5
  "repository": {
6
6
  "type": "git",