Learn R Programming

genomation (version 1.4.2)

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

Value

  • GRanges object for flanking regions

Examples

Run this code
data(cpgi)
cpgi.flanks = getFlanks(cpgi)
head(cpgi.flanks)

Run the code above in your browser using DataLab