Community Methods

A machine-readable knowledge base of statistical and computational methods. Each entry is a Method Card: what a method can do, under what conditions, and how. Verified cards become available to the statLens Agent, and their authors are cited whenever they are used.

5
Published
5
Verified
0
In review
← All methods
statLens Method Card

MaAsLin2: multivariable association discovery for microbiome and meta-omics

v1.26.0STATLENS VERIFIED

Finds associations between microbial features (taxa, genes, pathways) and clinical or environmental metadata. It fits a linear or generalized linear model to each feature, with built-in normalization, transformation and filtering, and random effects for repeated sampling.

Category
Regression / mixed models
Analysis task
Association, Differential analysis
Study designs
Cross-sectional, Case-control, Cohort, Longitudinal, Repeated measure, Multi-centre
Contributor
statLens team
Submitted
09 Nov 2026
Source
AI-drafted from the paper and package documentation; pending expert review

Scientific questions this method addresses

Which microbial taxa are associated with disease status after adjusting for age, sex and medication?
Which features are associated with a continuous exposure in a longitudinal cohort with repeated samples per subject?
Which pathways differ between groups in metagenomic or metatranscriptomic profiles?

Statistical specification

\log_2(y_{ij}) = \beta_0 + x_{ij}^\top \beta + b_i + \varepsilon_{ij}
Model family
Per-feature linear or generalized linear (mixed) model; default is a linear model on log-transformed, total-sum-scaled abundances
Distribution
Gaussian
Link
Identity
Estimand
Per-feature coefficient for each metadata variable; H₀: β_k = 0
Multiple testing
Benjamini–Hochberg FDR
Assumptions
Default pipeline: total-sum scaling, log transform, linear model; zeros are replaced before the log; Random effects capture correlation within subject or site; Features are tested independently; compositional effects are not modelled explicitly; Rare features are removed by prevalence and abundance filters
Sample size
Best suited to tens to thousands of samples

Best used when

Population-scale microbiome studies with many covariates
Longitudinal or repeated sampling, with a subject random effect
Metadata mixing continuous and categorical variables

Do not use when

The question needs absolute-abundance or explicitly compositional inference (consider ANCOM-BC or ALDEx2)
The sample size is very small relative to the number of covariates
Confirmatory work relies on the default q-value threshold of 0.25, which is lenient; set a stricter threshold

Relationships

Typed edges to other Method Cards. These are what let statLens assemble multi-step workflows rather than single methods.

supersedesMaAsLinAdds more models, normalizations and random effects
alternative_toANCOM-BCCorrects for sampling-fraction bias to target absolute abundance changes
alternative_toALDEx2Compositional approach using centred log-ratio transforms and Dirichlet sampling
validated_againstDESeq2Benchmarked against RNA-seq and microbiome methods in the MaAsLin2 paper

Outputs

Mapped to the statLens standard statistical result, plus method-specific fields.

Standard fields
feature_idestimatestandard_errorp_valueadjusted_p_valuen
Method-specific
metadatavalueN.not.zero
Implementation
Distribution
R package (Bioconductor)
Package
Maaslin2 1.26.0
Dependencies
R (>= 3.6)
Repository
https://bioconductor.org/packages/Maaslin2/
License
MIT
DOI
10.1371/journal.pcbi.1009442
Paper
Multivariable association discovery in population-scale meta-omics studies, PLoS Computational Biology 17(11):e1009442, 2021
Citation

Multivariable association discovery in population-scale meta-omics studies, PLoS Computational Biology 17(11):e1009442, 2021

doi:10.1371/journal.pcbi.1009442
Lifecycle
Draft
Submitted
Automated validation
Expert review
Verified
Published
Eligible for Model Selection