AMMA tests whether the association between an exposure and an outcome is mediated by the taxa of a microbiome count table. Each taxon is represented by two parts, its abundance when present and its presence, and the analysis reports the (taxon, part) pairs for which both the exposure-mediator and the mediator-outcome associations meet the Step-3 reporting rule. Continuous, binary, ordinal and count outcomes are supported.
The procedure has three steps:
- a censored two-part model with a sample-specific bias is fitted to every taxon, and the pairs with the strongest exposure association form the tested family (the outcome is not used);
- the two parts of every tested taxon are reconstructed from their conditional distribution given the observed counts, and a de-sparsified lasso gives an outcome-side p-value for every tested pair;
- the pairs whose exposure-side p-value is at most the level are retained, and the Benjamini-Hochberg procedure is applied to their outcome-side p-values. This is an exploratory reporting rule: the adjusted values are outcome-side only, and the rule does not generally control the false discovery rate over the full mediation null at the chosen level.
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
BiocManager::install("AMMA")library(AMMA)
data(ammaExample)
fit <- amma(ammaExample, exposure = "exposure", outcome = "outcome",
covariates = c("X1", "X2"), outcome_type = "gaussian", seed = 1L)
fit
reportedPairs(fit)The vignette (vignette("AMMA")) describes the method, the output and the
options in detail.