@gmod/vcf
Version:
High performance streaming Variant Call Format (VCF) parser in pure JavaScript
8 lines (7 loc) • 429 B
TypeScript
/**
* Callback type for processGenotypes - receives the raw string and
* start/end indices to avoid string allocation. The sample index is the
* 0-based position in the header sample list.
*/
export type GenotypeCallback = (str: string, start: number, end: number, sampleIdx: number) => unknown;
export declare function processGenotypes(format: string, prerest: string, samplesLen: number, callback: GenotypeCallback): void;