UNPKG

@gmod/bbi

Version:

Parser for BigWig/BigBed files

12 lines 432 B
export async function parseBigWig(bigwig, opts) { const header = await bigwig.getHeader(opts); const allFeatures = []; for (const ref of Object.values(header.refsByNumber)) { const features = await bigwig.getFeatures(ref.name, 0, ref.length, opts); for (const feature of features) { allFeatures.push(feature); } } return allFeatures; } //# sourceMappingURL=parse-bigwig.js.map