Description Usage Arguments Examples
Rangle new features out of .ranges
1 2 3 4 5 6 7 |
x |
a Ranges object |
.var |
A metadata column in |
.index |
A list of columns generated with |
.funs |
A named-list of functions that compute |
1 2 3 4 5 6 7 8 9 10 11 | suppressPackageStartupMessages(library("GenomicRanges"))
lvls <- paste0("chr", 1:23)
N <- 1e5
gr <- GRanges(
seqnames = factor(sample(lvls, N, replace = TRUE), levels = lvls),
ranges = IRanges(start = rpois(N, 10000), width = rpois(N, 100)),
grp = sample(letters[1:4], N, replace = TRUE),
score = rnbinom(N, size = 5, mu = 25)
)
rangle(gr, score, rng_vars(seqnames), list(mean = mean))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.