expandGRanges: Expands genomic ranges

View source: R/rangesTools.R

expandGRangesR Documentation

Expands genomic ranges

Description

Expands genomic ranges of a GRanges object. All ranges will be expanded at both ends by width.

Usage

expandGRanges(x, width = 2000)

Arguments

x

an object of the class GRanges.

width

an integer specifying how much to expand the ranges.

Value

Returns an expanded GRanges object.

Author(s)

Rehrauer, Hubert

Schmid, Peter

See Also

GRanges

Examples

x = GRanges(c("chr1", "chr1", "chr2"), IRanges(5000:5002, 8000:8002), strand=c("+", "-", "+"))
expandGRanges(x)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.