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

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

minibwa-0.1.6-cp310-abi3-manylinux_2_28_aarch64.whl (354.3 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

minibwa-0.1.6-cp310-abi3-macosx_11_0_arm64.whl (340.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for minibwa-0.1.6-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cf7bd3f121b1c57f573c572500bdcb02337bde726d060ac72232c4eaa05c2e01
MD5 1cdc0efd6243fd408418aeb491d50fd6
BLAKE2b-256 cf41d235bcb6be850fb14df9cf53fc6b97e3d100a621c11649bbbb57337d37b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for minibwa-0.1.6-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 07489e346cc6cf99157f11cc73b01244fd132dc6b464721fe44efbed9b10ba4b
MD5 cf50ee26fd40a942be2581add4fb9a9e
BLAKE2b-256 0fda87ada7b4bf36f6bceacfa738e5a4fee01c460f2891569fa2007443900c63

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for minibwa-0.1.6-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7e51d8d2c2123ed18df9307160c08a6cd63926552ffc405e33111c79b07e9321
MD5 0d13146bacb4640fdd5dec45110e551e
BLAKE2b-256 bbcc4c4518d9389dbf47b5b5af46975a4f9f771da0bac4a847392b71564e2c53

See more details on using hashes here.

Provenance

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