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).
Quality string to analyze
Detected quality encoding
QualityError if encoding cannot be determined
const encoding = detectEncoding('IIIIIIIIII'); // 'phred33'const encoding = detectEncoding('hhhhhhhhhh'); // 'phred64' Copy
const encoding = detectEncoding('IIIIIIIIII'); // 'phred33'const encoding = detectEncoding('hhhhhhhhhh'); // 'phred64'
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).