gr.tile: Tile ranges across 'GRanges'

gr.tileR Documentation

Tile ranges across GRanges

Description

Tiles interval (or whole genome) with segments of <= specified width.

Usage

gr.tile(gr, width = 1000)

Arguments

gr

GRanges, seqlengths or Seqinfo range to tile. If has GRanges has overlaps, will reduce first.

width

integer Width of each tile (default = 1e3)

Value

GRanges with tiled intervals

Examples


## 10 tiles of width 10
gr1 <- gr.tile(GRanges(1, IRanges(1,100)), width=10)

## make them overlap each other by 5
gr1 + 5


mskilab/gUtils documentation built on June 6, 2023, 12:08 a.m.