View source: R/remove.nonbac.R
rm_nonbac | R Documentation |
Given an input phyloseq object with valid tax_table, returns taxonomy-filtered phyloseq object with mitochondrial, chloroplast and non-bacterial taxa removed. Non-bacterial sequences (e.g. mitochondria, chloroplast) need to be removed from OTU/ASV tables prior to statistical analyses. rm_nonbac removes all rows of otu_table and tax_table in a phyloseq object based on taxonomic labelling 'Mitochondria', 'Chloroplast' or where Kingdom is other than 'Bacteria'. NAs in taxonomy table are converted to 'unidentified'.
rm_nonbac(x)
x |
Phyloseq object with non-empty otu_table and tax_table slots; otu_table may contain either OTUs or ASVs. |
rm_nonbac()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.