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.3-cp39-abi3-manylinux_2_28_x86_64.whl (371.7 kB view details)

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

minibwa-0.1.3-cp39-abi3-manylinux_2_28_aarch64.whl (348.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

minibwa-0.1.3-cp39-abi3-macosx_11_0_arm64.whl (320.8 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file minibwa-0.1.3-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for minibwa-0.1.3-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89edd5bce57c3f43761bc077fb0594c75ae2fc511d2c7d61e1b194d02976ce46
MD5 84509f48bdbe878e7d91e6c783fbe388
BLAKE2b-256 7e6ce2b204c94352d98e6976633526aaaae8df64083eb5ad4c3be79f9194da3e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for minibwa-0.1.3-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a29098f98519bfd29a2c7735c22d65b241a10b8e93d06c5b7f0c66f079c73f9e
MD5 6ec759160f704cd0bae432dd9098d27d
BLAKE2b-256 eea4fd9e9d898eb06e348179d201d209734505fee957e0d792a8148686b8e9fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for minibwa-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bd43d52c5740c78c8e38c1f17d3fb31f03348e2fc4678e6603d5f31852cd463
MD5 6342c1b1389683adbbef5dfe8bc14f60
BLAKE2b-256 d25dc86480a4963ee62290f535b921f154b37e6a1a4cd339d9100e45a8d4fa48

See more details on using hashes here.

Provenance

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