View source: R/metaphlan_to_phyloseq.R
metaphlan_to_phyloseq | R Documentation |
Given the profiles' location, or a pre-loaded table, the function creates a taxonomic table and creates a phyloseq object. if metadata and phylogenetic tree are available, it will try to include those
metaphlan_to_phyloseq( mpa, metadata = NULL, version = 4, verbose = TRUE, tax_lvl = "Species" )
mpa |
Either a |
metadata |
If in possession, add metadata to the phyloseq object. make sure the name and order of samples is correct for the mpa columns and metadata rows |
version |
the metaphlan version, by default, version 4 is taken (to date it is the latest - Apr 2022). Versions below 3 are not supported |
verbose |
|
tax_lvl |
|
A phyloseq
object
data("metaphlanData") meta_physeq <- metaphlan_to_phyloseq <- function(metaphlanData, metadata = NULL, phyloTree = NULL, version = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.