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

    Function detectEncoding

    • Fast quality encoding detection using ASCII range heuristics

      Uses min/max ASCII values to determine encoding with distribution awareness. Optimized for modern sequencing data (95% Phred+33 prevalence).

      Parameters

      • quality: string

        Quality string to analyze

      Returns QualityEncoding

      Detected quality encoding

      QualityError if encoding cannot be determined

      const encoding = detectEncoding('IIIIIIIIII'); // 'phred33'
      const encoding = detectEncoding('hhhhhhhhhh'); // 'phred64'