oxbow icon indicating copy to clipboard operation
oxbow copied to clipboard

Return references from BAM file

Open pkerpedjiev opened this issue 9 months ago • 0 comments

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.

pkerpedjiev avatar Sep 17 '23 16:09 pkerpedjiev