extendGRanges: Extend a GRanges object

extendGRangesR Documentation

Extend a GRanges object

Description

Extend(shrink) ranges of a GRanges object.

Usage

extendGRanges(OGREDataSet, name, upstream = 0, downstream = 0)

Arguments

OGREDataSet

An OGREDataSet

name

character Name of the GRanges object for extending

upstream

int (positive or negative number)

downstream

int (positive or negative number)

Value

OGREDataSet

Examples

myOGRE <- makeExampleOGREDataSet()
myOGRE <- loadAnnotations(myOGRE)
#extend range by shifting start 100 bp in upstream direction
myOGRE <- extendGRanges(myOGRE,"genes",upstream=100)
#shrinking range by shifting end 100 bp in upstream direction
myOGRE <- extendGRanges(myOGRE,"genes",downstream=-100)
#shrinking range by shifting from both sides to the center
myOGRE <- extendGRanges(myOGRE,"genes",upstream=-10,downstream=-10)

svenbioinf/OGRE documentation built on Jan. 30, 2023, 10:55 p.m.