checkFilterEffect | R Documentation |
Check Filter Effect
checkAbundanceCutOffs(x, abundance_thres = NULL, prevalence_thres = NULL)
checkPrevalenceCutOffs(x, abundance_thres = NULL, prevalence_thres = NULL)
x |
|
abundance_thres |
If using 'checkAbundanceCutOffs', can have multiple numeric values like c(0.1, 0.01, 0.001, 0.0001). If using 'checkPrevalenceCutOffs', a single value. |
prevalence_thres |
If using 'checkPrevalenceCutOffs', can have multiple numeric values like c(0.05, 0.1, 0.15, 0.2). If using 'checkAbundanceCutOffs', a single value. |
Investigate effect of abundance and prevalence thresholds on taxa numbers.
checkAbundanceCutOffs
check how many taxa are lost at different
abundance thresholds.
checkPrevalenceCutOffs
check how many taxa are lost at different
prevalence thresholds.
A tibble
Sudarshan A. Shetty
Shetty SA (2020). Utilities for microbiome analytics. https://github.com/microsud/biomeUtils
library(biomeUtils)
library(microbiome)
data("FuentesIliGutData")
ps.rel <- microbiome::transform(FuentesIliGutData, "compositional")
ab.check <- checkAbundanceCutOffs(ps.rel,
abundance_thres = c(0.0001, 0.001, 0.01, 0.1),
prevalence_thres = 0.1)
ab.check
pv.check <- checkPrevalenceCutOffs(ps.rel,
abundance_thres = 0.01,
prevalence_thres = c(0.05, 0.1, 0.15, 0.2))
pv.check
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.