getFlanks-methods: Function to get upstream and downstream adjecent regions to a...

Description Usage Arguments Value Examples

Description

Function to get upstream and downstream adjecent regions to a genomic feature such as CpG islands

Usage

1
2
3
4
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

1
2
3
data(cpgi)
cpgi.flanks = getFlanks(cpgi)
head(cpgi.flanks)

BIMSBbioinfo/genomation documentation built on Feb. 4, 2018, 12:11 p.m.