Skip to contents

For each cell type (condition), gathers all pairwise contrast effect sizes and standard errors involving that cell, then runs a DerSimonian–Laird random-effects meta-analysis per condition. Intended to be run on the output of fit_mash_contrast.

Usage

meta_analysis_per_cell(effect_sizes, se_values, se_cutoff = 0)

Arguments

effect_sizes

Numeric matrix (features x conditions) of contrast effect sizes. Column names must follow the pattern mean_contrast_<cellA>_vs_<cellB>.

se_values

Numeric matrix (features x conditions) of contrast standard errors. Must have the same dimensions and column names as effect_sizes.

se_cutoff

Numeric; minimum SE below which a condition is excluded from the meta-analysis for a given feature (default 0).

Value

A tibble with columns:

cell

Cell type name.

condition

Original pairwise contrast name (without prefix).

meta_pvalue

P-value from the random-effects meta-analysis.

meta_effect

Pooled absolute effect size estimate.

meta_se

Standard error of the pooled estimate.

tau2

Between-study variance estimate.

I2

Heterogeneity measure (proportion of variance due to between-study variance), in [0, 1].