Returns bins used in `calcChromBins` function Given a named vector of chromosome sizes, the function returns GRangesList object with bins for each chromosome.

getGenomeBins(chromSizes, binCount = 10000)

Arguments

chromSizes

a named list of size (length) for each chromosome.

binCount

number of bins (total; *not* per chromosome), defaults to 10,000

Value

A GRangesList object with bins that separate chromosomes into equal parts.

Examples

chromSizes = getChromSizes("hg19")
chromBins  = getGenomeBins(chromSizes)