compressed: data.frame with integer columns chromStart, chromEnd, count.
bin.chromStart: Base before first bin.
bin.size: Bin size.
n.bins: Number of bins.
empty.as.zero: Sometimes the last few bins do not have any overlapping data in compressed. If TRUE, set these counts to 0. If FALSE, ignore these bins (returning a data.frame with fewer than n.bins rows).
Returns
data.frame with n.bins rows and columns chromStart, chromEnd, count, mean.