tileGRanges {ChIPpeakAnno} | R Documentation

## Slide windows on a given GRanges object

### Description

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

### Usage

    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

        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)

[Package ChIPpeakAnno version 3.12.7 Index]