You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns **any**for an array of string sequence names that are found in the file
67
+
Returns **Promise\<string[]>** array of sequence names in the file
69
68
70
69
#### getSequenceSizes
71
70
72
-
Returns **any** object listing the lengths of all sequences like `{seqName:
73
-
length, ...}`.note: this is a relatively slow operation especially if there are many
74
-
refseqs in the file, if you can get this information from a different file
75
-
e.g. a chrom.sizes file, it will be much faster
71
+
Returns **Promise\<Record\<string, number>>** object listing the lengths of all sequences like `{seqName: length, ...}`.
72
+
73
+
Note: this is a relatively slow operation especially if there are many refseqs in the file. If you can get this information from a different file e.g. a chrom.sizes file, it will be much faster.
76
74
77
75
#### getSequenceSize
78
76
79
77
##### Parameters
80
78
81
79
-`seqName`**[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the sequence
82
80
83
-
Returns **any** sequence length, or undefined if it is not in the file
81
+
Returns **Promise\<number | undefined>** sequence length, or undefined if not in the file
84
82
85
83
#### getSequence
86
84
@@ -92,7 +90,7 @@ Returns **any** sequence length, or undefined if it is not in the file
92
90
-`regionEnd` optional 0-based half-open end of the sequence region
93
91
to fetch. defaults to end of the sequence (optional, default `Number.POSITIVE_INFINITY`)
94
92
95
-
Returns **any**for a string of sequence bases
93
+
Returns **Promise\<string | undefined>** string of sequence bases, or undefined if sequence not found
0 commit comments