Parser for FASTA sequence files.
Reads FASTA records from files, strings, or streams and yields typed FastaSequence objects. Multi-line records and gzip-compressed files are handled 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.
Reads FASTA records from files, strings, or streams and yields typed FastaSequence objects. Multi-line records and gzip-compressed files are handled transparently.
Example: Basic usage
Example: With seqops pipeline