A first look at a FASTQ file

FASTQ is the raw output of short-read sequencing: one record per read, four lines each. A few minutes reading it before you commit to a pipeline catches the obvious problems early.

Four lines per read

How quality is encoded

Modern Illumina data uses Phred+33: each quality character’s ASCII code minus 33 is the Phred score. So the character I (ASCII 73) is Q = 73 − 33 = Q40, and # (ASCII 35) is Q2. The quality string lines up base-for-base with the sequence, so position 10 of the quality line is the confidence in base 10.

What to check first

None of this needs a heavyweight pipeline: aggregate read count, length, per-base quality and GC from the file itself and you have your first, honest picture of the run.