gensplore 0.0.8 → 0.0.9
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 +2 -0
- package/dist/gensplore.cjs +9 -9
- package/dist/gensplore.js +418 -407
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
|
|
3
|
+
interface AlignedSequence {
|
|
4
|
+
name: string;
|
|
5
|
+
/** One IUPAC base or deletion gap (-) per reference base. Insertions are separate. */
|
|
6
|
+
sequence: string;
|
|
7
|
+
/** Position is the number of reference bases before the insertion: 0 is before the first base. */
|
|
8
|
+
insertions?: Array<{ position: number; sequence: string }>;
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
interface GensploreProps {
|
|
4
12
|
/** GenBank file contents, including the reference sequence and annotations. */
|
|
5
13
|
genbankString: string;
|
|
6
14
|
/** Optional URL of one ungapped alternative FASTA record. Requires CORS access. */
|
|
7
15
|
fastaUrl?: string;
|
|
16
|
+
/** Pre-aligned input; takes precedence over FASTA input and preserves supplied gap placement. */
|
|
17
|
+
alignedSequence?: AlignedSequence;
|
|
8
18
|
/** Controlled search value. Omit to let the viewer manage its own search. */
|
|
9
19
|
searchInput?: string | null;
|
|
10
20
|
/** Called when the search changes; null clears the search. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
|
|
3
|
+
export interface AlignedSequence {
|
|
4
|
+
name: string;
|
|
5
|
+
/** One IUPAC base or deletion gap (-) per reference base. Insertions are separate. */
|
|
6
|
+
sequence: string;
|
|
7
|
+
/** Position is the number of reference bases before the insertion: 0 is before the first base. */
|
|
8
|
+
insertions?: Array<{ position: number; sequence: string }>;
|
|
9
|
+
}
|
|
10
|
+
|
|
3
11
|
export interface GensploreProps {
|
|
4
12
|
/** GenBank file contents, including the reference sequence and annotations. */
|
|
5
13
|
genbankString: string;
|
|
6
14
|
/** Optional URL of one ungapped alternative FASTA record. Requires CORS access. */
|
|
7
15
|
fastaUrl?: string;
|
|
16
|
+
/** Pre-aligned input; takes precedence over FASTA input and preserves supplied gap placement. */
|
|
17
|
+
alignedSequence?: AlignedSequence;
|
|
8
18
|
/** Controlled search value. Omit to let the viewer manage its own search. */
|
|
9
19
|
searchInput?: string | null;
|
|
10
20
|
/** Called when the search changes; null clears the search. */
|