Tutorials › Statistical Methods for Single-Cell RNA Sequencing › Negative Controls for Detecting Overcorrection

Integration Methods and Their Benchmarking · Tutorial 195 of 700

Negative Controls for Detecting Overcorrection

Use independent biological controls to check whether integration removes signal that should have remained, while separating evidence of overcorrection from limitations of the benchmark.

Advanced 11 min read

What You'll Learn

  • Define negative-control genes for assessing preservation of stable biological structure
  • Compare a prespecified cell-state signal before and after integration
  • Use held-out labels without reusing them to fit or tune an integration
  • Measure whether known batch-invariant relationships persist across batches
  • Identify confounding, weak controls, and other limits on overcorrection claims

Why Test for Overcorrection?

An integration can reduce visible differences between batches and still be a poor result: it may also erase differences among cell states that should remain. Batch-mixing summaries do not by themselves distinguish successful batch removal from excessive removal of structure. A useful benchmark therefore asks not only whether unwanted batch signal decreased, but also whether a signal specified independently as worth preserving is still present.

This tutorial uses three forms of evidence: negative-control genes with prespecified, reproducible biological structure; cell labels withheld from fitting and tuning; and relationships among features expected to be stable across batches. These controls test different aspects of preservation. None establishes that every biological feature was retained, and none can resolve a complete confounding of batch with biology.

Definition: A negative-control gene for an integration benchmark is a gene chosen independently of the integrated result because its relevant biological pattern is expected to be stable across the batches being compared. The control should have a specified pattern worth preserving, such as a reproducible difference between cell states. “Negative control” here means that a batch-specific biological change is not expected; it does not mean that the gene must have zero expression or no biological variation.

A gene that is constant across all cells cannot show whether a cell-state pattern has been erased. Nor is a gene a suitable control merely because it is commonly called a housekeeping gene: its expression may vary by cell type, activation, or condition. Controls must be selected for the particular biological question and supported by information independent of the integration being assessed.

A Simple Model Clarifies the Target

Let \(Y_{ig}\) denote normalized expression for cell \(i\) and gene \(g\), \(S_i\) a cell-state indicator, and \(B_i\) a batch indicator. In a simple additive model for a gene, write

$$ Y_{ig}=\mu_g+\beta_g S_i+\gamma_g B_i+\varepsilon_{ig}. $$

Here \(\beta_g\) is the state-associated difference and \(\gamma_g\) the batch-associated shift, conditional on the model. This is a benchmark description, not a claim that real expression is always additive. It makes the desired behavior clear: an ideal correction removes the batch component while retaining the state component. If an integration also attenuates the state component, it has removed signal the benchmark says should remain.

Suppose, for simplicity, that an integration removes the batch shift and retains a fraction \(1-\lambda\) of the state contrast. The resulting state difference is \((1-\lambda)\beta_g\). When \(\beta_g\ne 0\), the contrast-retention ratio is therefore

$$ R_g=\frac{\Delta_{g,\mathrm{integrated}}}{\Delta_{g,\mathrm{reference}}} =\frac{(1-\lambda)\beta_g}{\beta_g}=1-\lambda. $$

A ratio near 1 indicates little attenuation of this specified contrast; a ratio near 0 indicates that little of it remains. This interpretation requires that the reference contrast be estimable and that its direction and scale be comparable before and after integration. The calculation is diagnostic, not a universal test with a universal cutoff.

A key assumption is overlap: the states being compared must be represented in the relevant batches. If state A appears only in batch 1 and state B only in batch 2, state and batch cannot be separated from these data alone. Also check that normalization, gene selection, and the definition of the integrated output make the before-and-after quantities meaningfully comparable. Integrated coordinates and adjusted expression values are different outputs; a gene-level contrast cannot simply be calculated from an embedding coordinate.

Three Complementary Controls

The strongest benchmark specifies its control set and preservation target before examining results. A control can be used to quantify a particular signal, not to certify all biology. The following approaches answer related but distinct questions.

ControlWhat it assessesMain limitation
Negative-control genesWhether prespecified gene-level patterns remainControl genes may not represent other genes or pathways
Held-out labelsWhether cell-state distinctions not used in fitting remain recoverablePerformance depends on label quality, class balance, and batch overlap
Batch-invariant relationshipsWhether prespecified feature relationships persist across batchesNoise and changes in cell composition can alter measured relationships

For held-out labels, “held out” means labels are not supplied to the integration algorithm or used to choose its parameters. They can be used afterwards to assess whether cells with different labels remain distinguishable in the integrated representation. If label-transfer accuracy is already being reported, this control adds a particular safeguard: prevent the evaluation labels from leaking into fitting or tuning, and examine performance only where labels and batches have adequate overlap. It does not replace that accuracy measure or make it independent if the same labels influenced model selection.

A batch-invariant relationship may be a reproducible correlation between two genes, a module relationship, or another prespecified association. The target is not necessarily that every batch has exactly the same noisy estimate. Instead, ask whether the relationship’s direction and approximate strength are retained after integration, and whether this conclusion is consistent across batches. A relationship can be lost even when each gene’s marginal mean appears acceptable.

Worked Example: Retention of a Negative-Control Gene Contrast

In hypothetical data, a prespecified control gene is expected to distinguish states A and B by 4 normalized-expression units in each batch. The observed state means are: batch 1, 2 for A and 6 for B; batch 2, 3 for A and 7 for B. Assume the batches contain both states and these means are calculated using the same normalization and cell inclusion rules.

Before integration, the state contrasts are \(6-2=4\) in batch 1 and \(7-3=4\) in batch 2. The equal contrasts support the stated batch-invariant target in this small example. Suppose the integrated values yield pooled means of 4.0 for A and 5.2 for B, with batch differences negligible. The integrated contrast is \(5.2-4.0=1.2\).

