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

    Function scoresToQuality

    • Convert array of numeric scores to quality string

      Parameters

      • scores: (number | QualityScore)[]

        Array of numeric quality scores

      • encoding: QualityEncoding = "phred33"

        Quality encoding scheme (default: phred33)

      Returns string

      ASCII quality string

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