View source: R/phyloseq_sep_tax.R
phyloseq_sep_tax | R Documentation |
This function splits a phyloseq object by a specified taxonomic rank, returning a list of objects whose components each correspond to a taxonomic rank.
phyloseq_sep_tax(physeq, TaxRank = "Phylum", drop_NA = FALSE)
physeq |
A phyloseq-class object |
TaxRank |
Taxonomy rank name (e.g., "Phylum") |
drop_NA |
Logical, remove ranks with NAs |
List of phyloseq objects
data(GlobalPatterns)
# Subset data
GP <- subset_taxa(GlobalPatterns, Phylum %in% c("Acidobacteria", "Actinobacteria", "Firmicutes", "Verrucomicrobia"))
phyloseq_sep_tax(GP, TaxRank = "Phylum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.