Skip to content
MATRIX-Research-LabPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

AMMA

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:

  1. 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);
  2. 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;
  3. 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.

Installation

if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}
BiocManager::install("AMMA")

Example

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages