getGenomeBins: Returns bins used in 'calcChromBins' function Given a named...

getGenomeBinsR Documentation

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

Description

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

Usage

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)


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