Tutorials › Multi-Omics Data Integration › Replicating Molecular Subtypes in an Independent Cohort

Case Studies · Tutorial 589 of 597

Replicating Molecular Subtypes in an Independent Cohort

Learn to distinguish recurring molecular patterns from cohort-specific labels by validating frozen subtype assignments and comparing independently discovered partitions.

Advanced 13 min read

What You'll Learn

  • Distinguish transfer of frozen subtype definitions from independent rediscovery.
  • Identify the assumptions needed for cross-cohort subtype validation.
  • Assign samples using training-cohort centroids without using validation labels.
  • Calculate and interpret the adjusted Rand index from a contingency table.
  • Diagnose apparent replication driven by assay, batch, or cohort differences.
  • Report uncertainty and limitations without equating label agreement with biological identity.

What Does It Mean for a Molecular Subtype to Replicate?

A subtype discovered by clustering is a partition of a particular cohort, not automatically a universal category. A second cohort may show similar molecular structure while giving its clusters different numeric labels; alternatively, matching labels may conceal different patterns because the same clustering procedure was applied to different assays or populations. Replication therefore requires specifying what is being replicated and how it will be evaluated.

Two complementary questions are useful. First, can a subtype definition learned in the discovery cohort be applied to independent samples, with its preprocessing and assignment rule held fixed? Second, if the validation cohort is clustered independently, does its partition agree with the transferred assignments or with the discovery structure? The first assesses transport of a particular definition; the second asks whether a similar grouping reappears without forcing the discovery labels onto the new data. Neither question alone establishes that subtypes are distinct biological entities.

Definition: A frozen subtype definition is the complete, prespecified rule for assigning a sample to a subtype, including its features, preprocessing, parameters, and decision rule, all estimated using discovery data only. Independent replication is evidence in a separate cohort that the frozen definition transports and/or that a comparable molecular partition is rediscovered, with agreement evaluated in a way that does not depend on arbitrary cluster names.

Two Validation Strategies and Their Assumptions

In frozen assignment validation, the discovery analysis produces a rule, such as subtype centroids in a specified feature space. Validation samples are processed using the prespecified compatible transformation and assigned without refitting the centroids or choosing features based on validation outcomes. This tests whether the discovery rule is usable in the new cohort. It does not by itself show that the validation cohort would have yielded the same groups under independent clustering.

In independent rediscovery, the validation cohort is clustered separately using an analysis plan fixed in advance. The resulting partition is compared with transferred subtype assignments or with another independently derived partition. Cluster numbers are arbitrary: cluster 1 in one analysis need not correspond to cluster 1 in another. Comparisons must therefore be invariant to relabeling, or explicitly match labels using a prespecified method. A label-invariant statistic such as the adjusted Rand index (ARI) is often useful.

Both strategies require independent subjects and a meaningful correspondence between measured features. Preprocessing must not use validation outcomes or labels in ways that leak information into the rule. A transferred assignment also assumes that the validation measurements can be put on the discovery scale, or that the rule explicitly accounts for platform differences. When assay panels differ, comparisons should be restricted to a justified common feature set or use a prespecified mapping; missing or noncomparable features cannot simply be treated as equivalent measurements.

Cohort and platform effects are especially important. If assay platform is nearly identical to cohort membership, a pattern attributed to subtype may instead separate technical batches or populations. The earlier material on cohort and platform confounding is relevant: statistical adjustment cannot reliably separate effects that the design does not distinguish. Validation is strongest when subtypes and technical conditions are represented across cohorts, rather than perfectly aligned with them.

Applying a Frozen Definition

Consider a discovery analysis that standardizes two molecular features using discovery-cohort means and standard deviations, then defines two subtype centroids. For a validation sample, apply those same discovery means and standard deviations and calculate its distance to each centroid. Assign the sample to the nearest centroid only if this rule was specified before examining validation results. If features, scaling, or centroids are refit using validation labels or selected to improve agreement, the result is no longer an independent test of the frozen rule.

Worked Example: Transferring a Two-Feature Subtype Rule

Suppose a hypothetical discovery cohort defines two subtypes using standardized expression values for features A and B. Discovery-standardized centroids are \(C_1=(0,0)\) and \(C_2=(2,2)\). One independent validation sample has raw values A = 14 and B = 27. Discovery means are 10 and 20, and discovery standard deviations are 2 and 3. Assume both features are measured comparably and that these scaling constants and centroids were frozen before validation.

