Entering edit mode
8 months ago
Dora
▴
10
I want to calculate the mismatch rate on base-level, I notice that the information in VCF file may help.
##INFO=<ID=DP4,Number=4,Type=Integer,Description="Number of high-quality ref-forward , ref-reverse, alt-forward and alt-reverse bases">
Question: can I use (alt-forward + alt-reverse) / (ref_forward + ref-reverse + alt-forward + alt-reverse)
to get the mismatch rate?
PS: in my case, the mismatch means one bases convert into the other, the insertion or deletion is not included
Thank you in advance!
Thank you for your reply!! My bad. I didn't mention that I want to get the mismatch rate for each site. Is this error rate for each site?
use the output of
samtools mpileup
I was using it but the output file was too big, so that I thought the vcf file was more efficient. But now I know that I can stop working on vcf file and turn to mpileup again. Thank you so much~~
pipe the output