@rnacanvas/search 3.0.0 → 3.0.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.
package/README.md CHANGED
@@ -120,17 +120,17 @@ N.matches('.'); // false
120
120
  N.matches('-'); // false
121
121
  ```
122
122
 
123
- Throws for empty strings and strings containing more than one character.
123
+ Returns `false` for empty strings and strings containing more than one character.
124
124
 
125
125
  ```javascript
126
126
  var A = new SequenceCharacter('A');
127
127
 
128
128
  // empty string
129
- A.matches(''); // throws
129
+ A.matches(''); // false
130
130
 
131
131
  // strings containing more than one character
132
- A.matches('AG'); // throws
133
- A.matches('asdf'); // throws
132
+ A.matches('AG'); // false
133
+ A.matches('asdf'); // false
134
134
  ```
135
135
 
136
136
  ### `complements()`
@@ -187,17 +187,18 @@ Note that the special IUPAC codes
187
187
  `S`, `W`, `K`, `M`, `B`, `D`, `H` and `V`
188
188
  have no complements.
189
189
 
190
- This method throws for empty strings and strings containing more than one character.
190
+ This method returns `false` for empty strings
191
+ and strings containing more than one character.
191
192
 
192
193
  ```javascript
193
194
  var A = new SequenceCharacter('A');
194
195
 
195
196
  // empty string
196
- A.complements(''); // throws
197
+ A.complements(''); // false
197
198
 
198
199
  // strings containing more than one character
199
- A.complements('AG'); // throws
200
- A.complements('asdf'); // throws
200
+ A.complements('AG'); // false
201
+ A.complements('asdf'); // false
201
202
  ```
202
203
 
203
204
  ## `function isWobblePair()`
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A cell in an alignment matrix.
3
+ */
4
+ export declare class AlignmentCell {
5
+ readonly score: number;
6
+ /**
7
+ * The change in I index to get to this cell (from the previous cell).
8
+ */
9
+ readonly deltaI: number;
10
+ /**
11
+ * The change in J index to get to this cell (from the previous cell).
12
+ */
13
+ readonly deltaJ: number;
14
+ constructor(score: number, deltaI: number, deltaJ: number);
15
+ }
16
+ //# sourceMappingURL=AlignmentCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlignmentCell.d.ts","sourceRoot":"","sources":["../src/AlignmentCell.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,aAAa;IACxB,QAAQ,CAAC,KAAK,SAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,MAAM,SAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,MAAM,SAAC;gBAEJ,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAM1D"}
@@ -0,0 +1,7 @@
1
+ import { AlignmentCell } from './AlignmentCell';
2
+ export declare class AlignmentMatrix {
3
+ #private;
4
+ get(i: number, j: number): AlignmentCell | never;
5
+ set(i: number, j: number, cell: AlignmentCell): void;
6
+ }
7
+ //# sourceMappingURL=AlignmentMatrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AlignmentMatrix.d.ts","sourceRoot":"","sources":["../src/AlignmentMatrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,eAAe;;IAG1B,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,KAAK;IAsBhD,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,IAAI;CAarD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnacanvas/search",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Find motifs and complements",
5
5
  "repository": {
6
6
  "type": "git",