This library provides HTSlib bindings and a high level Rust API for reading and writing BAM files.
Clone or download
nlhepler and johanneskoester bam: fix l_extranul processing when deserializing (#117)
* bam: fix l_extranul processing when deserializing

* pass by mut ref instead of by value

also enable testing of serde features

* bam::record: qname gets _capacity() and _len()
Latest commit 6a93aa4 Dec 3, 2018

README.md

Crates.io Crates.io Crates.io docs.rs Travis

HTSlib bindings for Rust

This library provides HTSlib bindings and a high level Rust API for reading and writing BAM files.

To clone this repository, issue

git clone --recursive https://github.com/rust-bio/rust-htslib.git

ensuring that the HTSlib submodule is fetched, too. If you only want to use the library, there is no need to clone the repository. Go on to the Usage section in this case.

Requirements

To compile this crate you need the development headers of zlib, bzip2 and xz.

Usage

Add this to your Cargo.toml:

[dependencies]
rust-htslib = "*"

and this to your crate root:

extern crate rust_htslib;

For more information, please see the docs.

Authors

For other contributors, see here.

License

Licensed under the MIT license http://opensource.org/licenses/MIT. This project may not be copied, modified, or distributed except according to those terms.