UNPKG

@gmod/vcf

Version:

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

12 lines 539 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseGenotypesOnly = parseGenotypesOnly; const processGenotypes_ts_1 = require("./processGenotypes.js"); function parseGenotypesOnly(format, prerest, samples) { const genotypes = Object.create(null); (0, processGenotypes_ts_1.processGenotypes)(format, prerest, samples.length, (str, start, end, idx) => { genotypes[samples[idx] ?? ''] = str.slice(start, end); }); return genotypes; } //# sourceMappingURL=parseGenotypesOnly.js.map