DNA sequencers give each base a quality score on the Phred scale. This Phred quality score calculator turns the score Q into the error probability, the accuracy, the expected errors per read and the share of reads with no error. With the number of reads it also gives the total number of wrong bases in the run.
How the calculation works
- Enter the Phred quality score Q of the bases, the read length and the number of reads.
- The probability that a base call is wrong is P = 10^(−Q/10), and the accuracy is 1 − P.
- Q10 means 1 error in 10, Q20 means 1 in 100, Q30 means 1 in 1,000 and Q40 means 1 in 10,000.
- The calculator gives the expected errors per read, the share of reads with no error (1 − P)^length and the total number of wrong bases in the run.
Example
A sequencing run has Q30 bases, reads of 150 bases and 400 million reads. The error probability is 0.1 %, so one base in 1,000 is wrong. Each read has 0.15 errors on average, 86.1 % of the reads have no error, and the run holds 60 million wrong bases among its 60 billion.
Why it matters
Quality scores are used to filter and trim reads, to judge a sequencing run, to choose parameters for alignment and variant calling, and to understand why some applications need a higher quality. The calculator turns the logarithmic scale into numbers that are easy to picture.
Good to know
The score is the platform’s own estimate and not a measured error rate, and the calculator assumes the same Q for all bases and independent errors. In real data, the quality changes along the read and between reads, and errors are not independent. For a mixture of scores, calculate the mean error probability, not the mean Q. Phred scores in FASTQ are stored as characters with an offset of 33.
Related tools
The DNA concentration calculator covers sample preparation, the DNA copy number calculator covers the number of template molecules, the log reduction calculator uses the same logarithmic scale, and the binomial calculator covers the probability of a number of errors.