Why Evaluate Modules in a Second Cohort?
A module found in one cohort is a data-dependent grouping of genes whose expression patterns support a particular network structure in that cohort. A second cohort offers a test of whether the grouping carries beyond the data that produced it. This is not a single yes-or-no question: the same genes might remain connected but change their relative connectivity, or their connectivity ordering might remain similar even as overall network density declines.
A useful comparison therefore separates membership preservation—whether the same genes belong together—from topological preservation—whether those genes retain similar within-module connectivity patterns. Neither alone establishes that a module has the same biological function or that cohort differences caused any observed network change.
Set Up a Comparable Cohort Assessment
Before calculating preservation, verify that genes are aligned by identifier and that the expression measurements are sufficiently comparable for the intended network comparison. Construct the reference and test networks using a consistent definition of association, network type, and adjacency transformation. For example, if the reference uses a signed weighted adjacency, using an unsigned adjacency in the test cohort changes what counts as connectivity. The test cohort must also have enough observations and gene-level variation to estimate associations meaningfully.
The reference module labels should remain fixed for the primary preservation assessment. Calculate test-cohort network properties for the genes in each reference module, regardless of how the test cohort's own clustering would label those genes. Detecting test-cohort modules independently can provide a separate membership-overlap comparison, but it answers a different question.
For a weighted adjacency matrix, the within-module connectivity of gene \(i\) in module \(M\) can be written as the sum of its adjacency weights to other genes in \(M\). A normalized version may divide by the number of possible connections. The precise definition should be kept consistent across cohorts. Since absolute connectivity depends on network construction and scale, also compare relative patterns, such as connectivity ranks or module-membership scores. Module membership (often called \(kME\)) is the correlation between a gene's expression profile and its module eigengene; compare these scores across cohorts with attention to the arbitrary sign of a principal-component eigengene.
Worked Example: Connectivity Ordering and Overall Level
Suppose four genes in a reference module have within-module connectivity values of 0.90, 0.80, 0.60, and 0.40 in the reference cohort. In the test cohort, the same genes have values of 0.80, 0.70, 0.50, and 0.30, respectively. Treat these as hypothetical, comparable adjacency-based summaries.
The reference mean connectivity is
The test mean connectivity is
Thus, the test mean is lower by \(0.675-0.575=0.100\) adjacency units. However, the gene ordering is identical in the two cohorts: the first gene has the highest connectivity, followed by the second, third, and fourth. The Spearman rank correlation is therefore 1.000. The example shows why connectivity ordering and overall connectivity level should not be conflated: the rank pattern is exactly preserved, while connectivity is uniformly lower in the test cohort.
Membership Overlap and Connectivity Patterns
When modules are detected separately in both cohorts, membership overlap can be summarized using set measures. For reference module \(A\) and test module \(B\), the Jaccard index is the number of shared genes divided by the number of genes in their union. It ranges from 0 (no shared genes) to 1 (identical sets). The reference coverage, \(|A\cap B|/|A|\), asks what fraction of the reference genes appear in the test module; the test coverage, \(|A\cap B|/|B|\), asks what fraction of the test module comes from the reference module. These distinguish loss of reference genes from addition of genes not in the reference set.
Membership measures do not assess network topology. For topology, compare quantities calculated for the fixed reference genes: for example, the correlation of their within-module connectivity values, the correlation of their connectivity ranks, or the correlation of their module-membership scores. Also summarize shifts in the distribution or mean of connectivity. A strong correlation can coexist with a change in mean or scale, as the preceding example demonstrates.
Worked Example: Measuring Gene-Set Overlap
Suppose a reference module \(A\) contains 50 genes, and a test-cohort module \(B\) contains 45 genes. They share 36 genes. The union contains \(50+45-36=59\) genes, so the Jaccard index is
The reference coverage is \(36/50=0.720\): 72.0% of the reference module appears in this test module. The test coverage is \(36/45=0.800\): 80.0% of the test module comes from the reference set. These values describe substantial but incomplete overlap. They do not show whether the shared genes are connected similarly in the two cohorts; that requires a topology comparison.
Permutation-Based Preservation Summaries
A common approach compares the observed preservation statistics for a module with those for random gene sets of the same size in the test network. The random sets provide a benchmark for how much preservation-like structure might occur without selecting the particular reference module. For a statistic oriented so that larger values indicate stronger preservation, a standardized score can be calculated as
where \(T_{\mathrm{obs}}\) is the observed statistic for the reference module, \(\overline{T}_{\mathrm{perm}}\) is the mean statistic over permuted gene sets, and \(s_{\mathrm{perm}}\) is their standard deviation. In WGCNA-style analyses, separate standardized components can summarize density preservation and connectivity preservation; a commonly used \(Z_{\mathrm{summary}}\) combines those components by addition. The exact component statistics depend on the implementation, so their definitions and direction should be reported.
The standardization has a direct justification: subtracting the permutation mean centers the observed statistic relative to the benchmark, and dividing by the permutation standard deviation expresses the difference in units of permutation variability. This makes statistics on different raw scales easier to summarize. It does not by itself guarantee that the standardized statistic follows a normal distribution or that its value has a particular false-positive rate.
Worked Example: Calculating a Standardized Preservation Component
For a hypothetical module, suppose an observed density-preservation statistic is 0.42. Across randomized gene sets of the same size, the statistic has mean 0.20 and standard deviation 0.05. Then
Suppose the corresponding connectivity-preservation statistic is 0.31, compared with a permutation mean of 0.15 and standard deviation 0.04. Then
Under the additive convention, \(Z_{\mathrm{summary}}=4.40+4.00=8.40\). This falls in the commonly used 2-to-10 heuristic range for weak-to-moderate preservation evidence. It is not an 8.4-standard-deviation test statistic for a conventional null hypothesis, nor a p-value. The component results suggest that both measured features exceed their random-set benchmarks, but they do not establish identical networks.
A complementary summary is the medianRank of preservation statistics across modules. For each statistic, modules are ranked relative to one another; the ranks for a module are then summarized by their median. A lower median rank indicates stronger relative preservation among the modules included in that comparison. Unlike a standardized score, it is not a measure of distance from a random-set mean. It is useful when preservation scores are on different scales or have different variability, but it is relative to the particular set of modules being ranked: adding or removing modules can change the ranks.
Comparing Approaches and Checking Assumptions
| Approach | What it summarizes | Main limitation |
|---|---|---|
| Jaccard index or coverage | Overlap when modules are assigned independently in both cohorts | Does not measure connectivity among shared genes |
| Connectivity correlation or rank correlation | Similarity in gene-by-gene connectivity pattern for a fixed gene set | Can remain high when absolute connectivity changes |
| Density and connectivity summaries | Changes in overall within-module connection level and connectivity pattern | Can depend on network scale and construction choices |
| \(Z_{\mathrm{summary}}\) | Permutation-standardized evidence across selected preservation components | Heuristic, implementation-dependent, and not a p-value |
| medianRank | Relative preservation ranking across modules | Relative to the modules and metrics included |
Permutation validity depends on the benchmark matching the question. Random gene sets should be drawn from the genes eligible for module detection and should have the same size as the reference module. Yet genes differ in expression variability and network connectivity, so unrestricted random sets may not be exchangeable with the reference module. Stratifying or matching on relevant properties can make the benchmark more informative, although it changes the null comparison and should be described. Small modules, few permutations, or very low permutation variability can make standardized scores unstable.
Cohort differences can also affect the comparison. Different sample sizes change the precision of estimated correlations; a smaller cohort may show weaker or noisier connectivity even if the underlying structure is similar. Differences in measurement platform, preprocessing, range of expression, or cell composition can alter estimated associations. The earlier material on batch, cell mixture, and spurious co-expression is directly relevant: preservation statistics cannot distinguish these sources from biological differences on their own. Check sample sizes, gene coverage, expression distributions, and network settings, and report them alongside the preservation results.
Common Mistakes and Limits
- Calling a high connectivity correlation “unchanged connectivity.” A correlation describes pattern, not level. Report an appropriate density or mean-connectivity summary as well.
- Treating overlap as topology. Shared gene membership does not guarantee shared edges or connectivity ordering; assess both when both questions matter.
- Reading \(Z_{\mathrm{summary}}\) as a p-value. It is a standardized, heuristic summary based on a permutation benchmark, not a probability that the null is true or a universal significance test.
- Ignoring unequal information across cohorts. A lower preservation score in a smaller or noisier cohort may reflect estimation limitations, not necessarily a changed biological network.
- Comparing incompatible networks. Changing the adjacency definition, network type, or relevant tuning choices can make apparent differences a consequence of construction rather than cohort structure.
Preservation analysis is designed to assess whether a reference module's measured structure is evident in another cohort. It does not test whether networks differ significantly between conditions, identify a causal mechanism, or establish functional equivalence. Those are distinct questions requiring appropriate analyses and interpretation.
Check Your Understanding
Answer each question, then check the concise solutions below.
- A module has high reference-to-test connectivity rank correlation, but lower mean connectivity in the test cohort. Is the module fully unchanged? What is preserved and what differs?
- A reference module has 40 genes, a test module has 35, and 28 genes are shared. Calculate the Jaccard index and reference coverage.
- An observed preservation statistic is 0.50; the permutation mean is 0.30 and standard deviation is 0.10. Calculate its standardized score and state what it means.
- Why is a high overlap score insufficient to conclude that module topology is preserved?
Solutions. (1) No. The relative connectivity ordering may be preserved, while the lower mean indicates a change in overall connectivity level. (2) The union has \(40+35-28=47\) genes, so the Jaccard index is \(28/47=0.5957\); reference coverage is \(28/40=0.700\). (3) The score is \((0.50-0.30)/0.10=2.00\), meaning the observed statistic is two permutation standard deviations above the random-set mean; this alone is not a p-value. (4) Overlap measures gene membership, not the edges, connectivity values, or connectivity ordering among those genes.