Gene-expression signatures that predict cancer recurrence after surgery are almost always built by pooling several hospital cohorts. Before pooling, analysts remove "batch effects", the technical shifts that come from different labs, chips and protocols. The standard tool, ComBat, assumes each gene shifts by one amount per cohort. But a tumor sample is a mixture of cancer cells, stroma and immune cells. Cohorts differ systematically in that mixture, because surgical sampling and tumor-purity cutoffs differ by site. A per-gene shift therefore mixes two things. One is real biology: cohort A's tumors carry more stroma. The other is technology: cohort A's platform reads stromal genes differently. Correcting the whole bulk profile can erase the first and leave much of the second.
We propose to estimate each sample's cell-type proportions first and then model batch effects separately for each cell type within each cohort. The corrected data feed a two-stage meta-analysis of recurrence risk, in which proportions serve both as covariates and as explanations for differences between cohorts. The claim is testable. If part of the between-cohort disagreement in recurrence hazard ratios is a composition artifact, this model should shrink that disagreement and improve prediction on held-out cohorts compared with ComBat. It should also beat ComBat when cell proportions are simply added as protected covariates.
Core Claim and What Is New
The closest prior work is Integrated Analysis of Multiple Microarray Datasets Identifies a Reproducible Survival Predictor in Ovarian Cancer. It merged four post-debulking ovarian cohorts with whole-profile ComBat and derived a 19-gene survival signature. That signature validated externally, but its multivariate hazard ratios ranged from 1.59 to 2.47 across cohorts. This spread is exactly the between-cohort heterogeneity we want to explain. That study never resolved cell composition.
Deconvolution methods do resolve composition, but they work inside one cohort against a fixed single-cell reference. CSsingle corrects cell-size bias and down-weights platform-discordant genes. POPPY maps bulk profiles into single-cell atlas space. Count Bridges deconvolves integer counts. None of the three pools survival risk across cohorts. inVAE separates biological from technical variation, but only for single-cell data.
The new element is a harmonization model in which the batch term is indexed by cohort and cell type, rather than by cohort alone. We then judge it by a meta-analytic criterion: how much it reduces heterogeneity in post-surgical recurrence hazard ratios. Write $x_{gi}$ for the expression of gene $g$ in sample $i$ on a linear (non-log) scale. Write $\pi_{ik}$ for the estimated fraction of cell type $k$ in that sample, $\mu_{gk}$ for the shared profile of cell type $k$, and $c(i)$ for the sample's cohort. The model is
$$ x_{gi} = \sum_k \pi_{ik}\,\big(\mu_{gk} + \gamma_{g k c(i)}\big) + \varepsilon_{gi}, \qquad \gamma_{gkc} \sim \mathcal{N}(\bar\gamma_{kc}, \tau^2_{kc}), $$
Here $\gamma_{gkc}$ is the technical shift of gene $g$ in cell type $k$ within cohort $c$. Each shift is shrunk toward a common value for its (cell type, cohort) pair, using the same cross-gene empirical-Bayes pooling that makes ComBat stable when there are far more genes than samples. Harmonization sets $\gamma$ to zero and keeps $\pi_{ik}$.
Two consequences follow. Cohort-level differences in mean composition survive correction. And a platform that distorts, say, fibroblast genes is corrected only in proportion to each sample's fibroblast content. Ordinary ComBat is the special case where $\gamma_{gkc}$ does not depend on $k$.
Separating $\gamma$ from $\pi$ requires composition to vary within each cohort. Tumor purity normally does vary within a cohort. We will check this per cohort and report cohorts where the cell-type-specific terms cannot be distinguished from one another.
Research Program
Fractions are estimated before harmonization with CSsingle, whose iteratively reweighted fitting already down-weights genes that disagree across platforms. The reference is the matching tumor type from the Curated Cancer Cell Atlas (3CA; 2.7 million cells, 15 cancer types, as used by POPPY). We then alternate between fitting $\gamma$ given $\pi$ and re-deconvolving the harmonized data, and we monitor whether the loop drifts.
The meta-analysis is two-stage. Within each cohort we fit a Cox proportional-hazards model of recurrence-free survival on the signature score, with and without cell fractions and clinical stage. We pool the log hazard ratios with random effects and report the variance between cohorts, $\tau^2$, and $I^2$, the share of total variation due to real between-cohort differences rather than chance. A meta-regression on cohort-mean composition then tests whether composition explains the remaining heterogeneity. This applies the diagnostic logic that Accuracy of rapid point-of-care antigen-based diagnostics for SARS-CoV-2 used to show viral load drove sensitivity differences.
Signatures are rebuilt inside the harmonized space under strict leave-one-cohort-out cross-validation. We use the supervised-PCA recipe of Konstantinopoulos et al. for ovarian cancer and the 21-gene stem-cell program of Construction of a Prognostic Model based on CSC-related Genes in Patients with Colorectal Cancer for colorectal cancer.
Three settings form the application regime. The first is the ovarian post-debulking cohorts. The second is colorectal cancer, using TCGA plus GSE39582 and GSE41258, where recurrence or progression endpoints are annotated. The third is hepatocellular carcinoma: TCGA-LIHC links bulk expression to the image-based immune scores of Tan et al., which gives an independent check that the deconvolved lymphocyte fractions are sensible.
The ovarian endpoint is overall survival after surgery, not recurrence. We treat it as a secondary endpoint and do not pass it off as recurrence.
Baselines
The naive reference is no harmonization. Each cohort's signature score is standardized within that cohort and evaluated on its own. Where a pooled model is trained, it is trained on raw merged data.
The main competitor is whole-profile ComBat followed by signature derivation, the exact pipeline of Konstantinopoulos et al. Its reported numbers are multivariate hazard ratios of 1.59 to 2.47, and median overall survival of 43 versus 61 months between risk groups in GSE9899 (p = 0.013). The colorectal comparison is the 21-gene stem-cell signature. It reports time-dependent AUCs of 0.64, 0.70 and 0.67 at 1, 3 and 5 years. We found no leave-one-cohort-out concordance index (C-index, the probability that the model ranks two patients' recurrence times correctly) for ComBat-pooled bulk signatures on Lacuna, so we will compute it ourselves.
Two further baselines also receive the same data, the same deconvolution outputs, the same signature-construction code and the same cross-validated choice of signature size:
- Cluster ComBat. From Distributed Harmonization, it groups sites in parameter space and generalizes to unseen sites. It reported lower downstream error than ComBat on 18-site ADNI MRI data.
- Clinical-only Cox model. It represents the "tabular ceiling" documented in Deep Neural Networks for Predicting Recurrence and Survival in Patients with Esophageal Cancer After Surgery, where DeepSurv reached a C-index of 0.740 with only marginal gains over linear Cox regression.
The key ablation isolates the cell-type index on $\gamma$. It is ComBat with the deconvolved fractions passed as protected biological covariates. This preserves composition but keeps one batch shift per gene per cohort.
Our method counts as beating ComBat if it meets all three of the following conditions:
- It lowers pooled $I^2$ on held-out cohorts.
- It raises the leave-one-cohort-out C-index by more than the bootstrap 95% interval.
- It does both relative to the covariate-protected ablation, not only relative to plain ComBat.
Why not just…?
Why not just pass the cell fractions to ComBat as covariates? This is the most serious threat. It already prevents ComBat from erasing composition differences between cohorts. What it cannot capture is a platform whose distortion depends on which cell type expresses a gene. The ablation above settles the question directly.
In a semi-synthetic test we build pseudo-bulk mixtures from 3CA cells, using the Kassandra sorted-cell profiles as a second source. We control the compositions, plant shifts that are either uniform across cell types or specific to one cell type, and plant a known recurrence hazard. If covariate-protected ComBat matches our model on real cohorts, we will report it. The finding would then be "protect composition when harmonizing," which is cheaper, and we would recommend that instead.
Why not just skip pooling and meta-analyze within-cohort hazard ratios? Two-stage random-effects meta-analysis of scores standardized within each cohort sidesteps additive batch effects entirely. Its weakness is that it yields no single model with an absolute risk threshold that can be applied at a new hospital. It also leaves composition-driven heterogeneity unexplained. It is our naive baseline. If its $\tau^2$ already equals ours, harmonization adds nothing for inference, and we would say so.
Why not just use deconvolved fractions directly as the predictor? An immune-infiltration score alone carried much of the signal in Tan et al. We therefore include a fractions-only Cox model. If the gene-level signature adds nothing on top of it, cell-type-specific harmonization matters only insofar as it improves the fractions themselves. We would then evaluate that improvement directly against the image-based lymphocyte scores in TCGA-LIHC.
Decisive Checks
The first check is semi-synthetic recovery. When the planted shift is specific to one cell type, our model should recover the planted hazard ratio with less bias than both ComBat variants. When the planted shift is uniform, it should not be worse.
The second check is on real cohorts, in a fixed order of evidence. The primary result is whether held-out-cohort $I^2$ and C-index favor our model over the covariate-protected ablation. Secondary evidence is whether the meta-regression on mean composition loses explanatory power after our correction. That loss would indicate that the correction has absorbed the composition artifact.
The third check guards against over-correction. In TCGA-LIHC, harmonized lymphocyte fractions must stay at least as correlated with image-derived infiltration as the uncorrected fractions. A model that improves $I^2$ while degrading that correlation would be removing biology, and we would count it as a failure.
References
- Integrated Analysis of Multiple Microarray Datasets Identifies a Reproducible Survival Predictor in Ovarian Cancer
- CSsingle: A Unified Tool for Robust Decomposition of Bulk and Spatial Transcriptomic Data Across Diverse Single-Cell References
- Cross-modal transfer learning for mapping bulk transcriptomes at cellular level
- Count Bridges enable Modeling and Deconvolving Transcriptomic Data
- Conditionally Invariant Representation Learning for Disentangling Cellular Heterogeneity
- Accuracy of rapid point-of-care antigen-based diagnostics for SARS-CoV-2: An updated systematic review and meta-analysis with meta-regression analyzing influencing factors
- Construction of a Prognostic Model based on CSC-related Genes in Patients with Colorectal Cancer
- Novel immune classification based on machine learning of pathological images predicts early recurrence of hepatocellular carcinoma
- Distributed Harmonization: Federated Clustered Batch Effect Adjustment and Generalization
- Deep Neural Networks for Predicting Recurrence and Survival in Patients with Esophageal Cancer After Surgery