How samtools calculate error rate
1
1
Entering edit mode
6.7 years ago

I have aligned the fastq file to the reference genome and got a sam file. I know use "samtools stats" can get "error rate" of the sam file.

Is there any document shows how the error rate is calculated from the sam file? (since I want to seperately calculate the error rate of every read in the sam file instead of the average of the whole file)

I am really confused how they deal with softclips and hardclips when calculating the error rate.

Any answer is appreciated.

samtools sequencing • 5.0k views
ADD COMMENT
2
Entering edit mode
6.7 years ago

samtools adds up the number of mismatches (from the NM auxiliary tag) and divides that by the number of aligned bases. Soft and hard-clipped bases wouldn't be included, since they aren't aligned.

ADD COMMENT

Login before adding your answer.

Traffic: 2208 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