binBSGenome: Bins a BSgenome object.

View source: R/chrom-plots.R

binBSGenomeR 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)

databio/GenomicDistributions documentation built on April 30, 2024, 4:34 a.m.