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

    Function qualityToScores

    • Convert quality string to array of numeric scores

      Parameters

      • quality: string

        ASCII quality string

      • encoding: QualityEncoding = "phred33"

        Quality encoding scheme (default: phred33)

      Returns (QualityScore | SolexaScore)[]

      Array of numeric quality scores

      qualityToScores('IIII', 'phred33'); // Returns [40, 40, 40, 40]
      qualityToScores('hhhh', 'phred64'); // Returns [40, 40, 40, 40]