PyRanges

PyRanges provides efficient genomic interval set operations and data structures to represent and manipulate genomic intervals and their associated metadata for genomic analyses.


Key Features:

  • Efficient set operations: Performs set operations including intersection, overlap, and nearest-neighbor calculations on genomic intervals.
  • Performance: Demonstrates median single-threaded speed improvements of 2.3–9.6× versus the R GenomicRanges library on binary set operations and up to 123× speedup when multi-threaded across eight cores.
  • Metadata support: Associates an arbitrary number of metadata fields with genomic intervals to retain annotations alongside interval coordinates.
  • Framework for genomic libraries: Serves as a foundational framework for development of additional genomic libraries in Python.

Scientific Applications:

  • Comparative genomic analyses: Identifies overlaps and unique regions to compare genomic features across datasets or species.
  • Functional annotation studies: Associates metadata with intervals to annotate genes and regulatory elements based on spatial relationships.
  • Genome-wide association studies (GWAS): Performs efficient interval operations to correlate genetic variants with phenotypic traits across large datasets.

Methodology:

Implemented in Python using optimized algorithms for set operations (intersection, overlap, nearest, binary set operations) and supporting multi-threading across CPU cores to improve speed and memory efficiency.

Topics

Details

License:
MIT
Programming Languages:
R, Python
Added:
11/14/2019
Last Updated:
12/11/2020

Operations

Publications

Stovner EB, Sætrom P. PyRanges: efficient comparison of genomic intervals in Python. Bioinformatics. 2019;36(3):918-919. doi:10.1093/bioinformatics/btz615. PMID:31373614.

PMID: 31373614
Funding: - Research Council of Norway: 230338

Links