Registry / other / rust-htslib

rust-htslib

JSON →
library1.0.0rscratesunverified

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

# Cargo.toml [dependencies] rust-htslib = "1.0.0"
INSTALL
IMPORT
SIG · RUST-HTSLIB
R
rust-htslib
otherrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Reader
use rust_htslib::bam::Reader;

Opening a BAM file and iterating over its records.

use rust_htslib::bam::Reader; let mut reader = Reader::from_path("input.bam").unwrap(); for result in reader.records() { let record = result.unwrap(); // process record }
Debug
Known issues
gotchaRequires HTSlib C library installed on the system
fix
Install htslib via package manager or build from source
affects: >=0.1.0
Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
rust-htslib — cargo add rust-htslib · libregistry