minibwa
Rust and Python bindings for minibwa.
minibwa-sys— low-level FFI over vendored minibwa C (compiled viabuild.rs).minibwa— safe Rust wrapper exposing structured alignmentHits.minibwa-py— Python bindings (pyo3 + maturin).
Quick start (Rust)
use ;
build_from_fasta?;
let idx = load?;
let opts = new;
let aligner = new;
let mut buf = new;
for hit in aligner.map?
# Ok::
Quick start (Python)
# Build a BWA index from a FASTA file (one-time)
# Load the index
=
# Configure alignment options
=
# Map a single read
=
Licensing
MIT. The default build uses only Apache-2.0 libsais for indexing. The GPL
bwtgen path is available behind the opt-in gpl-bwtgen feature, which changes
the effective license to GPL.
Updating the vendored source
scripts/refresh-minibwa.sh <clean-commit> [local-source-path]