makePhyloseqFromTreeSE | R Documentation |
This function creates a phyloseq object from a TreeSummarizedExperiment
object. By using assay.type
, it is possible to specify which table
from assay
is added to the phyloseq object.
makePhyloseqFromTreeSE(x, ...)
## S4 method for signature 'SummarizedExperiment'
makePhyloseqFromTreeSE(x, assay.type = "counts", assay_name = NULL, ...)
## S4 method for signature 'TreeSummarizedExperiment'
makePhyloseqFromTreeSE(x, tree_name = "phylo", ...)
makePhyloseqFromTreeSummarizedExperiment(x, ...)
## S4 method for signature 'ANY'
makePhyloseqFromTreeSummarizedExperiment(x, ...)
x |
a |
... |
additional arguments |
assay.type |
A single character value for selecting the
|
assay_name |
a single |
tree_name |
a single |
makePhyloseqFromTreeSE
is used for creating a
phyloseq object from TreeSummarizedExperiment object.
An object of class Phyloseq
object.
Leo Lahti and Tuomas Borman. Contact: microbiome.github.io
# Get tse object
data(GlobalPatterns)
tse <- GlobalPatterns
# Create a phyloseq object from it
phy <- makePhyloseqFromTreeSE(tse)
phy
# By default the chosen table is counts, but if there are other tables,
# they can be chosen with assay.type.
# Counts relative abundances table
tse <- transformAssay(tse, method = "relabundance")
phy2 <- makePhyloseqFromTreeSE(tse, assay.type = "relabundance")
phy2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.