BigWig::Reader
Reads local/remote bigWig and bigBed files. Prefer BigWig.open with a block. Each iterator has its own traversal and decode buffers. Advancing one iterator cannot invalidate values returned by another.
Constructors
Instance methods
Lazily yields whole overlapping records. Empty ranges yield nothing.
Fills every element, including NaN gaps. Returns buffer.size; never a short read. A range extending past the chromosome raises ArgumentError.
Always returns bins Float64s. Empty bins (including coverage and sum) are NaN. Mean excludes uncovered bases; coverage divides by bin width. std is the sample standard deviation (n-1), with one exact base => 0.
With exact: false, use the coarsest zoom not exceeding half a bin's width. Partly intersecting zoom records are weighted by overlap/width; minima/maxima may include data just outside the requested bin.
Dense values, with NaN for uncovered bases. Allocation is proportional to stop-start; use read_values/each_interval for unbounded regions.