#bioinformatics #htslib #bam #pileup #sequencing

rust-htslib

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

30 releases (18 breaking)

0.21.0 Aug 1, 2018
0.20.0 Jun 18, 2018
0.19.1 Jun 7, 2018
0.17.0 Feb 22, 2018
0.3.1 Mar 23, 2015

#3 in Science

Download history 308/week @ 2018-05-10 121/week @ 2018-05-17 343/week @ 2018-05-24 340/week @ 2018-05-31 264/week @ 2018-06-07 573/week @ 2018-06-14 278/week @ 2018-06-21 268/week @ 2018-06-28 444/week @ 2018-07-05 296/week @ 2018-07-12 572/week @ 2018-07-19 275/week @ 2018-07-26 423/week @ 2018-08-02

1,501 downloads per month
Used in 4 crates

MIT license

1.5MB
40K SLoC

C 34K SLoC // 0.1% comments Rust 5.5K SLoC // 0.2% comments Perl 1K SLoC // 0.1% comments Shell 230 SLoC // 0.2% comments

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.

Dependencies

~9.5MB
~237K SLoC