#bam #bioinformatics #htslib #pileup #sequencing

rust-htslib

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

36 releases (23 breaking)

✓ Uses Rust 2018 edition

new 0.26.1 Dec 3, 2019
0.26.0 Sep 27, 2019
0.25.0 Sep 27, 2019
0.24.0 May 31, 2019
0.3.1 Mar 23, 2015

#9 in Science

Download history 983/week @ 2019-08-20 569/week @ 2019-08-27 347/week @ 2019-09-03 409/week @ 2019-09-10 713/week @ 2019-09-17 549/week @ 2019-09-24 485/week @ 2019-10-01 377/week @ 2019-10-08 603/week @ 2019-10-15 729/week @ 2019-10-22 482/week @ 2019-10-29 308/week @ 2019-11-05 294/week @ 2019-11-12 469/week @ 2019-11-19 280/week @ 2019-11-26

1,964 downloads per month
Used in 7 crates

MIT license

2MB
52K SLoC

C 36K SLoC // 0.1% comments Rust 15K SLoC // 0.1% 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 = "*"

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

~6.5–8.5MB
~206K SLoC