Skip to content

Commit 196b957

Browse files
committed
format
1 parent becc087 commit 196b957

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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
3838
const 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
8787
const 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

9398
After 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
122127
const lines = []
123-
await tbiIndexed.getLines('ctgA', 0, undefined, line=>lines.push(line))
128+
await tbiIndexed.getLines('ctgA', 0, undefined, line => lines.push(line))
124129
console.log(lines)
125130
```
126131

0 commit comments

Comments
 (0)