getFlanks {genomation} | R Documentation

## 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)

    ## S4 method for signature '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

### Value

GRanges object for flanking regions

### Examples

    data(cpgi)
    cpgi.flanks = getFlanks(cpgi)
    head(cpgi.flanks)

[Package genomation version 1.12.0 Index]