Hi all,
If this topic has been solved in a previous post, I apologize for that. And please direct me to the solution.
I used BWA to align exome sequencing data. And I want to count the number of uniquely mapped reads and the number of duplicates reads (not multi-hits reads) in the obtained BAM files. Samtools flagstat is supposed to work: uniquely = mapped - duplicate. Unfortunately samtools flagstat always get "0+0 duplicate" for BWA aligned BAM files.
I wonder if anybody has an easy solution for this.
Thank you all.
If this topic has been solved in a previous post, I apologize for that. And please direct me to the solution.
I used BWA to align exome sequencing data. And I want to count the number of uniquely mapped reads and the number of duplicates reads (not multi-hits reads) in the obtained BAM files. Samtools flagstat is supposed to work: uniquely = mapped - duplicate. Unfortunately samtools flagstat always get "0+0 duplicate" for BWA aligned BAM files.
I wonder if anybody has an easy solution for this.
Thank you all.
Comment