Parser for FASTQ sequence files.
Reads FASTQ records from files, strings, or streams and yields typed FastqSequence objects. Multi-line records and gzip-compressed files are handled transparently, and quality encoding may be provided or auto-detected.
const parser = new FastqParser();for await (const seq of parser.parseFile("reads.fastq")) { console.log(`${seq.id}: ${seq.sequence.length} bp`);} Copy
const parser = new FastqParser();for await (const seq of parser.parseFile("reads.fastq")) { console.log(`${seq.id}: ${seq.sequence.length} bp`);}
const results = await seqops(new FastqParser().parseFile("reads.fastq.gz")) .filter({ minLength: 100 }) .collect(); Copy
const results = await seqops(new FastqParser().parseFile("reads.fastq.gz")) .filter({ minLength: 100 }) .collect();
Parse multi-line FASTQ from a string (legacy compatibility). Uses the same record shape and quality encoding behavior as parseString.
Parser for FASTQ sequence files.
Reads FASTQ records from files, strings, or streams and yields typed FastqSequence objects. Multi-line records and gzip-compressed files are handled transparently, and quality encoding may be provided or auto-detected.
Example: Basic usage
Example: With seqops pipeline