This produces empty file in my case, whereas if I try this on the equivalent sam file:
grep -E "@|NM:" my.sam | grep -v "XS:" > my.sam.unique
seems to work. However my sam is produced by bowtie2 (if that's the cause of the confusion)
• 0 views
•
link
duplicate of Bwa-Mem: Discriminate Between Reads Mapping Uniquely And Those Mapping In Multiple Positions