I am using Pysam to process a bam file containing paired reads. However, I get the error `
AttributeError: 'csamtools.AlignedRead' object has no attribute 'rnext'` when I try to extract the chromosome that the mate of a read is aligned to. What am I doing wrong?
for row in samfile:
It gives the read's refernce properly, however it gives an error for the mate's reference.