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

    Function errorProbabilityToScore

    • Convert error probability to quality score

      Uses the formula: Q = -10 * log10(P)

      Parameters

      • probability: number

        Error probability (0-1)

      Returns number

      Phred quality score

      const score = errorProbabilityToScore(0.01); // 20
      const score = errorProbabilityToScore(0.001); // 30
      const score = errorProbabilityToScore(0.0001); // 40