First transform the sample using discovery, not validation, scaling: \(z_A=(14-10)/2=2\) and \(z_B=(27-20)/3=7/3\approx2.333\). The squared Euclidean distances to the centroids are

$$ d_1^2=(2-0)^2+(7/3-0)^2 =4+49/9=85/9\approx9.444, \qquad d_2^2=(2-2)^2+(7/3-2)^2 =0+1/9=0.1111. $$

The sample is assigned to subtype 2 because \(d_2^2<d_1^2\). This is one assignment, not evidence on its own that subtype 2 has replicated. A cohort-level assessment should report how many validation samples receive each assignment, whether assignments are stable to justified measurement variation, and whether the rule produces implausible out-of-discovery profiles. The nearest-centroid rule always assigns a sample unless a rejection or uncertainty rule is added; a forced assignment should not be mistaken for proof that the sample belongs to a well-supported subtype.

Comparing Partitions With the Adjusted Rand Index

A contingency table cross-classifies the same samples by two partitions. Let \(n_{ij}\) be the number assigned to group \(i\) in the first partition and group \(j\) in the second. Let \(a_i=\sum_j n_{ij}\), \(b_j=\sum_i n_{ij}\), and \(n=\sum_{ij}n_{ij}\). The quantity \(\sum_{ij}\binom{n_{ij}}{2}\) counts sample pairs placed together by both partitions; \(\sum_i\binom{a_i}{2}\) and \(\sum_j\binom{b_j}{2}\) count pairs placed together by each partition.

Definition: The adjusted Rand index is
$$ \operatorname{ARI} = \frac{ \sum_{ij}\binom{n_{ij}}{2} - \left[\sum_i\binom{a_i}{2}\sum_j\binom{b_j}{2}\right]\big/\binom{n}{2} }{ \frac{1}{2}\left[\sum_i\binom{a_i}{2}+\sum_j\binom{b_j}{2}\right] - \left[\sum_i\binom{a_i}{2}\sum_j\binom{b_j}{2}\right]\big/\binom{n}{2} }. $$

The adjustment subtracts the expected number of jointly grouped pairs under a chance model that fixes the two partitions’ group sizes and randomly allocates memberships. Thus the ARI compares observed pair agreement with chance agreement conditional on those margins. Its value is 1 for identical partitions, is near 0 on average under that chance model, and can be negative when agreement is less than expected. It is not a probability, and there is no universal cutoff that proves replication.

The justification follows by defining \(A=\sum_{ij}\binom{n_{ij}}{2}\), \(B=\sum_i\binom{a_i}{2}\), and \(C=\sum_j\binom{b_j}{2}\). Under random allocation conditional on the margins, a pair together in the first partition has probability \(C/\binom{n}{2}\) of also being together in the second, so \(E(A)=BC/\binom{n}{2}\). Subtracting this expected agreement gives the numerator. The denominator is the average of the two partitions’ total within-group pair counts, less that same expected agreement; hence identical partitions attain 1 when the denominator is nonzero. If both partitions contain only one group, the denominator is zero and the ARI is undefined, not evidence of perfect subtype recovery.

Worked Example: Calculating the ARI

In a hypothetical validation cohort of 40 samples, a transferred subtype assignment and an independent two-cluster partition produce this contingency table. Rows are transferred subtypes and columns are independently discovered clusters.

Cluster ACluster BRow total
Subtype 118220
Subtype 221820
Column total202040

The jointly grouped pair count is \(\sum_{ij}\binom{n_{ij}}{2}=2\binom{18}{2}+2\binom{2}{2}=2(153)+2(1)=308\). Each partition has \(2\binom{20}{2}=380\) within-group pairs, and \(\binom{40}{2}=780\) total pairs. Therefore,

$$ \operatorname{ARI} = \frac{308-\frac{380(380)}{780}} {380-\frac{380(380)}{780}} = \frac{308-\frac{7220}{39}}{380-\frac{7220}{39}} = \frac{4792/39}{7600/39} = \frac{599}{950} \approx 0.6305. $$

The partitions show more pair agreement than expected under the fixed-margin chance model, with an ARI of about 0.631. This is evidence of nontrivial concordance, not proof that the labels represent identical biology or that the result generalizes beyond the sampled populations and assays.

Interpreting Concordance and Diagnosing Failure

A second, easier-to-read summary is the proportion of samples whose labels agree after matching the cluster names. For two partitions, matching can be chosen to maximize the diagonal total, but this choice makes the summary optimistic on the data used to select the match. In contrast, ARI is label-invariant and adjusts for chance agreement given group sizes. It is often useful to report both, making clear how labels were matched and not presenting raw agreement as a chance-adjusted result.

