Description Usage Arguments Author(s) Examples
Given a set of chromosomes, tile the genome for a set of bin sizes.
1 | createTiles(seqlengths, gaps, binSize = c(1000, 10000, 1e+05))
|
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. |
Leonardo Collado-Torres
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.