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.7-cp310-abi3-manylinux_2_28_x86_64.whl (378.0 kB view details)

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

minibwa-0.1.7-cp310-abi3-manylinux_2_28_aarch64.whl (354.5 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

minibwa-0.1.7-cp310-abi3-macosx_11_0_arm64.whl (340.4 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for minibwa-0.1.7-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d1c34389e8cceb71ff83290e35986a126e38a36cba3ab469829eb4b8731df8cb
MD5 e028c0fc8535cbf2d1246410895ca783
BLAKE2b-256 e550a65ada4c4ac93a4fba5385cb6256ccb87848d0a7a7b79f6cb637cc2dd970

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibwa-0.1.7-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.7-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for minibwa-0.1.7-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d6711c29a873f1fcb28bdc9d3b2828f8b90ed5d0486f65f8e4b1b8535102b829
MD5 72a538e6477baef552ade6e9b6cf6690
BLAKE2b-256 0c980fafb63ea85f96c99ae4b9bbc9726c7f58445b582392faba5a970a5fabd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibwa-0.1.7-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.7-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for minibwa-0.1.7-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 806a7525182d486a00f347b1bb6dde453275bdeef4ec9b6184e8875357d51f0b
MD5 e3d337a7ec10fcbd2cdbf4bf53ca7235
BLAKE2b-256 1a58e6733d285b4061f0b546b1890c2f4bab850491bfe6800af523c1a28eaeab

See more details on using hashes here.

Provenance

The following attestation bundles were made for minibwa-0.1.7-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