Description Usage Arguments Value Author(s) See Also Examples
leafSummarizedExperiment
is the constructor of the
leafSummarizedExperiment class.
1 | leafSummarizedExperiment(tree, ...)
|
tree |
A phylo object. |
... |
For For |
A leafSummarizedExperiment object
Ruizhu HUANG
leafSummarizedExperiment-class
treeSummarizedExperiment-class
SummarizedExperiment-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # tree
data("tinyTree")
# the count table
count <- matrix(rpois(100, 50), nrow = 10)
rownames(count) <- c(tinyTree$tip.label)
colnames(count) <- paste("C_", 1:10, sep = "_")
# the sample information
sampC <- data.frame(condition = rep(c("control", "trt"),
each = 5),
gender = sample(x = 1:2, size = 10,
replace = TRUE))
rownames(sampC) <- colnames(count)
# build a leafSummarizedExperiment object
lse <- leafSummarizedExperiment(tree = tinyTree,
assays = list(count),
colData = sampC)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.