View source: R/physeq_rm_na_tax.R
phyloseq_rm_na_tax | R Documentation |
Remove unused taxonomy levels from phyloseq-object.
phyloseq_rm_na_tax(physeq)
physeq |
A phyloseq-class object |
This function is particularly useful after tax_glom
.
'phyloseq_rm_na_tax' will remove columns filled with NA values from the taxonomy table of phyloseq object.
Phyloseq object.
tax_table
data(GlobalPatterns)
gp <- tax_glom(GlobalPatterns, taxrank="Family") # 7 taxonomic ranks
head(tax_table(gp)) # last columns are filled with NAs
# Remove taxonomic levels filled with NAs
gp2 <- phyloseq_rm_na_tax(gp) # 5 taxonomic ranks
head(tax_table(gp2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.