Previous topic

bioa.io.sam.reads_from_sam

Next topic

bioa.io.sam.reads_from_sam

This Page

bioa.io.sam.reads_from_sam_quick

reads_from_sam_quick(sam_file)[source]

Quickly parse aligned reads from SAM/BAM file. This only returns reads and does not attempt to pad.

Parameters :

sam_file : pysam.SamFile

The SAM/BAM file object.

Returns :

read_pos_iter : (str, int) iterable

Iterable of read-pairs indicating the read and its starting position in the reference.