refineRegions: Refine regions

Description Usage Arguments Value

Description

Refine a GRanges object to make sure that it is compatible with a binning scheme of a given binsize. There is more than one way of doing it. In the way it is done here, the start coordinates and the end coordinates of the provided regions will become respectively the next number of the form binsize*k + 1 and the previous number of the form binsize*k, so that the refined regions will always be contained in the original ones.

Usage

1
refineRegions(regions, binsize)

Arguments

regions

GRanges object containing the genomic regions of interest.

binsize

The size of each bin in basepairs.

Value

A GRanges object with the refined regions.


lamortenera/epicseg documentation built on May 20, 2019, 7:34 p.m.