Description Usage Arguments Value Author(s) See Also Examples
treeSummarizedExperiment
constructs a treeSummarizedExperiment object.
1 2 |
tree |
A phylo object |
linkData |
A data frame or
|
message |
A logical value. Defaut is FALSE. If TRUE, the running process is given. |
... |
For For |
a treeSummarizedExperiment object
Ruizhu HUANG
treeSummarizedExperiment-class
treeSummarizedExperiment-accessor
leafSummarizedExperiment-class
SummarizedExperiment-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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 treeSummarizedExperiment object
tse <- treeSummarizedExperiment(tree = tinyTree,
assays = list(count),
colData = sampC)
# if there are data to be put in the linkData
tax <- data.frame(family = rep(LETTERS[1:2], each = 5))
tax$nodeLab <- tinyTree$tip.label
ntse <- treeSummarizedExperiment(tree = tinyTree,
assays = list(count),
colData = sampC,
linkData = tax)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.