async function bigwigDataForChromosomeAndZoomLevel(chrom, zoomLevel) {
zoomLevel = zoomLevel < 1 || zoomLevel > 4 ? 4 : parseInt(zoomLevel);
return await Promise.all(
bigwigReaders.map(bigwigReader =>
bigwigReader.readZoomData(
chrom,
0,
chrom,
chromsizeForChrom(chrom),
zoomLevel
)
)
);
}