binRegions: Bin a set of GRanges regions

View source: R/enrichmentTSS.R

binRegionsR Documentation

Bin a set of GRanges regions

Description

Bin a set of GRanges regions

Usage

binRegions(regions, scope = 2000, bin = 10)

Arguments

regions

GRanges object containing the regions to bin. It assumes that the first mcol contained the unique identifier of the region.

scope

Integer indicating how many base pairs upstream and downstream to extend the promoter region. Returned window width will be scope*2. Default: 2Kb.

bin

Integer indicating the size of the bins. Default: 10 bp.

Value

Binned GRanges object.


mireia-bioinfo/meowmics documentation built on July 29, 2023, 10 p.m.