BioinformaticsGenomicsPeer-reviewed journal article
PyRanges: efficient comparison of genomic intervals in Python
Abstract
SummaryComplex genomic analyses often use sequences of simple set operations like intersection, overlap, and nearest on genomic intervals. These operations, coupled with some custom programming, allow a wide range of analyses to be performed. To this end, we have written PyRanges, a data structure for representing and manipulating genomic intervals and their associated data in Python. Run single-threaded on binary set operations, PyRanges is in median 2.3-9.6 times faster than the popular R GenomicRanges library and is equally memory efficient; run multi-threaded on 8 cores, our library is up to 123 times faster. PyRanges is therefore ideally suited both for individual analyses and as a foundation for future genomic libraries in Python.\n\nAvailabilityPyRanges is available open-source under the MIT license at https://github.com/biocore-NTNU/pyranges and documentation exists at https://biocore-NTNU.github.io/pyranges/\n\nContactendrebak85@gmail.com\n\nSupplementary informationSupplementary data are available.
- Citations
- 94
- FWCI
- 2.07
- Field percentile
- top 12%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Pyranges v1: a Python framework for ultrafast sequence interval operations
Endre Bakken Stovner, Max Ticó, … Marco Mariotti·bioRxiv·Dec 12, 2025
- polars-bio - fast, scalable and out-of-core operations on large genomic interval datasets
Marek S. Wiewiórka, Pavel Khamutou, … Tomasz Gambin·BioinformaticsPeer-reviewed·Nov 28, 2025
- GRanges: A Rust Library for Genomic Range Data
Vince Buffalo·bioRxiv·May 24, 2024
- GIA: A genome interval arithmetic toolkit for high performance interval set operations
Noam Teyssier, Martin Kampmann, Hani Goodarzi·bioRxiv·Sep 20, 2023
- Bioframe: Operations on Genomic Intervals in Pandas Dataframes
Open2C, Nezar A. Abdennur, … Sergey V. Venev·BioinformaticsPeer-reviewed·Feb 1, 2024
- Augmented Interval List: a novel data structure for efficient genomic interval search
Jianglin Feng, Aakrosh Ratan, Nathan C. Sheffield·BioinformaticsPeer-reviewed·May 28, 2019