createTiles: Create genome tiles for different bin sizes

Description Usage Arguments Author(s) Examples

View source: R/createTiles.R

Description

Given a set of chromosomes, tile the genome for a set of bin sizes.

Usage

1
createTiles(seqlengths, gaps, binSize = c(1000, 10000, 1e+05))

Arguments

seqlengths

See tileGenome.

gaps

A GRanges object with the set of gaps to remove from consideration.

binSize

A vector with the length of the bins to use.

Author(s)

Leonardo Collado-Torres

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Create some input ranges
library('GenomicRanges')

## Get chr lengths
data(hg19Ideogram, package = 'biovizBase', envir = environment())
seqlengths <- seqlengths(hg19Ideogram)[c("chr1", "chrX")]

## Define some gaps to remove from tiling
gaps <- GRanges(c('chr1', 'chrX'), IRanges(c(2e8, 1e8), width = 1e6))

## Create the tiles
tiles <- createTiles(seqlengths, gaps, binSize = c(1e4, 1e5))
tiles

leekgroup/enrichedRanges documentation built on July 28, 2018, 11:37 p.m.