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.36.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.36.0
File Size Uploaded
polars_bio-0.36.0.tar.gz 49.9 MB Details

Built distributions (wheels)

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

Total release size: 498.4 MB

Release files / polars_bio-0.36.0.tar.gz

Download URL polars_bio-0.36.0.tar.gz
Size 49.9 MB
Tags Source
SHA-256 checksum
How to use checksums
3fc6346f5978c4c2587678d2eef03efebb238db1d7542388e5ae3ed1b5d2381d
BLAKE2b-256 checksum
How to use checksums
d6f376ac5b21de6e48f1c17fe2876c57185e7c8f3e1b9d834b43cb8c71f334ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.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
5cadf68ee22f0a1f280bcc31f2bd92b371aadc5cc8b2791667313d6e3884ab0f
BLAKE2b-256 checksum
How to use checksums
fa7e034e4f3a87e0cc3ff7ceb1ba149e09c6a4ea37f0e6af046a5ddd3a9e810b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 94.4 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0f075c31f5d669cd5b653adf5e0967387e47d907c0084ae17f525dfeca59fb82
BLAKE2b-256 checksum
How to use checksums
4e136199e26189f9d083dec3d769acc64f1918fd1131518e94e3330a4f48803e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 93.7 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
84239f2041ce434a0cd494c043ed03672d8aeff1bc1090efc7a159f0e61c8991
BLAKE2b-256 checksum
How to use checksums
b132b867af3c1689c35c7c5360a264051b38f5061121bab9a24b571688c85320
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.0-cp310-abi3-macosx_11_0_arm64.whl
Size 85.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
ba94e21fb8304616026270af05e2322d63bd56f2d846f79ae374bdb13c1c7d2d
BLAKE2b-256 checksum
How to use checksums
463bfb00b90af500c5236ee54a37cb96efe85e359d5b6244ce5c9108ec34ea80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 89.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
bf2bc1922a02b92f9b064f738189dd6c99a0f8d2f12b33fa784bfd9c175f6f1d
BLAKE2b-256 checksum
How to use checksums
6d4396c0ee2d2e1511649fecdd997638822b7ce9d79a6ecac6c1742dccf2d4c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0
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