py-oxbow
A Python interface for oxbow.
Read specialized bioinformatic file formats into dataframes.
Installation
Warning: oxbow is new and under active development. It is not yet
ready for production as APIs are subject to change.
pip install oxbow
Usage
API Documentation
import oxbow as ox
arrow_ipc = ox.read_bam("data.bam", "chr1:1-100000")
import polars as pl
df = pl.read_ipc(arrow_ipc)
import io
import pyarrow.ipc
df = pyarrow.ipc.open_file(io.BytesIO(ipc)).read_pandas()
Development
This project uses maturin
and hatch
for development, which can be installed with pipx
.
hatch shell
maturin develop --release
jupyterlab
A local build of oxbow
will be added to your virtual environment.
import oxbow as ox