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.2

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.2
File Size Uploaded
polars_bio-0.36.2.tar.gz 49.9 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for polars-bio 0.36.2
File
polars_bio-0.36.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
polars_bio-0.36.2-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.2-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details
polars_bio-0.36.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
polars_bio-0.36.2-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.2.tar.gz

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

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

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

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

Download URL polars_bio-0.36.2-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
650f3174f097b6871ec8b0f405bf04414d13d359cc73168d3c73869939ae6914
BLAKE2b-256 checksum
How to use checksums
c0d409b6e319fdcc6e83e680a82ce249f260e4470c8c96f917f457695b112aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.2-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
6ab5a5b842e65e3947531fdf3318e4e43a1fe1024d1ea46238ff9229cd243aa9
BLAKE2b-256 checksum
How to use checksums
823ce3a142398f8d73609a42af0290e3cb317c27ae5693ba390109bb42aead9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.2-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
bc0999b56261cea06e69b9b31a279083247131ec5a104de802b20751f33bbfb9
BLAKE2b-256 checksum
How to use checksums
416fe1958410c1de80b987b423a669f05bda5f2b7a2fb85bb33ef9a90f4fe110
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via maturin/1.15.0

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

Download URL polars_bio-0.36.2-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
14b003e9297241e1ffb98bd5130c3f23227681447fb4979ae5ca5e41ab676a05
BLAKE2b-256 checksum
How to use checksums
c0edbda379fe58baf0935d35e66128da64325a840f519d6c3965acc14159128d
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