Skip to content
Testaroo
fastq821 B

Intentionally Corrupt FASTQ: Final Record Missing Its Quality Line (.fastq)

An intentionally corrupt FASTQ whose first five records are complete and whose sixth ends after the plus line, leaving no quality string. A four-line-block reader must report an incomplete final record rather than pairing the sequence with an empty quality string.

Preview, first 24 linesfastq
@NX_READ_001 length=60
GGCGCGCACGTGGGGGCCCCCAAAAAGCTCTAATGGACTGAATATTGGGGCGTTCTGATA
+
FGHFHEGEFDGDFGHDHEEECCFGCFFBDCFBEFDBDCEAAACCEBB@CAB@ACAC@@BB
@NX_READ_002 length=60
AACTATCTTAGATAAGAGTAGACGAGAGCAACCAGACTACTTGTTGTGGGCTGCGAGGAC
+
GHFHHEGFFDFHDEEGGFFFEDDDFDFFEFEDBFDCEDEEDCACDADABBBBDBA?@CC@
@NX_READ_003 length=60
AGCGACAGATATAGCTTACCGCCGCGGCTATAAGCAAAGTGTGTCAACGAACGGCTTTCT
+
IFFFIHEIGHEDGGHDGHEDDGFGGCFBCBDCDEDDBCCCEEEBEBCBCDABBDCAABBC
@NX_READ_004 length=60
CAAGAGCATGGGCCCAATCCGTTGATTACTGAGCTTCATCGGATCCATTAACCGTCGGGT
+
HEFEEEIHIFFGHEGDEHCFCGGGEGDDFEEFCCEBEADBDCCEC@BCBBDDAD??AB??
@NX_READ_005 length=60
ACGGCAAGCCGAAAAGATATTATTGATTGATCTTACATTCGATCGGTTCGCAGACCCGAG
+
IFHIFGEHHEGEGFGFGFGDEGGCDCFFCDEFFEEEDCBCDCEADAACB@@CDBBC@@CC
@NX_READ_006 length=60
ACCCGCAGTTTGGAGTGCCTAGCGACTAATGTGACACTGTGGTATCGCTCCTTCTTAGGA
+

Specifications

Intentionally Corrupt
true
Complete Records
5
Truncated Records
1
Damage
the last record has header, sequence and plus line but no quality line
Lines Per Record
4
Actual Final Record Lines
3

Testing contract

Expected to fail
Scenario
Read the file in four-line records and report how many complete records it contains.
Expected result
Five records parse cleanly and the sixth raises an incomplete-record error at end of file, rather than yielding a read whose quality string is empty or reused from the previous record.

What is a .fastq file?

FASTQ pairs each sequence with per-base quality scores. A record is exactly four lines: a `@` header, the sequence, a `+` separator that may repeat the header, and a quality line of the same length whose characters encode Phred scores as ASCII with an offset: 33 in the Sanger/Illumina 1.8+ encoding, 64 in older Illumina data. Misidentifying that offset silently shifts every quality value by 31.

How to use this file

Use an example .fastq file to test read parsers, quality-trimming tools, and encoding detection, verifying that sequence and quality lengths match, that a `@` at the start of a quality line is not mistaken for a new record, and that the documented offset is applied.

How to use this file for testing

“Intentionally Corrupt FASTQ: Final Record Missing Its Quality Line (.fastq)” is a deterministic Testaroo fixture for Scientific data, Error handling, Editor testing. Citation catalogs (BibTeX, RIS), chemistry structures (MDL Molfile, PDB), and gridded binary data (NetCDF, FITS), for testing reference managers, molecule viewers, and scientific-data loaders.

Documented properties for this file: damage: the last record has header, sequence and plus line but no quality line · intentionally corrupt. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Scientific fixtures are small, valid, and fully synthetic, no real organism, patient, sample, or observation. Point your parser or loader at the file and check it reads the documented records, variables, or headers; binary formats ship a readable twin or metadata listing for comparison.

Generated by generation/scientific.py. Free for any use, no attribution required, license.