Skip to content

Add a method to expose whether the stream is positioned at the end of a BGZF block. - #522

Merged
akiezun merged 1 commit into
samtools:masterfrom
tomwhite:expose-end-of-block-for-bgzf
Mar 14, 2016
Merged

Add a method to expose whether the stream is positioned at the end of a BGZF block.#522
akiezun merged 1 commit into
samtools:masterfrom
tomwhite:expose-end-of-block-for-bgzf

Conversation

@tomwhite

Copy link
Copy Markdown
Contributor

Description

Add a method to BlockCompressedInputStream to expose whether the stream is positioned at the end of a BGZF block. This is needed by Hadoop-BAM (and GATK4 indirectly via its dependency on Hadoop-BAM) to add support for reading block compressed VCF files in parallel. See HadoopGenomics/Hadoop-BAM#68 and HadoopGenomics/Hadoop-BAM#70. /cc @akiezun

Checklist

  • Code compiles correctly
  • New tests covering changes and new functionality
  • All tests passing
  • Extended the README / documentation, if necessary

@akiezun

akiezun commented Mar 11, 2016

Copy link
Copy Markdown
Contributor

👍 from me but I'd 👍 it even more if there was a test (this class has actually no tests so adding even 1 would be huge)

@tomwhite
tomwhite force-pushed the expose-end-of-block-for-bgzf branch from 60f60d6 to e595f61 Compare March 11, 2016 15:10
@tomwhite

Copy link
Copy Markdown
Contributor Author

Thanks @akiezun. I've added a test for this now.

@akiezun

akiezun commented Mar 11, 2016

Copy link
Copy Markdown
Contributor

LGTM - if there are no objections, I'll merge in 1 day

@akiezun akiezun self-assigned this Mar 11, 2016
akiezun added a commit that referenced this pull request Mar 14, 2016
Add a method to expose whether the stream is positioned at the end of a BGZF block.
@akiezun
akiezun merged commit 4ea1aba into samtools:master Mar 14, 2016
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

Successfully merging this pull request may close these issues.

2 participants