Skip to main content

Python bindings for minibwa

Project description

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, "-" if hit.reverse else "+", hit.cigar)
  • 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.

Project details


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

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

minibwa-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl (369.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

minibwa-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (334.0 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for minibwa-0.1.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8fdce2fff1100fc7387b35541080af6a4edaabfc232a33ead63a5a956963470
MD5 c1bd2cbc67375bd3f368a00a6f584397
BLAKE2b-256 591ec20fb6efbf64fc5c888984519e8359d9050ac3162752363e6e187738c1d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for minibwa-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f40cff8931f6d0133f169ca638e30c7b34bbe7144e664e2bb6da158d41c610ab
MD5 26a5f5e7697e62e11fae34d8289518a8
BLAKE2b-256 61486a30090bdda91da03497e36c55e35e8d7b71bcd23057b8d33f03f99563b1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for minibwa-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 98fd0f9e53540f4cbae46ef5a646ca4d6328295240603c5db242033318bacc0d
MD5 dc4c36de2bf343ab29d49fab9ae260dd
BLAKE2b-256 8e36d234ce917ebffacefef292a1b0561d07b2843ce1a35e895775f8a8a543b7

See more details on using hashes here.

Provenance

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