Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Meta-analysis

A single study often finds differences that others do not reproduce: of the genes called differentially expressed in Alzheimer’s disease in one dataset, over 85% were not reproduced in any of 16 others Nakatsuka et al., 2025. A meta-analysis combines the estimates of several studies into one, weighs each by its precision, and measures how much the studies disagree. meta_analysis does it for every gene at once, as metafor’s rma.uni does for one effect without moderators Viechtbauer, 2010, and differential_expression_meta_analysis does it for the results of limma_voom or limma_trend on several cubes, matched by cell type, contrast and gene id. meta_analysis returns a MetaAnalysisFit, and differential_expression_meta_analysis a MetaAnalysisResult, with a table for every cell type and contrast (MetaAnalysisResult.table).

The model

Study ii estimates a gene’s effect by yiy_i, with a standard error sis_i whose square, viv_i, is taken as known. In the random-effects model the true effects of the studies vary around a mean μ\mu with the between-study variance τ2\tau^2 DerSimonian & Laird, 1986:

yi=μ+ui+ei,ui∼N(0,τ2),ei∼N(0,vi).y_i = \mu + u_i + e_i, \qquad u_i \sim N(0, \tau^2), \qquad e_i \sim N(0, v_i).

With the weights wi=1/(vi+τ2)w_i = 1 / (v_i + \tau^2), μ^=∑wiyi/∑wi\hat\mu = \sum w_i y_i / \sum w_i with standard error 1/∑wi1 / \sqrt{\sum w_i}. The fixed-effect model, one true effect for every study, is the case τ2=0\tau^2 = 0: the inverse-variance weighted mean.

The between-study variance

Tests and heterogeneity

The default z-test refers μ^/SE\hat\mu / \mathrm{SE} to the normal distribution. test="knapp_hartung" multiplies the standard error by q\sqrt{q}, with q=∑wi(yi−μ^)2/(k−1)q = \sum w_i (y_i - \hat\mu)^2 / (k - 1), and uses a t distribution on k−1k - 1 degrees of freedom Hartung, 1999Sidik & Jonkman, 2002Knapp & Hartung, 2003, which metafor’s documentation recommends for few studies.

Cochran’s Q=∑(yi−μ^fixed)2/viQ = \sum (y_i - \hat\mu_{\text{fixed}})^2 / v_i tests whether the studies agree Cochran, 1954. I2I^2 is the share of the variation that comes from heterogeneity rather than sampling error, and H2H^2 the ratio of the total to the sampling variance Higgins & Thompson, 2002; CytePool reports I2I^2 as a proportion, where metafor reports a percentage.

Genes that some studies did not measure

NaN marks a study that did not measure or test a gene. Each gene is analysed over the studies that measured it; differential_expression_meta_analysis analyses a gene tested by at least min_studies studies (two by default, since one study says nothing about τ2\tau^2). It takes limma’s moderated standard errors as the known sampling errors.

Limits

The studies are taken as independent, with known sampling variances. Meta-regression on study-level covariates, multivariate meta-analysis of correlated effects, and shrinkage across conditions such as mash Urbut et al., 2019 are not implemented.

References
  1. Nakatsuka, N., Adler, D., Jiang, L., Hartman, A., Cheng, E., Klann, E., & Satija, R. (2025). Improving reproducibility of differentially expressed genes in single-cell transcriptomic studies of neurodegenerative diseases through meta-analysis. Nature Communications, 16(1), 7436. 10.1038/s41467-025-62579-z
  2. Viechtbauer, W. (2010). Conducting meta-analyses in R with the metafor package. Journal of Statistical Software, 36(3), 1–48. 10.18637/jss.v036.i03
  3. DerSimonian, R., & Laird, N. (1986). Meta-analysis in clinical trials. Controlled Clinical Trials, 7(3), 177–188. 10.1016/0197-2456(86)90046-2
  4. Viechtbauer, W. (2005). Bias and efficiency of meta-analytic variance estimators in the random-effects model. Journal of Educational and Behavioral Statistics, 30(3), 261–293. 10.3102/10769986030003261
  5. Paule, R. C., & Mandel, J. (1982). Consensus values and weighting factors. Journal of Research of the National Bureau of Standards, 87(5), 377–385. 10.6028/jres.087.022
  6. Hartung, J. (1999). An alternative method for meta-analysis. Biometrical Journal, 41(8), 901–916. https://doi.org/10.1002/(SICI)1521-4036(199912)41:8%3C901::AID-BIMJ901%3E3.0.CO;2-W
  7. Sidik, K., & Jonkman, J. N. (2002). A simple confidence interval for meta-analysis. Statistics in Medicine, 21(21), 3153–3159. 10.1002/sim.1262
  8. Knapp, G., & Hartung, J. (2003). Improved tests for a random effects meta-regression with a single covariate. Statistics in Medicine, 22(17), 2693–2710. 10.1002/sim.1482
  9. Cochran, W. G. (1954). The combination of estimates from different experiments. Biometrics, 10(1), 101–129. 10.2307/3001666
  10. Higgins, J. P. T., & Thompson, S. G. (2002). Quantifying heterogeneity in a meta-analysis. Statistics in Medicine, 21(11), 1539–1558. 10.1002/sim.1186
  11. Urbut, S. M., Wang, G., Carbonetto, P., & Stephens, M. (2019). Flexible statistical methods for estimating and testing effects in genomic studies with multiple conditions. Nature Genetics, 51(1), 187–195. 10.1038/s41588-018-0268-8