Convert quality score to error probability
Uses the formula: P = 10^(-Q/10)
Phred quality score
Error probability (0-1)
const prob = scoreToErrorProbability(20); // 0.01 (1% error rate)const prob = scoreToErrorProbability(30); // 0.001 (0.1% error rate)const prob = scoreToErrorProbability(40); // 0.0001 (0.01% error rate) Copy
const prob = scoreToErrorProbability(20); // 0.01 (1% error rate)const prob = scoreToErrorProbability(30); // 0.001 (0.1% error rate)const prob = scoreToErrorProbability(40); // 0.0001 (0.01% error rate)
Convert quality score to error probability
Uses the formula: P = 10^(-Q/10)