View source: R/phy_alpha_div_into_phy_metadata.R
phy_alpha_div_into_phy_metadata | R Documentation |
This function takes a phyloseq object, passes it throuh the 'estimate_richness' function in 'phyloseq' and returns the phyloseq object containing alpha diversity estimates as "alpha_[diversity_name]"
phy_alpha_div_into_phy_metadata(
physeq,
raref_depth = NULL,
measures,
verbose = FALSE
)
physeq |
a 'phyloseq' object |
raref_depth |
the number of minimum reads to rarefy by |
measures |
the alpha diversity measures, as implemented by the 'phyloseq::estimate_richness' function |
verbose |
if 'TRUE', will tell you what it is doing, in particular in the rarefaction step |
a 'phyloseq' object with the alpha diversity estimates added to the metadata
data(GlobalPatterns)
phy_alpha_div_into_phy_metadata(GlobalPatterns,
raref_depth = 5000,
measures = c("Shannon", "Simpson"),
verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.