getFlanks {genomation} | R Documentation |
Function to get upstream and downstream adjecent regions to a genomic feature such as CpG islands
getFlanks(grange,flank=2000,clean=TRUE) ## S4 method for signature 'GRanges' getFlanks(grange, flank = 2000, clean = TRUE)
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 |
GRanges object for flanking regions
data(cpgi) cpgi.flanks = getFlanks(cpgi) head(cpgi.flanks)