leafSummarizedExperiment-constructor: Construct a leafSummarizedExperiment object

Description Usage Arguments Value Author(s) See Also Examples

Description

leafSummarizedExperiment is the constructor of the leafSummarizedExperiment class.

Usage

1

Arguments

tree

A phylo object.

...

For SummarizedExperiment, S4 methods list and matrix, arguments identical to those of the SimpleList method.

For rowRanges, ignored.

Value

A leafSummarizedExperiment object

Author(s)

Ruizhu HUANG

See Also

leafSummarizedExperiment-class treeSummarizedExperiment-class SummarizedExperiment-class

Examples

 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)

markrobinsonuzh/treeAGG documentation built on May 26, 2019, 9:32 a.m.