#genomic #bioinformatics #block-header


Utility library for working with explicitly BGZF compressed data

1 unstable release

0.2.0 Mar 4, 2022

#279 in Biology

Download history 7/week @ 2024-02-10 9/week @ 2024-02-17 24/week @ 2024-02-24 23/week @ 2024-03-02 18/week @ 2024-03-09 4/week @ 2024-03-16

71 downloads per month
Used in pooled-writer

MIT license

484 lines


Build Status license Version info

This library provides both high level readers and writers for the BGZF format as well as lower level compressor and decompressor functions.

Bgzf is a multi-gzip format that adds an extra field to the header indicating how large the complete block (with header and footer) is.

Documentation and Examples

Please see the generated Rust Docs.

How to use in your project

Add the following to your Cargo.toml dependencies section, updating the version number as needed.

bgzf = "*"

How to build and test locally

Assuming you have cloned the repo and are in the top level:

cargo test
# The following test is more comprehensive and may take up to 10 minutes to run
cargo test -- --ignored

How to publish

This assumes that you have installed cargo-release via cargo install cargo-release and have set up credentials with crates.io.

cargo release <path|minor|major>


~36K SLoC