Tutorials › Statistical Methods for Single-Cell RNA Sequencing › External Validation of Differential-Abundance Findings

Differential Abundance and Compositional Effects · Tutorial 559 of 700

External Validation of Differential-Abundance Findings

Learn a practical framework for external validation that checks whether an independently estimated donor-level abundance effect is comparable in meaning, direction, and magnitude to the discovery result.

Advanced 11 min read

What You'll Learn

  • Define the target abundance effect and its denominator consistently across cohorts.
  • Estimate group differences from donor-level proportions and interpret their units.
  • Compare independent effect estimates using their difference and standard error.
  • Distinguish an inconclusive validation result from evidence that effects disagree.
  • Identify annotation, sampling, and population differences that can undermine validation.
  • Explain why matching significance labels alone is not a replication criterion.

What External Validation Is Intended to Establish

A differential-abundance result is useful only if its meaning can be carried beyond the data in which it was first found. External validation evaluates a prespecified finding in a separate cohort whose donors were not used to discover or select that finding. The question is not simply whether the second analysis produces another small p-value. It is whether the same cell population, comparison, denominator, and effect scale yield a suitably compatible estimate in independent data.

The unit of replication is the donor, not the individual cell. Cells from one donor share biological and technical features, so treating thousands of cells as independent evidence can make uncertainty appear much smaller than it is. For a donor-level proportion analysis, first calculate the proportion for each donor, then estimate the group contrast across donors. The resulting effect describes a difference in observed proportions; it does not by itself establish a difference in absolute cell number. This distinction is central to interpreting relative abundance versus absolute cell number.

Definition: External validation of a differential-abundance finding is an assessment, in an independent cohort, of a prespecified abundance effect for a harmonized cell population and comparison. A meaningful validation compares effect estimates and their uncertainty on the same scale and for the same denominator; repeated statistical significance alone is not the definition of replication.

Before analyzing the validation cohort, specify the cell type, the condition contrast, the population of donors to which the result is intended to apply, the denominator, and the effect measure. For example, an effect might be the case-minus-control difference in the proportion of a defined T-cell subtype among all captured immune cells. A difference in percentage points is not interchangeable with a fold change or a log-ratio effect. Whichever scale was prespecified should be used in both cohorts.

Estimating a Donor-Level Effect

Suppose each donor \(i\) has a count \(Y_i\) of cells assigned to the target type and a count \(N_i\) in the chosen denominator. The observed donor-level proportion is \(q_i=Y_i/N_i\). For a simple two-group comparison, let \(\bar{q}_1\) and \(\bar{q}_0\) be the sample mean donor proportions in cases and controls. The estimated case-minus-control effect is \(\hat{\theta}=\bar{q}_1-\bar{q}_0\), measured in proportion units. Multiplying by 100 expresses the same effect in percentage points.

This simple estimate is appropriate when donors are independent, each donor contributes one relevant profile, and the target comparison is not distorted by unaccounted-for design differences. A t-based interval additionally relies on donor-level proportions being reasonably well behaved for the sample size, without extreme influential observations; with very small samples, the approximation may be fragile. If the analysis uses covariate adjustment or a model suited to proportions, its adjusted estimate and standard error can be used instead, provided the estimand and effect scale remain comparable across cohorts.

$$ \hat{\theta}=\bar{q}_1-\bar{q}_0,\qquad SE(\hat{\theta})= \sqrt{\frac{s_1^2}{n_1}+\frac{s_0^2}{n_0}} $$

Here \(s_1\) and \(s_0\) are the sample standard deviations of donor proportions in the two groups, and \(n_1\) and \(n_0\) are their donor counts. The displayed standard error is the independent-groups Welch standard error. It does not treat cells as independent observations. A confidence interval for the effect quantifies sampling uncertainty under the analysis assumptions; it is not a probability statement about whether a fixed parameter lies in the realized interval.

Worked Example: Estimate the Discovery-Cohort Effect

Suppose a hypothetical discovery cohort has five control donors with target-cell proportions \(0.08, 0.10, 0.09, 0.11, 0.12\), and five case donors with proportions \(0.12, 0.14, 0.15, 0.13, 0.16\). Each proportion uses the same prespecified denominator: all captured immune cells for that donor.

The control mean is \(\bar{q}_0=(0.08+0.10+0.09+0.11+0.12)/5=0.10\). The case mean is \(\bar{q}_1=(0.12+0.14+0.15+0.13+0.16)/5=0.14\). Thus the estimated effect is \(\hat{\theta}=0.14-0.10=0.04\), or 4 percentage points higher in cases.

