getFlanks: Function to get upstream and downstream adjecent regions to a genomic feature such as CpG islands
Description
Function to get upstream and downstream adjecent regions to a genomic feature such as CpG islands
Usage
getFlanks(grange,flank=2000,clean=TRUE)
## S3 method for class 'GRanges':
getFlanks(grange, flank = 2000, clean = TRUE)
Arguments
grange
GRanges object for the feature
flank
number of basepairs for the flanking regions
clean
If set to TRUE, flanks overlapping with other main features
will be trimmed, and overlapping flanks will be removed.
This will remove multiple counts when other features overlap
with flanks