Returns the distribution of query over a reference assembly Given a query set of elements (a GRanges object) and a reference assembly (*e.g. 'hg38'), this will aggregate and count the distribution of the query elements across bins of the reference genome. This is a helper function to create features for common genomes. It is a wrapper of calcChromBins, which is more general.

calcChromBinsRef(query, refAssembly, binCount = 3000)

Arguments

query

A GenomicRanges or GenomicRangesList object with query regions

refAssembly

A character vector that will be used to grab chromosome sizes with getChromSizes

binCount

Number of bins to divide the chromosomes into

Value

A data.table showing the distribution of regions across bins of the reference genome.

Examples

ChromBins = calcChromBinsRef(vistaEnhancers, "hg19")