Do you want to add
Code:
NH:i:1
Essentially open the input BAM file, loop over all the reads - modify the
Code:
.tags
(You don't have to use pysam - see https://github.com/peterjc/picobio/b..._strip_tags.py for a related task which uses plain Python and the samtools command to handle SAM/BAM conversion - but for more complicated work pysam would be worth learning)
Leave a comment: