Convert error probability to quality score
Uses the formula: Q = -10 * log10(P)
Error probability (0-1)
Phred quality score
const score = errorProbabilityToScore(0.01); // 20const score = errorProbabilityToScore(0.001); // 30const score = errorProbabilityToScore(0.0001); // 40 Copy
const score = errorProbabilityToScore(0.01); // 20const score = errorProbabilityToScore(0.001); // 30const score = errorProbabilityToScore(0.0001); // 40
Convert error probability to quality score
Uses the formula: Q = -10 * log10(P)