UNPKG

@gmod/vcf

Version:

High performance streaming Variant Call Format (VCF) parser in pure JavaScript

9 lines 387 B
import { processGenotypes } from "./processGenotypes.js"; export function parseGenotypesOnly(format, prerest, samples) { const genotypes = Object.create(null); processGenotypes(format, prerest, samples.length, (str, start, end, idx) => { genotypes[samples[idx] ?? ''] = str.slice(start, end); }); return genotypes; } //# sourceMappingURL=parseGenotypesOnly.js.map