Abstract
Motivation Genomic intervals are one of the most prevalent data structures in computational genome biology, and used to represent features ranging from genes, to DNA binding sites, to disease variants. Operations on genomic intervals provide a language for asking questions about relationships between features. While there are excellent interval arithmetic tools for the command line, they are not smoothly integrated into Python, one of the most popular general-purpose computational and visualization environments.
Results Bioframe is a library to enable flexible and performant operations on genomic interval dataframes in Python. Bioframe extends the Python data science stack to use cases for computational genome biology by building directly on top of two of the most commonly-used Python libraries, numpy and pandas. The bioframe API enables flexible name and column orders, and decouples operations from data formats to avoid unnecessary conversions, a common scourge for bioinformaticians. Bioframe achieves these goals while maintaining high performance and a rich set of features.
Availability and implementation Bioframe is open-source under MIT license, cross-platform, and can be installed from the Python package index. The source code is maintained by Open2C on Github at https://github.com/open2c/bioframe.
Competing Interest Statement
The authors have declared no competing interest.
Footnotes
↵* Contact: open.chromosome.collective{at}gmail.com, nezar{at}mit.edu, fudenber{at}usc.edu, anton.goloborodko{at}imba.oeaw.ac.at