Entering edit mode
12.0 years ago
tomislav.ilicic
▴
120
Dear all,
I am trying to compute the offset to base alignment quality (BAQ) myself from mpileup files (using this parameters -l $bed_file -BQ 0 -A -d10000000).
After some bit of research I have found this formula:
At the i-th read base, BAQi = Qi - (BQi - 64) where Qi is the i-th base quality.
I have following questions:
- Is Qi the Phred Score
P = 10^( -Q/10)of the base? Q being ascii_val(char) - 33 (if Sanger format). - Is
BQithe same asQi? - And do you always have to subtract with 64
BQi -64or is it depended on the sequencer used?
I would really appreciate some help.
Thanks.
Thanks, actually that is useful. But I agree, if they use a HMM to calculate BAQ than this is not at all what the formula says - looks much easier. The formula is described on page 6 in here http://samtools.sourceforge.net/SAMv1.pdf