phyloseq
object to a TreeSummarizedExperiment
R/makeTreeSummarizedExperimentFromPhyloseq.R
makeTreeSEFromPhyloseq.Rd
makeTreeSEFromPhyloseq
converts phyloseq
objects into TreeSummarizedExperiment
objects.
makeTreeSEFromPhyloseq(x)
makeTreeSummarizedExperimentFromPhyloseq(x)
# S4 method for ANY
makeTreeSummarizedExperimentFromPhyloseq(x)
a phyloseq
object
An object of class TreeSummarizedExperiment
All data stored in a phyloseq
object is transferred.
if (requireNamespace("phyloseq")) {
data(GlobalPatterns, package="phyloseq")
makeTreeSEFromPhyloseq(GlobalPatterns)
data(enterotype, package="phyloseq")
makeTreeSEFromPhyloseq(enterotype)
data(esophagus, package="phyloseq")
makeTreeSEFromPhyloseq(esophagus)
}
#> class: TreeSummarizedExperiment
#> dim: 58 3
#> metadata(0):
#> assays(1): counts
#> rownames(58): 59_8_22 59_5_13 ... 65_9_9 59_2_6
#> rowData names(0):
#> colnames(3): B C D
#> colData names(0):
#> reducedDimNames(0):
#> mainExpName: NULL
#> altExpNames(0):
#> rowLinks: a LinkDataFrame (58 rows)
#> rowTree: 1 phylo tree(s) (58 leaves)
#> colLinks: NULL
#> colTree: NULL