Thanks! But how I can interate though the nucleotides? For example, I'd like to change each third nucleotide to the custom one?
I thought about:
for pos in read_positions:
if reference_nucl == 'A':
read_nucl = 'C'
but I don't know how to organise it in pysam
• 0 views
•
link
see How to introduce artificial mutation in bam ; Modifying fastq base at specific reference location on different length reads ;