Skip to main content

pyranges0

Deprecation note!

This repo currently hosts the "version 0" of pyranges. A redesigned, faster version 1 is available at https://github.com/pyranges/pyranges1 Version 1 will soon replace version 0. We encourage existing v0 users to migrate to v1 (see guide at https://pyranges1.readthedocs.io/en/latest/migration_guide.html), and new users to directly adopt v1. Read about v1 in our preprint at https://doi.org/10.64898/2025.12.11.693639

Recent changes

Version 0.1.6 supports pandas 3 (pandas 1.5 and 2.x are still supported). With pandas 3, to_rle and coverage need pyrle >= 0.0.45. See CHANGELOG.txt for all changes.

Install coverage support with pip install 'pyranges[coverage]'.

Introduction

PyRanges is a Python library specifically designed for efficient and intuitive manipulation of genomics data, particularly genomic intervals (like genes, genomic features, or reads). The library is optimized for fast querying and manipulation of genomic annotations.

"Finally ... This was what Python badly needed for years." - Heng Li

Documentation

The pyranges0 documentation, including installation instructions, API, tutorial, and how-to pages, is available at https://pyranges0.readthedocs.io/en/latest/

Features

  • fast
  • memory-efficient
  • featureful
  • pythonic/pandastic
  • supports chaining with a terse syntax
  • uses Pandas DataFrames, so the whole Python data science stack works on PyRanges

Paper/Cite

Stovner EB, Sætrom P (2020) PyRanges: efficient comparison of genomic intervals in Python. Bioinformatics 36(3):918-919 http://dx.doi.org/10.1093/bioinformatics/btz615

Supporting pyranges

  • most importantly, cite pyranges if you use it. It is the main metric funding sources care about.
  • use pyranges in Stack Overflow/biostars questions and answers
  • star the repo (possibly important for github visibility and as a proxy for project popularity)
  • if you are a business using pyranges, please give to one of the charities listed at https://www.givewell.org/

Asking for help

If you encounter bugs, or the documentation is not enough and you cannot accomplish a specific task of interest, or if you'd like new features implemented, open an issue on GitHub: https://github.com/pyranges/pyranges0/issues

Contributing to pyranges

Pyranges accepts code contributions in the form of pull requests. For details, visit https://pyranges0.readthedocs.io/en/latest/developer_guide.html

Metadata

Release files for pyranges 0.1.7

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

Source distribution (sdist)

Source distribution for pyranges 0.1.7
File Size Uploaded Provenance Actions
pyranges-0.1.7.tar.gz 1.5 MB With provenance Details for pyranges-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyranges 0.1.7
File Interpreter ABI Platform Actions
pyranges-0.1.7-py3-none-any.whl Python 3 none any Details for pyranges-0.1.7-py3-none-any.whl

Total release size: 3.0 MB

Release files / pyranges-0.1.7.tar.gz

Download URL pyranges-0.1.7.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
908cbd92acf578560c482f6892aebb70a0cd4868a8334a7f1b9bb12e6172b26b
BLAKE2b-256 checksum
How to use checksums
fce6d0e37941ad433a01154bfa6443114dbeb1efb00add8ac054bd37dfaeefc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / pyranges-0.1.7-py3-none-any.whl

Download URL pyranges-0.1.7-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0421a1ac596e5315cbc9e5ab8573f3408e5f65c89edb2b864bebe4afcde489e4
BLAKE2b-256 checksum
How to use checksums
264e6ea4f4888657aac019f0660b81923e7feaca83936bb3568d228d21d76d17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for pyranges 0.1.7

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyranges-0.1.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

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.1.7 This release

2 release files Full 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