bioseq-ts
Version:
Biological Sequence in Javascript, written in Typescript.
21 lines (20 loc) • 691 B
TypeScript
/// <reference types="node" />
import { Logger, LogLevelDescType } from 'loglevel-colored-prefix';
import { Transform } from 'stream';
import { FastaUtils } from './FastaUtils';
/**
* Transform stream takes fasta chunks and push BioSeq objects
*
* @class FastaParserStream
* @extends {Transform}
*/
declare class FastaParserStream extends Transform {
protected buffer: string;
protected readonly logLevel: LogLevelDescType;
protected readonly log: Logger;
protected readonly fu: FastaUtils;
constructor(logLevel?: LogLevelDescType);
_transform(chunk: Buffer, enc: any, next: () => void): void;
_flush(next: () => void): void;
}
export { FastaParserStream };