Genotype API Documentation - v0.1.0
    Preparing search index...

    Function scoreToErrorProbability

    • Convert quality score to error probability

      Uses the formula: P = 10^(-Q/10)

      Parameters

      • score: number

        Phred quality score

      Returns number

      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)