View source: R/getGenomicTiles.R
getGenomicTiles | R Documentation |
Get sequential, potentially annotated regions of a fixed lengths (tiles) along chromosomes of a genome.
getGenomicTiles(
genome,
tileWidth,
hasOverlap = list(),
fracOverlap = list(),
numOverlap = list(),
nearest = list(),
addSeqComp = TRUE
)
genome |
The genome to work on. Either a |
tileWidth |
|
hasOverlap , fracOverlap , numOverlap , nearest |
Named |
addSeqComp |
|
The last tile in each chromosome is dropped if it would be shorter
than tileWidth
. Generated tiles are unstranded (*
) and
therefore overlaps or searching for nearest neighbors are ignoring
strands of annotations (ignore.strand=TRUE
).
A GRanges
object with genome tiling regions.
Optional tile annotations are contained in its metadata columns (mcols
).
Michael Stadler
tileGenome
and annotateRegions
used by getGenomicTiles
internally.
library(GenomicRanges)
tss <- GRanges("chr1", IRanges(c(1, 10, 30), width = 1,
names = paste0("t", 1:3)))
blacklist <- GRanges("chr1", IRanges(20, width = 5))
getGenomicTiles(c(chr1 = 45, chr2 = 12), tileWidth = 10,
hasOverlap = list(Blacklist = blacklist),
fracOverlap = list(Blacklist = blacklist),
numOverlap = list(TSS = tss),
nearest = list(TSS = tss))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.