oxbow
oxbow copied to clipboard
Return references from BAM file
Added an API function that returns the reference sequences from the bam file.
Example usage:
f = open('my.bam', 'r')
ipc = ox.read_bam_references(f)
pl.read_ipc(ipc)
This returns a polars dataframe with two columns name
and length
that has the reference names and lengths.