TribbleIndexedFeatureReader cannot read header from .bgz files #653

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

Comments

Projects
None yet
3 participants
Contributor

tomwhite commented Jun 29, 2016

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.

Contributor

magicDGS commented Jul 27, 2016

This could be close, couldn't it?

cmnbroad self-assigned this Jul 27, 2016

Contributor

cmnbroad commented Jul 27, 2016 edited

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

Contributor

magicDGS commented Jul 27, 2016

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

magicDGS referenced this issue Jul 27, 2016

Merged

Fix #653 #672

yfarjoun closed this in c8202f2 Aug 10, 2016

@jamesemery jamesemery added a commit to jamesemery/htsjdk that referenced this issue Sep 1, 2016

@magicDGS @jamesemery magicDGS + jamesemery Fix #653 (#672)
* 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
ffd8427
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment