Tutorials › Multi-Omics Data Integration › A Diagnostic Workflow For Reproducible Subtypes

Stability of Discovered Subgroups · Tutorial 506 of 597

A Diagnostic Workflow For Reproducible Subtypes

Learn to combine complementary stability evidence in a prespecified diagnostic workflow and make reproducibility claims that reflect both the evidence and its limitations.

Advanced 12 min read

What You'll Learn

  • Define the target subtype and perturbations before evaluating stability.
  • Interpret partition agreement and cluster recurrence as distinct evidence.
  • Use resampling assignment frequencies to identify uncertain memberships.
  • Assess whether subtype-defining features recur with consistent direction.
  • Combine evidence with sensitivity checks using explicit decision gates.
  • Distinguish internal stability evidence from claims requiring external evidence.

Why Stability Needs a Workflow

A subtype can look convincing under one summary and fragile under another. Two analyses may produce similar overall partitions while disagreeing about a small, clinically important subgroup; a cluster may recur often but contain different samples each time; or its membership may persist while its defining features change with preprocessing. A reproducibility judgment therefore needs to combine evidence about the partition, the particular subtype, its members, its features, and the analysis choices.

The goal here is a disciplined decision process, not a universal stability cutoff. The earlier material on end-to-end stability, individual subgroups, uncertain membership, influential samples, and subtype-defining features supplies the relevant diagnostics. The workflow makes their roles explicit: define what must reproduce, evaluate complementary evidence, investigate disagreements, and limit the final claim to what the analysis actually assessed. Stability under internal perturbations is not, by itself, evidence that a subtype reproduces in an independent population.

Definition: A stability assessment compares a specified reference subtype or partition with results obtained under defined perturbations, such as resampling participants, changing a plausible pipeline choice, or rerunning an algorithm with a different initialization. A reproducibility claim should state which object is stable, under which perturbations, in which data, and with what observed limitations.

Specify the Target and the Evidence Before Looking

Start by naming the object whose stability matters. It may be the full \(K\)-group partition, one focal subtype, a set of samples assigned to that subtype, or a feature pattern used to characterize it. These are related but not interchangeable targets. For example, an overall partition score can conceal instability in a small subgroup. State the cohort or analysis data, the reference fit, the resampling or sensitivity designs, and the intended use of the subtype. Do not choose a favorable perturbation or metric after seeing the results.

Let \(z_i^{(0)}\) denote the reference assignment of sample \(i\), and \(z_i^{(b)}\) its assignment in perturbed fit \(b\), when sample \(i\) is present in that fit. Cluster labels are arbitrary: label 1 in one fit need not correspond to label 1 in another. Comparisons therefore require label-invariant partition measures or an explicit matching rule for a focal cluster. For a cluster-specific comparison, document how clusters are matched and what minimum overlap or similarity qualifies as a match. A fit with no credible counterpart should be recorded as a non-match, not silently omitted.

A defensible workflow also checks that the perturbations preserve the question being asked. Resampling should respect relevant design features such as cohort or batch when the sampling design calls for it. Sensitivity settings should be plausible alternatives, not deliberately extreme choices used to make the result fail. The preprocessing and feature universe must be comparable enough for the intended comparison. If a perturbation changes the target itself, explain that change rather than treating its output as a direct replicate of the original target.

Read the Evidence as Complementary Diagnostics

Partition agreement summarizes how similar two complete partitions are. One common label-invariant measure is the adjusted Rand index (ARI). Given a contingency table with cell counts \(n_{ij}\), row totals \(a_i\), column totals \(b_j\), and \(N\) samples, define \(S=\sum_{ij}\binom{n_{ij}}{2}\), \(R=\sum_i\binom{a_i}{2}\), \(C=\sum_j\binom{b_j}{2}\), and \(T=\binom{N}{2}\). Then

$$ \operatorname{ARI}= \frac{S-\frac{RC}{T}} {\frac{1}{2}(R+C)-\frac{RC}{T}}. $$

The adjustment subtracts the expected pair agreement under a generalized chance model with the table margins fixed. ARI is 1 for identical partitions and is near 0 for agreement at the chance-adjusted baseline; negative values are possible. It is a whole-partition summary, not a direct measure of whether a particular small subtype recurs.

Cluster recurrence asks whether the focal subtype has a counterpart across perturbed fits. For reference member set \(A\) and matched set \(B\), the Jaccard similarity is \(|A\cap B|/|A\cup B|\). Recurrence can be summarized as the proportion of eligible fits in which the subtype is matched under a prespecified matching rule. Report the similarity distribution as well as the recurrence proportion: a simple count of matches discards how closely members agree.

Sample uncertainty concerns whether individual members retain their assignments. For a sample appearing in \(B_i\) perturbed fits, its assignment frequency to the focal subtype is the number of those fits assigning it to that subtype divided by \(B_i\), after label alignment. Frequencies near 0 or 1 indicate consistent exclusion or inclusion in the specified perturbations; intermediate frequencies flag uncertain membership. These are empirical perturbation frequencies, not automatically calibrated probabilities that a sample truly belongs to a biological class.

Feature consistency asks whether the same features support the subtype across fits. Relevant summaries can include selection frequency and, for signed effects or contrasts, the frequency with which the direction agrees with the reference. A feature that appears often but changes direction is not consistent evidence for a stable directional signature. The feature set, direction convention, and comparison scale should be specified before interpreting these summaries.

Finally, sensitivity checks examine whether conclusions survive plausible changes in the analysis, such as preprocessing choices, feature filtering, or algorithm settings. Keep these results distinct from resampling results: the first probes dependence on analysis choices, while the second probes dependence on sampled observations under its resampling design.

Worked Example: Interpreting Whole-Partition Agreement

Consider eight hypothetical samples and two partitions. Their contingency table is

Perturbed group 1Perturbed group 2Reference total
Reference group 1314
Reference group 2134
Perturbed total448

There are six agreeing within-cell pairs, so \(S=\binom{3}{2}+\binom{1}{2}+\binom{1}{2}+\binom{3}{2}=6\). Each partition has \(R=C=\binom{4}{2}+\binom{4}{2}=12\), and \(T=\binom{8}{2}=28\). Substitution gives

$$ \operatorname{ARI} =\frac{6-(12\times12/28)}{12-(12\times12/28)} =\frac{6-5.1429}{12-5.1429} =0.125. $$

The partitions have modest adjusted pair agreement, despite matching six of the eight sample labels after alignment. This example illustrates why raw agreement and a chance-adjusted summary are not the same. It does not establish whether any one subtype recurs; that requires a cluster-specific comparison.

A Decision Workflow With Explicit Gates

Use the evidence in sequence, and keep both favorable and unfavorable findings visible. A strong result on one dimension should not automatically compensate for a failure on another dimension that is essential to the scientific claim.

1
Define the claim.
Name the focal subtype or partition, the data and population analyzed, the perturbations evaluated, and the minimum evidence needed for the intended interpretation.
2
Check whether comparisons are valid.
Verify that fits are comparable, sample presence is tracked, and label alignment or cluster matching is specified. Record unmatched fits and missing assignments.
3
Assess global agreement and focal recurrence.
Summarize partition agreement, then separately report whether the target subtype has a counterpart and how similar its membership is. Investigate disagreement between these summaries.
4
Inspect members and defining features.
Identify samples with intermediate assignment frequencies and assess whether the feature pattern recurs with consistent selection and direction. Do not let ambiguous boundary cases disappear inside a single score.
5
Stress-test plausible choices.
Compare the target under prespecified sensitivity settings. Record which conclusions persist, which change, and whether a change concerns the partition, focal membership, or feature interpretation.
6
Make a calibrated conclusion.
Describe the strongest supported level of stability and its limits. If a key diagnostic conflicts with the claim, narrow the claim or report the subtype as unresolved rather than averaging the conflict away.

Worked Decisions

Worked Example: Calculating Cluster Recurrence

A hypothetical focal subtype is compared with a matched cluster in 20 eligible resampled fits. Before analysis, the team specifies that a match requires Jaccard similarity of at least 0.60. Fifteen fits meet that rule; five have no qualifying counterpart. The recurrence proportion is

$$ \widehat{R}=\frac{15}{20}=0.75. $$

Thus, the focal subtype recurs under the specified matching rule in 75% of eligible fits. The five non-matches remain in the denominator because the question is whether a counterpart recurs across all eligible fits. The conclusion is conditional on this resampling design and the prespecified 0.60 rule; it is not a probability that the subtype is real. A fuller report would also give the Jaccard values for the matched fits, since 0.61 and 0.95 both count as matches but indicate different degrees of member overlap.

Worked Example: Locating Uncertain Membership

In 10 hypothetical resampled fits, sample A is assigned to a focal subtype in 9 fits, sample B in 6 fits, and sample C in 2 fits. Their assignment frequencies are

$$ f_A=\frac{9}{10}=0.90,\qquad f_B=\frac{6}{10}=0.60,\qquad f_C=\frac{2}{10}=0.20. $$

Sample A is consistently included under these perturbations, sample C is usually excluded, and sample B has uncertain membership relative to the focal subtype. The appropriate conclusion is not that B has a 60% probability of biological membership. Rather, 60% of the specified fits assigned B to this subtype. If B lies near a decision boundary or is influential, that may motivate targeted diagnostics, but the frequency alone does not explain why its assignment varies.

Worked Example: Combining Conflicting Evidence

Suppose a hypothetical analysis of 40 samples reports the following: median ARI across resamples is 0.78; a focal subtype is matched in 18 of 20 fits, with median Jaccard similarity 0.82 among those matches; three focal members have assignment frequencies of 0.90, 0.85, and 0.45; and five of six prespecified subtype features recur with the reference direction in at least 80% of fits. A plausible alternative preprocessing choice preserves the full partition reasonably well but reduces the focal subtype’s median Jaccard similarity to 0.58 and reverses two of its feature directions.

The arithmetic for recurrence is \(18/20=0.90\), or 90% of fits meeting the stated matching rule. The evidence supports internal recurrence under the resampling design, and most of the focal members and features appear consistent there. However, the one sample with frequency 0.45 has uncertain membership, and the focal membership and feature interpretation are sensitive to the alternative preprocessing choice. A calibrated conclusion is that the subtype is recurrent under resampling but its membership and biological characterization are not robust to all plausible analysis choices. Calling the entire subtype reproducible without this qualification would overstate the evidence.

Justification, Diagnostics, and Limits

The workflow is deliberately not a weighted average of stability scores. The reason is that its components answer different questions. A global partition statistic aggregates pair relationships across the full sample, whereas recurrence concerns a chosen cluster. Membership frequencies concern particular samples, and feature consistency concerns the subtype’s characterization. A favorable value on one scale cannot logically establish a favorable result on another.

This separation also gives a practical diagnostic: when evidence disagrees, locate the level of disagreement before summarizing. High global agreement with poor focal recurrence can arise when other clusters are stable but the focal group is not. High recurrence with a few intermediate assignment frequencies suggests a stable core with an uncertain boundary. Stable membership with changing feature directions suggests that the group’s identity is less secure than its partition label. Sensitivity failures indicate dependence on analysis choices even if resampling results look favorable.

Interpretation depends on the design. Resampling should reflect the sampling structure and the intended source of uncertainty; treating dependent observations as independent can make recurrence appear more precise than warranted. Cluster matching rules must be meaningful for the target, and results can depend on those rules. Feature consistency can also be misleading if the feature set or direction convention was chosen after inspecting the same results. State these choices, show the relevant distributions or counts, and avoid presenting a cutoff as universally valid.

A stability workflow has further limits. It measures robustness to the perturbations actually examined, not to every conceivable data collection or modeling change. A highly stable partition can still lack biological meaning, and internal stability evidence does not establish transport to a new cohort. The appropriate output is therefore a bounded statement: what persisted, under which checks, which samples or features were uncertain, and what was not evaluated.

Common Mistakes

  • Using one score as a verdict. A high global agreement statistic does not establish recurrence of every individual subtype. Report global and focal evidence separately.
  • Dropping non-matches. Removing fits without a counterpart inflates the apparent recurrence among remaining fits. Define eligibility in advance and report unmatched fits.
  • Calling resampling frequencies probabilities of truth. They describe assignments across the specified perturbations, not calibrated biological membership probabilities.
  • Ignoring a sensitivity failure because resampling looked strong. Resampling and analysis-choice checks probe different sources of variation. Report both and narrow the claim if an essential result changes.
  • Claiming external reproducibility from internal stability. Internal perturbations assess robustness within the analyzed data and design. They do not establish performance in independent data.

Check Your Understanding

Answer each question, then compare your reasoning with the brief solutions.

  1. A partition has high ARI across resamples, but the focal rare subtype often has no matched counterpart. What should the report conclude?
  2. A subtype is matched in 12 of 16 eligible fits under a prespecified rule. Calculate its recurrence proportion.
  3. A sample is assigned to a subtype in 4 of 10 perturbation fits. What does this frequency mean, and what does it not mean?
  4. Membership is stable under resampling, but two defining features reverse direction under a plausible preprocessing choice. What evidence is in conflict?
  5. Why should unmatched fits remain in the recurrence denominator when recurrence across all eligible fits is the target?

Solutions. (1) Report strong whole-partition agreement but weak or inconsistent recurrence of the focal subtype; the global score cannot substitute for focal evidence. (2) \(12/16=0.75\), so the subtype meets the matching rule in 75% of eligible fits. (3) Four of the specified fits assigned that sample to the subtype; this is not a 40% probability that the sample biologically belongs to it. (4) Membership robustness and feature-identity robustness differ: the group recurs, but its feature characterization is sensitive. Report the conflict and qualify the characterization. (5) A fit without a counterpart is a failure of recurrence under the stated target and rule; excluding it would overstate the proportion of eligible fits in which recurrence occurred.

Clinical Biostats