Given a BSgenome object (to be loaded via loadBSgenome), and a number of bins, this will bin that genome. It is a simple wrapper of the binChroms function

binBSGenome(genome, binCount)

Arguments

genome

A UCSC-style string denoting reference assembly (e.g. 'hg38')

binCount

number of bins per chromosome

Value

A data.table object showing the region and bin IDs of the reference genome.

Examples

if (FALSE) {
binCount = 1000
refGenomeBins = binBSGenome("hg19", binCount)
}