Description Usage Arguments Value Author(s) Examples
get x scale breaks and labels for GRanges with different coordintes(currently only "truncate_gaps" and "genome" supported).
1 2 |
obj |
a |
type |
types of labels for transformed data. |
list of breaks and labels.
Tengfei Yin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(GenomicRanges)
gr1 <- GRanges("chr1", IRanges(start = c(100, 300, 600),
end = c(200, 400, 800)))
shrink.fun1 <- shrinkageFun(gaps(gr1), max.gap = maxGap(gaps(gr1), 0.15))
shrink.fun2 <- shrinkageFun(gaps(gr1), max.gap = 0)
s1 <- shrink.fun1(gr1)
getXScale(s1)
# coord:genome
set.seed(1)
gr1 <- GRanges("chr1", IRanges(start = as.integer(runif(20, 1, 100)),
width = 5))
gr2 <- GRanges("chr2", IRanges(start = as.integer(runif(20, 1, 100)),
width = 5))
gr <- c(gr1, gr2)
gr.t <- transformToGenome(gr, space.skip = 1)
getXScale(gr.t)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.