Skip to main content

FASTQ Format

Read FASTQ reads as one record per four-line block (stdlib; no extra).

Overview

PropertyValue
Format idfq (alias fastq)
ClassFASTQIterable
Extensions.fq, .fastq
ReadYes
WriteNo
Extranone (stdlib)
Maturitystable

Record shape

{
"id": "read1",
"description": "",
"sequence": "ACGTACGT",
"quality": "IIIIIIII",
}

Usage

from iterable import open_iterable

with open_iterable("reads.fq") as source:
for rec in source:
print(rec["id"], rec["sequence"], rec["quality"])

See also