In both groups the sum of squared deviations from the group mean is \(0.001\), so each sample variance is \(0.001/(5-1)=0.00025\) and each sample standard deviation is \(\sqrt{0.00025}=0.01581\). The standard error is \(SE=\sqrt{0.00025/5+0.00025/5}=\sqrt{0.0001}=0.010\). With \(df=8\), a two-sided 95% t interval uses \(t^*=2.306\): \(0.04\pm 2.306(0.010)=(0.0169,0.0631)\).

Under the independent-donor and approximate t-inference assumptions, the interval runs from about 1.69 to 6.31 percentage points. This describes the discovery estimate’s uncertainty. It does not guarantee that a new cohort will produce a statistically significant result.

Comparing the Discovery and Validation Estimates

Let \(\hat{\theta}_D\) denote the discovery estimate and \(\hat{\theta}_V\) the estimate from an independent validation cohort. The direct comparison is their difference, \(\hat{\Delta}=\hat{\theta}_V-\hat{\theta}_D\). If the estimates are independent and their standard errors are estimated on the same scale, the standard error of this difference is the square root of the sum of their variances. A confidence interval for \(\Delta\) helps assess the size of disagreement compatible with the data.

$$ SE(\hat{\Delta})=\sqrt{SE(\hat{\theta}_V)^2+SE(\hat{\theta}_D)^2}, \qquad \hat{\Delta}\ \pm\ 1.96\,SE(\hat{\Delta}) $$

The 1.96 multiplier gives an approximate two-sided 95% interval when the difference is approximately normal. A t-based or model-based interval may be preferable when sample sizes are small or the estimates come from a more complex analysis. Independence matters: if cohorts overlap, or if estimates share data, their covariance must be accounted for rather than using the independent-estimates formula.

A confidence interval for the difference that includes zero says the data do not clearly distinguish the two effects at that confidence level. It does not prove the effects are equal. To claim that effects are sufficiently close for a particular scientific purpose, investigators need a prespecified acceptable difference, such as a margin of \(\pm 0.02\) in proportion units, and an interval-based equivalence assessment. The margin must be justified in context; it cannot be chosen after seeing the validation result.

Worked Example: A Nonsignificant Validation Result Can Still Be Compatible

Suppose the discovery analysis estimates a case-minus-control effect of \(0.040\) with \(SE=0.010\). In a separate hypothetical cohort, the estimate is \(0.030\) with \(SE=0.020\). The validation estimate is smaller, but it has the same direction.

The difference is \(\hat{\Delta}=0.030-0.040=-0.010\). Its standard error is \(SE(\hat{\Delta})=\sqrt{0.020^2+0.010^2}=\sqrt{0.0005}=0.02236\). The approximate 95% interval is \(-0.010\pm1.96(0.02236)=(-0.0538,0.0338)\). A z statistic for testing a zero difference is \(-0.010/0.02236=-0.447\), giving a two-sided p-value of approximately \(0.655\).

This comparison does not show clear evidence that the two effects differ. It also does not establish that they are equal: the interval allows both a moderately smaller and a moderately larger validation effect. The validation estimate’s own approximate 95% interval is \(0.030\pm1.96(0.020)=(-0.0092,0.0692)\), which includes zero. Therefore, a nonsignificant validation test does not by itself contradict the discovery result; the effect estimate and its uncertainty are more informative than the significance label.

Align the Biological and Statistical Targets

A comparison is interpretable only if both cohorts estimate the same target. “The same cell type” requires more than matching labels in two analysis files. Check the marker evidence, annotation rules, and resolution used to define the population. If one cohort labels a broad parent population while the other separates its subtypes, the corresponding proportions need not represent the same biological quantity. When annotations cannot be harmonized confidently, report the uncertainty and avoid presenting the numerical comparison as direct validation.

The denominator must also match. A proportion among all captured cells, among immune cells, or among a specific lineage answers a different question. Even with an identical numerator label, changing the denominator changes the estimand. In addition, differences in tissue processing, capture, or cell recovery may change observed proportions. A matched observed-proportion effect is evidence about those measured proportions, not automatically about tissue abundance in absolute terms.

