Hi again
To be more specific on the error I'm getting, please check the following code.
import pysam
import itertools
samfile = pysam.Samfile( "bam/sample.bam", "rb" )
for c in samfile.pileup('1', 10000, 10001):
for r in c.pileups:
print r.alignment.next_reference_start
samfile.close()
> Error
Traceback (most recent call last):
File "samRead.py", line 41, in <module>
print r.alignment.next_reference_start
AttributeError: 'pysam.csamfile.AlignedRead' object has no attribute 'next_reference_start'
Any ideas, suggestions or advices are highly appreciated
Best
Pubudu