Add BGZF streaming I/O support#10
Open
tfenne wants to merge 1 commit into
Open
Conversation
Add BgzfOutputStream and BgzfInputStream for streaming BGZF (Blocked GNU Zip Format) compression and decompression using libdeflate. BGZF is the de facto standard compression format for high-throughput sequencing data (BAM, VCF, etc.). Each block is an independent gzip member at most 64KB, which fits libdeflate's whole-buffer model. New classes in com.fulcrumgenomics.jlibdeflate.stream: - Bgzf: constants, virtual offset utilities, format detection, and stream factory (newGzipInputStream with closure-based fallback) - BgzfOutputStream: synchronous writer with bgzfPosition() tracking - BgzfInputStream: synchronous reader with bgzfPosition() tracking Also refactors LibdeflateBenchmark to use shared Bgzf constants and adds a BGZF Streaming I/O section to the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add BgzfOutputStream and BgzfInputStream for streaming BGZF (Blocked GNU Zip Format) compression and decompression using libdeflate.
BGZF is the de facto standard compression format for high-throughput sequencing data (BAM, VCF, etc.). Each block is an independent gzip member at most 64KB, which fits libdeflate's whole-buffer model.
New classes in com.fulcrumgenomics.jlibdeflate.stream:
Also refactors LibdeflateBenchmark to use shared Bgzf constants and adds a BGZF Streaming I/O section to the README.