PyRanges is a Python library for representing and analyzing genomic intervals, similar to Bioconductor's GenomicRanges. It provides efficient operations for overlap, merging, and annotation of genomic ranges. Version 0.1.4 is current; release cadence is irregular.
pip install pyrangesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a PyRanges object from a pandas DataFrame.
Always use 0-based, half-open intervals.
Ensure Chromosome column is of dtype str.
Include a Strand column with correct values when needed.
Use 'from pyranges import PyRanges' then 'PyRanges(...)'.
Ensure DataFrame has columns: Chromosome, Start, End.
Include 'Start' column with integer values.