Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TribbleIndexedFeatureReader cannot read header from .bgz files #653

Closed
tomwhite opened this issue Jun 29, 2016 · 3 comments
Closed

TribbleIndexedFeatureReader cannot read header from .bgz files #653

tomwhite opened this issue Jun 29, 2016 · 3 comments
Assignees

Comments

@tomwhite
Copy link
Contributor

TribbleIndexedFeatureReader.isGZIPPath only recognizes paths ending in .gz, so block gzip-compressed files are not picked up.

The fix is to check for any of the extensions defined in AbstractFeatureReader.BLOCK_COMPRESSED_EXTENSIONS rather than just .gz.

@magicDGS
Copy link
Member

This could be close, couldn't it?

@cmnbroad cmnbroad self-assigned this Jul 27, 2016
@cmnbroad
Copy link
Collaborator

cmnbroad commented Jul 27, 2016

@magicDGS The change @tomwhite made was for Hadoop-BAM. This still needs to be fixed in htsjdk.

@magicDGS
Copy link
Member

I can take this ticket, because it is easy to fix. So thanks for the answer, @cmnbroad!

@magicDGS magicDGS mentioned this issue Jul 27, 2016
jamesemery pushed a commit to jamesemery/htsjdk that referenced this issue Sep 1, 2016
* added checking for AbstractFeatureReader.BLOCK_COMPRESSED_EXTENSIONS in TribbleIndexedFeatureReader

* fixing WFIterator checking of compressed file

* isGZIPPath deprecation

* added test for new functionality

* fixing URL encoding

* added no-remote test file with spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants