Skip to main content

minibwa

Python bindings for minibwa, a minimal BWA-style short- and long-read aligner. Built on the Rust minibwa crate via PyO3; the alignment runs in native code with the GIL released.

Install

pip install minibwa

Quick start

import minibwa

# Build an index from a FASTA (writes <prefix>.l2b and <prefix>.mbw), then load it.
minibwa.Index.build("ref.fa", "ref")
idx = minibwa.Index.load("ref")

opts = minibwa.Opts()
for hit in minibwa.map(idx, opts, "read1", "ACGTACGT..."):
    print(hit.contig, hit.ref_start, hit.ref_end, hit.strand, hit.cigar_string)
  • Paired-end: minibwa.map_pair(idx, opts, n1, s1, n2, s2)
  • Batched (higher throughput): minibwa.map_many(idx, opts, names, seqs)
  • Methylation (bisulfite): pass meth=minibwa.Meth.C2T / Meth.G2A (build/load the index with meth=True)

See the project repository for the full API and documentation.

License

MIT. The package vendors and links minibwa (MIT) and libsais (Apache-2.0); see the repository's THIRD-PARTY.md for full notices.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

minibwa-0.1.4-cp310-abi3-manylinux_2_28_x86_64.whl (377.2 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

minibwa-0.1.4-cp310-abi3-manylinux_2_28_aarch64.whl (353.5 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

minibwa-0.1.4-cp310-abi3-macosx_11_0_arm64.whl (339.2 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file minibwa-0.1.4-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for minibwa-0.1.4-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 996ff76a6a8c10eab54b493b410f1a49db614bd789d7af1b2df3906838496173
MD5 846e67683f5b56c43a3e091cff768334
BLAKE2b-256 34c0714728affa64bbbedf489855622017d47caf7c4acf5228917b11ae7d5284

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibwa-0.1.4-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: pypi.yml on fg-labs/minibwa-bindings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minibwa-0.1.4-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for minibwa-0.1.4-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c70f7647fef135fd4a27ef09b80d3ced32e5ad9cf88bf97c3bef45dc2e776ed9
MD5 b8561219dad7b3f3cb48ceaa7b6aa1e3
BLAKE2b-256 4624e9f89c6c450d2da57c1eec0a73ee47fa8af064e10440e231902c125d7848

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibwa-0.1.4-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: pypi.yml on fg-labs/minibwa-bindings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file minibwa-0.1.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for minibwa-0.1.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99553f9218157ee006027060ba9e9c7d8856ca1c1a2f9798bed891109da73a0f
MD5 920c1a1a53fd3b35e053cc98c06d490d
BLAKE2b-256 fa6368c00ed55e1ce15d22d59bf2b3d67f02bb15359b44d966bd5aebbe8e267e

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibwa-0.1.4-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: pypi.yml on fg-labs/minibwa-bindings

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page