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 estimates a gene’s effect by , with a standard error whose square, , is taken as known. In the random-effects model the true effects of the studies vary around a mean with the between-study variance DerSimonian & Laird, 1986:
With the weights , with standard error . The fixed-effect model, one true effect for every study, is the case : the inverse-variance weighted mean.
The between-study variance¶
"reml", metafor’s default: the restricted maximum likelihood estimate Viechtbauer, 2005. Where the restricted likelihood has two maxima, as when an imprecise study lies far from precise ones that agree, CytePool takes the larger one; metafor’s Fisher scoring can stop at the smaller one."dl": DerSimonian and Laird’s method of moments, with ."pm": Paule and Mandel’s estimate Paule & Mandel, 1982, at which the generalized Q statistic equals its expectation ."fixed": .
Tests and heterogeneity¶
The default z-test refers to the normal distribution.
test="knapp_hartung" multiplies the standard error by , with
, and uses a t distribution on degrees
of freedom Hartung, 1999Sidik & Jonkman, 2002Knapp & Hartung, 2003, which metafor’s documentation
recommends for few studies.
Cochran’s tests whether the studies agree Cochran, 1954. is the share of the variation that comes from heterogeneity rather than sampling error, and the ratio of the total to the sampling variance Higgins & Thompson, 2002; CytePool reports 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 ). 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.
- 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
- 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
- DerSimonian, R., & Laird, N. (1986). Meta-analysis in clinical trials. Controlled Clinical Trials, 7(3), 177–188. 10.1016/0197-2456(86)90046-2
- 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
- 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
- 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
- Sidik, K., & Jonkman, J. N. (2002). A simple confidence interval for meta-analysis. Statistics in Medicine, 21(21), 3153–3159. 10.1002/sim.1262
- 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
- Cochran, W. G. (1954). The combination of estimates from different experiments. Biometrics, 10(1), 101–129. 10.2307/3001666
- 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
- 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