Finally, compare like with like in study design. Confirm that the direction of the contrast is consistent (for example, case minus control in both cohorts), that covariates and adjustments support a comparable target, and that the relevant donor populations are sufficiently similar for the intended generalization. If a substantial cohort difference is scientifically expected, report cohort-specific effects rather than treating a discrepancy as a simple technical failure.

Worked Example: A Denominator Change Is Not a Failed Replication

Suppose a hypothetical discovery analysis defines the target as the proportion of a cell type among immune cells. Its case donors have 120 target cells among 600 immune cells, or \(120/600=0.20\); control donors have 80 among 600, or \(80/600=0.1333\). The observed case-minus-control contrast is \(0.20-0.1333=0.0667\), or 6.67 percentage points.

Now suppose a validation report instead uses all captured cells as the denominator. In its data, cases have 150 target cells among 1,000 captured cells, or \(0.15\), and controls have 100 among 1,000, or \(0.10\). That contrast is \(0.15-0.10=0.05\), or 5 percentage points. It is tempting to call this a smaller replicated effect. But the discovery quantity is a proportion among immune cells, while the validation quantity is a proportion among all captured cells. They are different estimands.

If the validation cohort can also identify its immune-cell denominator, and has 150 target cells among 750 immune cells in cases and 100 among 750 in controls, its immune-denominator contrast is \(150/750-100/750=0.20-0.1333=0.0667\). This matches the discovery contrast in this hypothetical calculation. The comparison becomes meaningful only after harmonizing the denominator; the numerical match alone does not address sampling uncertainty.

Diagnostics, Alternatives, and Common Pitfalls

Before interpreting a validation comparison, inspect donor-level proportions and group summaries in each cohort. Look for extreme donors, strong skew, unusually large differences in donor counts, and patterns suggesting that a few donors drive the group contrast. Check that each donor contributes once to the analysis and that missing profiles or inconsistent filtering have not changed the denominator. Review estimates and intervals for all prespecified cell types, not only the one with the most favorable validation result. If many candidates are explored in the validation cohort, multiplicity and selection affect how confirmatory the resulting evidence is.

External validation is not the only way to assess reproducibility. Internal resampling or cross-validation can assess stability within the discovery data, but it does not provide an independent cohort check. A joint analysis that combines cohorts can estimate an overall effect, but by itself may obscure cohort-specific disagreement. Reporting each cohort’s estimate and uncertainty alongside any combined summary makes that disagreement visible. When cohort estimates are not comparable because of different definitions or target populations, a combined estimate is not a remedy.

  • Wrong reasoning: “The discovery result has \(p<0.05\), and the validation result has \(p>0.05\), so the effect failed to replicate.” Correction: Compare the effect estimates and uncertainty. A less precise validation estimate may be compatible with the discovery effect even when its own test is nonsignificant.
  • Wrong reasoning: “Both cohorts are significant, so the effects agree.” Correction: Significance in both cohorts does not show that their magnitudes are similar; directly examine the difference and its interval.
  • Wrong reasoning: “The cell-type labels match, so the proportions are comparable.” Correction: Check annotation rules, cell-type resolution, denominator, contrast direction, and adjustment before comparing estimates.
Key takeaway: A strong external validation argument is built from an independent cohort, a harmonized biological and statistical target, and a comparison of effect estimates with uncertainty. Matching p-value thresholds is neither necessary nor sufficient to establish that effects replicate.

Check Your Understanding

Answer each question using the definitions and comparisons above.

  1. Why is the donor, rather than each captured cell, the replication unit for a donor-level proportion comparison?
  2. The discovery estimate is \(0.05\) and the validation estimate is \(0.02\). What additional information is needed before deciding whether the estimates differ meaningfully?
  3. Can a validation estimate with a confidence interval including zero be compatible with a positive discovery estimate? Explain.
  4. Why is a proportion among all captured cells not automatically comparable to a proportion among immune cells?

Solutions. (1) Cells from one donor are not independent biological replicates; treating them as independent can understate uncertainty. The donor-level analysis preserves the donor as the independent unit. (2) At minimum, compare the standard errors or confidence intervals, calculate the difference and its uncertainty, and verify that both estimates use the same effect scale, cell definition, denominator, and contrast. A scientific tolerance is also needed to judge whether any difference is practically important. (3) Yes. An interval including zero indicates uncertainty about the validation effect; it may still include the discovery effect. The estimates and the interval for their difference are needed to assess compatibility. (4) The denominators define different proportions and therefore different estimands. Align the eligible cells in each denominator before interpreting a difference as validation.

Clinical Biostats