removeZeros | R Documentation |
Remove Zeros
removeZeros(x)
x |
A phyloseq object or a data.frame with only numerical or matrix |
In phyloseq based analysis, prune_samples or subset_samples does not remove taxa that have zero abundances in remaining samples. In such cases user may want to exclude these taxa.
If input is phyloseq, returns phyloseq with taxa that have zeros in all samples. If input is matrix or data frame, returned object is without rows and cloumns that sum to zero.
Sudarshan A. Shetty
library(biomeUtils)
data("FuentesIliGutData")
ps1 <- subset_samples(FuentesIliGutData, ILI != "L2")
ps1
ps2 <- removeZeros(ps1)
ps2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.