Parser for FASTA sequence files.
Delegates all parsing to the Rust noodles-fasta reader, which handles multi-line sequences and gzip-compressed input transparently.
const parser = new FastaParser();for await (const seq of parser.parseFile("genome.fasta")) { console.log(`${seq.id}: ${seq.length} bp`);} Copy
const parser = new FastaParser();for await (const seq of parser.parseFile("genome.fasta")) { console.log(`${seq.id}: ${seq.length} bp`);}
const results = await seqops(new FastaParser().parseFile("genome.fasta")) .filter({ minLength: 100 }) .collect(); Copy
const results = await seqops(new FastaParser().parseFile("genome.fasta")) .filter({ minLength: 100 }) .collect();
Parser for FASTA sequence files.
Delegates all parsing to the Rust noodles-fasta reader, which handles multi-line sequences and gzip-compressed input transparently.
Example: Basic usage
Example: With seqops pipeline