@@ -36,8 +36,8 @@ path+'.tbi' is the location of the tbiPath.
3636// basic usage under node.js provides a file path on the filesystem to bgzipped file
3737// it assumes the tbi file is path+'.tbi' if no tbiPath is supplied
3838const tbiIndexed = new TabixIndexedFile ({
39- path: ' path/to/my/file.gz' ,
40- tbiPath: ' path/to/my/file.gz.tbi' ,
39+ path: ' path/to/my/file.gz' ,
40+ tbiPath: ' path/to/my/file.gz.tbi' ,
4141})
4242```
4343
@@ -85,9 +85,14 @@ are supplied to the tabix command line tool
8585``` typescript
8686// iterate over lines in the specified region
8787const lines = []
88- await tbiIndexed .getLines (' ctgA' , 200 , 300 , function (line , fileOffset , start , end ) {
89- lines .push (line )
90- })
88+ await tbiIndexed .getLines (
89+ ' ctgA' ,
90+ 200 ,
91+ 300 ,
92+ function (line , fileOffset , start , end ) {
93+ lines .push (line )
94+ },
95+ )
9196```
9297
9398After running this, your ` lines ` array would contain an array of lines from the
@@ -120,7 +125,7 @@ Notes about the returned values of `getLines`:
120125
121126``` typescript
122127const lines = []
123- await tbiIndexed .getLines (' ctgA' , 0 , undefined , line => lines .push (line ))
128+ await tbiIndexed .getLines (' ctgA' , 0 , undefined , line => lines .push (line ))
124129console .log (lines )
125130```
126131
0 commit comments