binBSGenome {GenomicDistributions}R Documentation

Bins a BSgenome object.

Description

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

Usage

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

## Not run: 
binCount = 1000
refGenomeBins = binBSGenome("hg19", binCount)

## End(Not run)

[Package GenomicDistributions version 1.0.0 Index]