Format a single FASTQ sequence as string
This is the primary method for writing FASTQ data, symmetric to the parser's parse methods.
FASTQ sequence to format
Formatted FASTQ string with header, sequence, separator, and quality
Format multiple sequences as string
Array of FASTQ sequences
Formatted FASTQ string with all sequences
Symmetric to the parser's ability to parse multiple sequences. Memory consideration: For large datasets, use writeToStream instead.
Format sequences as an async iterable stream
Memory-efficient streaming output for large datasets, symmetric to the parser's async iteration support.
Async iterable of sequences to format
Write sequences to a WritableStream
Provides full streaming support symmetric to the parser's streaming capabilities.
Async iterable of FASTQ sequences
Writable stream to write to
FASTQ format writer with quality encoding conversion support
Provides symmetry with the FastqParser for round-trip compatibility. Uses the same validation infrastructure and quality handling as the parser.
Example: Basic usage
Example: With validation
Example: Platform-aware formatting