tileGRanges: Slide windows on a given GRanges object

Description Usage Arguments Value Author(s) Examples

View source: R/tileGRanges.R

Description

tileGRanges returns a set of genomic regions by sliding the windows in a given step. Each window is called a "tile".

Usage

1
tileGRanges(targetRegions, windowSize, step, keepPartialWindow = FALSE, ...)

Arguments

targetRegions

A GRanges object of genomic regions of interest.

windowSize

Size of windows

step

Step of windows

keepPartialWindow

Keep last partial window or not.

...

Not used.

Value

A GRanges object.

Author(s)

Jianhong Ou

Examples

1
2
3
4
5
6
7
8
    genes <- GRanges(
        seqnames = c(rep("chr2L", 4), rep("chr2R", 5), rep("chr3L", 2)),
        ranges = IRanges(c(1000, 3000, 4000, 7000, 2000, 3000, 3600, 
                           4000, 7500, 5000, 5400), 
                         width=c(rep(500, 3), 600, 900, 500, 300, 900, 
                                 300, 500, 500),
                         names=letters[1:11])) 
    se <- tileGRanges(genes, windowSize=50, step=10)

LihuaJulieZhu/ChIPpeakAnno documentation built on Aug. 5, 2020, 12:02 a.m.