FastqRecord.php
Immutable value object holding one FASTQ sequencing read and its per-base quality Freely inspired by BioPHP's project biophp.org Created 30 September 2026 Last modified 8 October 2026
Table of Contents
Classes
- FastqRecord
- Quality is decoded as Phred+33 (Sanger / Illumina 1.8+), the encoding every current sequencer produces : getPhredScores()[$i] = ord(quality[$i]) - 33, ranging from 0 to 93. The older Phred+64 encoding (pre-1.8 Illumina) is out of scope - it has not shipped from a sequencer since 2011 and supporting both would require the caller to specify which one applies per file, for no benefit to any format this project currently reads or writes. FastqReader warns about a file that looks Phred+64 encoded.