The retention ratio is

$$ R_g=\frac{1.2}{4.0}=0.30. $$

Thus 30% of the prespecified state contrast remains on this scale, corresponding to 70% attenuation. The small remaining batch difference is not evidence, by itself, that the integration succeeded overall: the state signal has also been substantially reduced relative to the control target. The conclusion is specific to this gene and contrast; it is not a claim that all biological structure was erased.

Worked Example: Evaluating a Held-Out Label

Consider 100 hypothetical cells with two held-out cell-state labels, balanced within each of two batches. A classifier applied after integration correctly predicts 62 labels. For comparison, a prespecified reference representation correctly predicts 90 of the same labels under the same evaluation splits. Suppose chance accuracy for this balanced two-class task is 0.50, and the labels were not used to fit or tune either representation.

Integrated accuracy is \(62/100=0.62\); reference accuracy is \(90/100=0.90\). One descriptive measure of retained performance above chance is

$$ R_{\mathrm{label}}= \frac{0.62-0.50}{0.90-0.50} =\frac{0.12}{0.40}=0.30. $$

The integrated representation retains 30% of the reference representation’s accuracy advantage over chance under this evaluation. Its accuracy is still above chance, but the drop from 0.90 to 0.62 signals substantial loss of label information relative to the reference. This ratio is not a percentage of biological truth retained: it depends on the classifier, splits, and chosen chance benchmark. Balanced evaluation within batch matters because a classifier could otherwise exploit batch composition rather than state information.

Worked Example: Preserving a Known Relationship

Suppose two control genes have a positive relationship expected to be similar across batches. In hypothetical data, their within-batch correlations before integration are 0.80 and 0.76. After integration, the corresponding correlations are 0.22 and 0.18. Assume the same cells and a consistent correlation calculation are used before and after, and both batches contain adequate variation in the genes.

The mean absolute correlation before integration is \((0.80+0.76)/2=0.78\); after integration it is \((0.22+0.18)/2=0.20\). The descriptive magnitude-retention ratio is \(0.20/0.78=0.256\), or about 26%. Both batches show attenuation, so the pattern is not driven by just one batch in these summaries.

This is evidence that the specified relationship is weakened, not proof that integration caused the change. Correlation can be affected by cell composition, restricted expression range, and measurement noise. Check those features and inspect the relationship within comparable cell populations before attributing the difference to overcorrection.

Assumptions, Diagnostics, and Alternatives

A control-based conclusion is credible only when the control has a defensible expected behavior and the evaluation is not circular. Record how controls were chosen, which labels were withheld, the exact feature relationship, the scale used, and the comparison representation. Check whether controls were selected because they looked good after integration; that selection biases the evaluation toward apparent success. Where possible, use independent evidence or data not used to fit the integration.

Useful diagnostics include comparing results by batch rather than only after pooling; checking cell counts and label overlap; examining uncertainty from resampling cells or samples; and repeating the assessment across a prespecified panel rather than relying on one favorable gene. Cell-level resampling can understate uncertainty when cells from the same donor are dependent, so resampling should respect the experimental sampling units when those units are available. A very small reference contrast makes a retention ratio unstable, while a ratio above 1 can occur through sampling variation or amplification and should not automatically be called success.

These controls complement, rather than replace, other benchmarks. Batch-mixing measures ask whether batches are less distinguishable; a high mixing score can coexist with lost state information. Label accuracy assesses recoverability of labels, while control genes provide gene-level evidence. Known relationships add a check on coordinated structure. No single summary can establish both complete batch removal and complete biological preservation. In particular, a gene-level control does not validate an entire pathway, and a held-out label does not validate unmeasured or finer-grained cell states.

A common mistake is to argue, “The batches mix well, so integration worked.” That conclusion confuses removal of batch-associated variation with preservation of biology. The correction is to report batch removal and independent preservation controls separately, then interpret their joint evidence. Another mistake is to call any decrease in a control contrast overcorrection without checking whether the contrast was reliable before integration. A weak, noisy, or confounded reference signal cannot support a strong preservation claim.

1
Specify the target.
Choose a gene pattern, held-out label, or relationship expected to remain, and state the scale and direction of the expected signal.
2
Check identifiability.
Confirm that relevant states occur across batches and that the control is sufficiently measured to estimate its target.
3
Evaluate independently.
Keep controls out of integration fitting and parameter selection; compare before and after using matched evaluation rules.
4
Interpret in combination.
Report preservation evidence alongside batch removal, uncertainty, and limitations; avoid a binary verdict from one metric.
Key takeaway: Overcorrection is best assessed against an independently specified signal that ought to persist. Negative-control genes, withheld labels, and stable relationships offer complementary checks, but their conclusions are only as credible as their assumptions, overlap, and measurement.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. Why is a gene with constant expression across all cell states a weak control for detecting loss of state structure?
  2. A control contrast is 5 units before integration and 2 units after. Calculate its retention ratio and interpret it.
  3. Why must held-out labels be excluded from both integration fitting and parameter tuning?
  4. After integration, a gene-pair correlation falls from 0.70 to 0.63 in one batch and to 0.20 in another. What should be checked before summarizing this as general relationship loss?

Solutions. 1. It has no state-related pattern to lose, so its persistence cannot demonstrate preservation of state structure. 2. The ratio is \(2/5=0.40\): 40% of the specified contrast remains on the measured scale, a 60% attenuation. 3. Using the labels in fitting or tuning makes the assessment no longer independent and can favor an integration that preserves those particular labels. 4. Check batch composition, cell-state overlap, sample sizes, expression range, and measurement uncertainty; the two batch-specific results are heterogeneous and should not be hidden by a pooled summary.

Clinical Biostats