seq-events
A minimal, zero-copy streaming parser for FASTA/FASTQ files.
Emits SAX-style events as it reads, never buffering entire records. Works with any Read source including gzip streams.
Usage
use ;
use File;
let file = open.unwrap;
let mut reader = new;
while let Some = reader.next_event
use ;
use File;
let file = open.unwrap;
let mut reader = new;
while let Some = reader.next_event
Events
NextRecord- Emitted between records (not before the first)IdChunk(&[u8])- Record identifier (may span multiple chunks)SeqChunk(&[u8])- Sequence basesQualChunk(&[u8])- Phred quality scores, ASCII-encoded (FASTQ only)