Skip to content

Commit

Permalink
Handle .bgz file extension for text-index
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 9, 2022
1 parent b43ed81 commit b0fa76e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion products/jbrowse-cli/src/types/gff3Adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export async function* indexGff3(
})

const rl = readline.createInterface({
input: uri.endsWith('.gz')
input: uri.endsWith('.b?gz')
? fileDataStream.pipe(createGunzip())
: fileDataStream,
})
Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-cli/src/types/gtfAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function* indexGtf(
progressBar.update(receivedBytes)
})

const gzStream = uri.endsWith('.gz')
const gzStream = uri.endsWith('.b?gz')
? fileDataStream.pipe(createGunzip())
: fileDataStream

Expand Down
2 changes: 1 addition & 1 deletion products/jbrowse-cli/src/types/vcfAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function* indexVcf(
progressBar.update(receivedBytes)
})

const gzStream = uri.endsWith('.gz')
const gzStream = uri.endsWith('.b?gz')
? fileDataStream.pipe(createGunzip())
: fileDataStream

Expand Down

0 comments on commit b0fa76e

Please sign in to comment.