Skip to main content

polars-bio - Next-gen Python DataFrame operations for genomics!

PyPI - Version Python versions Platforms GitHub License PyPI - Downloads install with bioconda Bioconda Bioconda - Downloads Bioconda - Platforms GitHub commit activity

CI Docs

polars-bio logo

polars-bio is a Python library for genomics built on top of polars, Apache Arrow and Apache DataFusion. It provides a DataFrame API for genomics data and is designed to be blazing fast, memory efficient and easy to use.

🎉 Join us at ECCB 2026 in Geneva!

We'll be presenting polars-bio at ECCB 2026 — the 25th European Conference on Computational Biology, 31 August – 4 September 2026, Geneva, Switzerland. Come and say hi!

Join us at ECCB 2026 in Geneva

Key Features

Performance

polars-bio is optimized for both genomic interval operations and reading genomic file formats. See the full performance results.

Genomic interval operations — speedups vs. other Python libraries:

Benchmark summary

Genomic file format readers — single-threaded throughput vs. other Python readers (full benchmark):

FASTQ readers

BAM readers (with tags)

VCF readers (with INFO)

Multi-threaded scalability of file-format reading (wall time & peak memory):

File-format thread scaling

For developers: See benchmarks/README_BENCHMARKS.md for information about running performance benchmarks via GitHub Actions.

Citing

If you use polars-bio in your work, please cite:

@article{10.1093/bioinformatics/btaf640,
    author = {Wiewiórka, Marek and Khamutou, Pavel and Zbysiński, Marek and Gambin, Tomasz},
    title = {polars-bio—fast, scalable and out-of-core operations on large genomic interval datasets},
    journal = {Bioinformatics},
    pages = {btaf640},
    year = {2025},
    month = {12},
    abstract = {Genomic studies very often rely on computationally intensive analyses of relationships between features, which are typically represented as intervals along a one-dimensional coordinate system (such as positions on a chromosome). In this context, the Python programming language is extensively used for manipulating and analyzing data stored in a tabular form of rows and columns, called a DataFrame. Pandas is the most widely used Python DataFrame package and has been criticized for inefficiencies and scalability issues, which its modern alternative—Polars—aims to address with a native backend written in the Rust programming language.polars-bio is a Python library that enables fast, parallel and out-of-core operations on large genomic interval datasets. Its main components are implemented in Rust, using the Apache DataFusion query engine and Apache Arrow for efficient data representation. It is compatible with Polars and Pandas DataFrame formats. In a real-world comparison (107 vs. 1.2×106 intervals), our library runs overlap queries 6.5x, nearest queries 15.5x, count\_overlaps queries 38x, and coverage queries 15x faster than Bioframe. On equally-sized synthetic sets (107 vs. 107), the corresponding speedups are 1.6x, 5.5x, 6x, and 6x. In streaming mode, on real and synthetic interval pairs, our implementation uses 90x and 15x less memory for overlap, 4.5x and 6.5x less for nearest, 60x and 12x less for count\_overlaps, and 34x and 7x less for coverage than Bioframe. Multi-threaded benchmarks show good scalability characteristics. To the best of our knowledge, polars-bio is the most efficient single-node library for genomic interval DataFrames in Python.polars-bio is an open-source Python package distributed under the Apache License available for major platforms, including Linux, macOS, and Windows in the PyPI registry. The online documentation is https://biodatageeks.org/polars-bio/ and the source code is available on GitHub: https://github.com/biodatageeks/polars-bio and Zenodo: https://doi.org/10.5281/zenodo.16374290. Supplementary Materials are available at Bioinformatics online.},
    issn = {1367-4811},
    doi = {10.1093/bioinformatics/btaf640},
    url = {https://doi.org/10.1093/bioinformatics/btaf640},
    eprint = {https://academic.oup.com/bioinformatics/advance-article-pdf/doi/10.1093/bioinformatics/btaf640/65667510/btaf640.pdf},
}

Read the documentation

Protein structures: PDB, mmCIF and indexed Foldcomp readers provide atom and residue tables with backbone geometry.

Metadata

Release files for polars-bio 0.37.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polars-bio 0.37.0
File Size Uploaded Provenance Actions
polars_bio-0.37.0.tar.gz 50.0 MB Without provenance Details for polars_bio-0.37.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for polars-bio 0.37.0
File Actions
polars_bio-0.37.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for polars_bio-0.37.0-cp310-abi3-win_amd64.whl
polars_bio-0.37.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for polars_bio-0.37.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
polars_bio-0.37.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for polars_bio-0.37.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
polars_bio-0.37.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for polars_bio-0.37.0-cp310-abi3-macosx_11_0_arm64.whl
polars_bio-0.37.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for polars_bio-0.37.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 499.1 MB

Release files / polars_bio-0.37.0.tar.gz

Download URL polars_bio-0.37.0.tar.gz
Size 50.0 MB
Tags Source
SHA-256 checksum
How to use checksums
693b5cfc4e8620d7edd8ce193624a1404dcd4467d492f8a96d11412f0b9326d6
BLAKE2b-256 checksum
How to use checksums
b519b15fc6ae6869c64fd6e79c08e6615ce66ac20dbe07ab712bbf7a32af6a23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.16.0

Release files / polars_bio-0.37.0-cp310-abi3-win_amd64.whl

Download URL polars_bio-0.37.0-cp310-abi3-win_amd64.whl
Size 85.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8d8c53f8e7579ac3cd20799d62a24a5c5a623607e2cbb4fd14823410b255f3c6
BLAKE2b-256 checksum
How to use checksums
fa6549fd0db5854e16fc3f2ee9d44ba51e263eae256a1a17e0ee97c2ffb810e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.16.0

Release files / polars_bio-0.37.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL polars_bio-0.37.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 94.6 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ee043a20d91c5fd2d7eec9bccccbaf81e57239a3c595ac5414ac346a27eb9d05
BLAKE2b-256 checksum
How to use checksums
e24f521b81f897d1e235880697465e6dda6c8287412bdcf325b76233c4f98a88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.16.0

Release files / polars_bio-0.37.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL polars_bio-0.37.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 93.9 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
c24cc4fefce3447c2f41b2edecaca1546156a0e80d82b4bbed965fb98818ddd0
BLAKE2b-256 checksum
How to use checksums
58b6b6d0078d63ba130a73cb7ff03d94f85ad9f8fa5f97e2c9ebe63ea2e836e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.16.0

Release files / polars_bio-0.37.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL polars_bio-0.37.0-cp310-abi3-macosx_11_0_arm64.whl
Size 85.7 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a8b9a038352d2d80a62686668e07a427fed8d1c61dd107712c24a88ceb2dfd96
BLAKE2b-256 checksum
How to use checksums
4dafcd97b523300b1981f75d2b31aca017b4ce8b1bac508d8098d8cfa2e856e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.16.0

Release files / polars_bio-0.37.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL polars_bio-0.37.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 89.2 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
99e23de36cc368c4a0a4140d04b5138fb6479f22e0c2aad8f39f74115589ee20
BLAKE2b-256 checksum
How to use checksums
d5cbb80bbc1c1fc5beca31c65c3375de1f35777e85333fbc1ada02e7e3399c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.16.0

Security for polars-bio 0.37.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.37.0 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page