Off topic:How to edit flags in a BAM file?
1
1
Entering edit mode
9.6 years ago
rmccloskey ▴ 240

I have a number of BAM files with a very high number of reads flagged as duplicates (>50%). To confirm that these are indeed duplicates and the flags were not introduced erroneously during processing, I would like to clear all the duplicate read flags and run Picard tools MarkDuplicates to recheck these. Is there a better way to change the flags in a BAM file then to convert to SAM, edit the file with sed or something, and then convert back to BAM?

bam samtools • 3.7k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2898 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6