Worked Example: Label Matching and Raw Agreement

A hypothetical second cohort has 50 samples. Its cross-tabulation is 22 and 5 in the first transferred subtype row, and 4 and 19 in the second row. The cluster names have no intrinsic correspondence, so match the larger diagonal, \(22+19=41\), rather than the alternative \(5+4=9\). The matched raw agreement is \(41/50=0.82\), or 82%.

This says that 41 of the 50 samples agree under the chosen one-to-one label match. It is not an ARI, and it does not account for expected chance agreement or establish that the same biology is present. A full report would give the table, the matching rule, and a chance-adjusted measure as well.

Diagnostics should examine more than a single agreement statistic. Check subtype frequencies, missingness, feature distributions, and whether transferred samples fall far outside discovery-cohort ranges. Inspect whether discordance is concentrated by site, assay platform, ancestry or other population structure, or clinical composition. Test sensitivity to reasonable preprocessing choices and to the common-feature restriction when panels differ. If the apparent concordance disappears after addressing an obvious technical separation, that weakens the replication claim.

For uncertainty, resample independent subjects rather than individual feature measurements, and recompute the complete comparison for each bootstrap sample. A bootstrap interval describes sampling variability under the resampling design; it does not account for all sources of model-selection or platform uncertainty. If subtypes were discovered and many specifications tried before one was selected, a narrow interval computed only after selection can be misleading. Keep the validation analysis prespecified and report the number and nature of the attempted comparisons.

Common Pitfalls, Alternatives, and Limits

  • Assuming the same numeric label means the same subtype. Cluster labels are arbitrary. Use a label-invariant measure or state and justify the matching rule.
  • Refitting until validation agreement looks good. This turns validation into model development. Freeze features, transformations, and assignment rules before evaluating the independent cohort.
  • Equating transfer with rediscovery. Applying a frozen classifier tests transport of that classifier; independent clustering tests whether a similar partition emerges. They answer related but distinct questions.
  • Treating technical harmonization as biological replication. A common scale is necessary for some comparisons but cannot remove perfect cohort-platform confounding or make nonoverlapping measurements interchangeable.

ARI is a strong general-purpose partition comparison, but alternatives may be useful. Adjusted mutual information is another chance-adjusted, label-invariant comparison. Matched-label agreement is intuitive when subtype correspondence is meaningful, while per-subtype sensitivity and positive predictive value can reveal poor recovery of a small subtype that a global statistic obscures. No single summary substitutes for inspecting the contingency table and subgroup-specific performance. Conclusions also depend on cohort size, subtype prevalence, assay coverage, and the stability of the discovery definition. Replication of a partition is evidence about reproducibility of structure, not causal evidence or a complete account of subtype biology.

Arithmetic pitfall: When simplifying a pair-count expression with the values \(308\), \(380\), and \(780\), the correct arithmetic is \(380^2/780=7220/39\), so \((308-380^2/780)/(380-380^2/780)=(4792/39)/(7600/39)=599/950\approx0.6305\). Recheck the expected-agreement term and both subtractions before reporting an ARI.

The central practical discipline is to define replication before looking at validation results: specify whether the target is transport of a frozen assignment rule, independent recovery of a partition, or both. Then use a comparison appropriate to that target, document assay and cohort constraints, and interpret agreement as evidence with limits rather than as a binary certificate of biological truth.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. Why can two analyses produce the same subtype partition even if one calls a group “1” and the other calls it “2”?
  2. A discovery classifier’s centroids are recomputed using validation samples before assigning them. What is lost?
  3. In the ARI example, what does the expected-agreement term \(380(380)/780\) represent?
  4. Can an ARI of 1 by itself prove that a molecular subtype is biologically real? Why or why not?
  5. Why should a validation report include subtype-specific information as well as a global agreement measure?

Solutions. (1) Numeric cluster labels are arbitrary; only the memberships matter. (2) The rule is no longer frozen, so the validation cohort has influenced the assignment definition and the analysis is not a clean transport test. (3) It is the expected number of jointly grouped pairs under random allocation conditional on both partitions’ group sizes. (4) No. It indicates identical partitions for the compared samples, but does not establish biological identity, causal meaning, or generalizability. (5) A global summary can hide failure to recover a small or clinically important subtype.

Clinical Biostats