Tutorials › Multi-Omics Data Integration › Worked Example: Comparing Networks Across Phenotype Groups

Graphical Models for Multi-Omics · Tutorial 322 of 597

Worked Example: Comparing Networks Across Phenotype Groups

Learn how to estimate and test phenotype-specific network edge differences, adjust for multiple comparisons, and assess whether apparent changes are robust.

Advanced 13 min read

What You'll Learn

  • Define an edge difference between two phenotype-specific networks.
  • Use bootstrap standard errors and Wald intervals to quantify uncertainty.
  • Calculate a two-sided p-value for an estimated edge difference.
  • Apply the Benjamini–Hochberg procedure to a family of edge tests.
  • Distinguish nominal evidence from changes robust to multiplicity and sensitivity analysis.
  • Recognize assumptions and diagnostics relevant to comparing networks.

What Does It Mean for an Edge to Change?

A multi-omics network fitted separately in two phenotype groups can differ in its edges, edge weights, or both. A useful comparison must distinguish a visually different pair of network diagrams from evidence that a particular edge parameter differs between groups. This tutorial works through that comparison for a fixed set of candidate edges, including uncertainty, multiple testing, and a cautious summary of robust changes.

Assume that the same molecular features are measured in both groups and that the network parameters have the same interpretation in each. For a Gaussian graphical model, an edge between two features represents conditional association given the other modeled features. Its partial correlation is one possible edge weight: it is dimensionless, lies between −1 and 1, and its sign indicates the direction of conditional association. It does not by itself establish a causal effect.

Definition: For candidate edge \(e\), let \(w_{A,e}\) and \(w_{B,e}\) be its population edge weights in phenotype groups A and B, respectively. The edge difference is \(\Delta_e=w_{A,e}-w_{B,e}\). The null hypothesis of no difference is \(H_0:\Delta_e=0\); a two-sided alternative is \(H_a:\Delta_e\ne 0\). A positive difference means the edge weight is larger in group A on the chosen scale.

The contrast must use a consistent scale. For example, subtracting partial correlations compares partial correlations; subtracting Fisher-transformed partial correlations compares transformed parameters and answers a different numerical question. Network construction, feature scaling, covariate adjustment, and missing-data handling should be comparable across groups. Otherwise a difference may reflect a change in analysis rather than a phenotype-specific network.

Assumptions and an Inference Plan

The calculations below use estimates from two independent groups and bootstrap standard errors. Their interpretation relies on several conditions. Subjects are independent within and between groups; the same variables and edge definitions are used in both groups; and the fitted models adequately represent the conditional associations being compared. The bootstrap must resample independent subjects within each group and refit the network estimation procedure. If observations are clustered or repeated within subjects, the resampling unit must instead respect that structure.

The candidate edges in the examples are specified before inspecting the group differences. This matters because choosing edges after seeing which estimates look largest can make ordinary standard errors and p-values too optimistic. If network selection is part of the analysis, uncertainty and testing should account for that selection, rather than treating a selected edge as if it had been prespecified. Covariate adjustment should also be substantively appropriate and applied consistently; it can reduce confounding by measured variables but cannot guarantee the absence of unmeasured confounding.

For a reasonably regular estimator with an approximately normal sampling distribution, estimate the standard error of \(\hat{\Delta}_e=\hat{w}_{A,e}-\hat{w}_{B,e}\) by bootstrapping. A Wald statistic compares the estimated difference with its standard error. A two-sided 95% Wald interval and two-sided p-value are then computed as follows.

$$ Z_e=\frac{\hat{\Delta}_e}{SE(\hat{\Delta}_e)}, \qquad \hat{\Delta}_e \mathbin{\pm} 1.96\,SE(\hat{\Delta}_e), \qquad p_e=P\left(|N(0,1)|\ge |Z_e|\right). $$

The p-value expression already includes both tails: equivalently, it is \(2P(N(0,1)\ge |Z_e|)\). It is not twice \(P(|N(0,1)|\ge |Z_e|)\). A small p-value is evidence against the no-difference hypothesis under the assumed model; it is not the probability that the null hypothesis is true.

Worked Example: Calculating One Edge Difference

Suppose researchers prespecify a transcript–protein edge and fit the same adjusted network model in two hypothetical phenotype groups, each with 50 independent subjects. The estimated partial correlation is 0.2000 in group A and −0.0526 in group B. A subject-level bootstrap that refits the networks gives an estimated standard error of 0.1350 for their difference. Assume the bootstrap distribution is sufficiently regular for a normal approximation.

Difference. The estimated change, in partial-correlation units, is \(0.2000-(-0.0526)=0.2526\). The sign indicates a larger estimated partial correlation in group A.

Test statistic and p-value. Substitution gives \(Z=0.2526/0.1350=1.8711\). Thus the two-sided p-value is \(P(|N(0,1)|\ge 1.8711)=0.06135\) (approximately). The result does not meet a 0.05 threshold for this single unadjusted test.

Interval. The 95% Wald interval is \(0.2526\mathbin{\pm}1.96(0.1350)=0.2526\mathbin{\pm}0.2646\), or approximately \([-0.0120,\,0.5172]\) partial-correlation units. It includes zero, in agreement with the two-sided test at the 0.05 level. Under repeated sampling and the stated approximation, this interval procedure would cover the true difference in about 95% of samples; it does not assign a 95% probability to this particular interval containing the fixed parameter.

Correcting for a Family of Edge Tests

Testing many edges creates opportunities for false discoveries even when every edge truly has no difference. A declared family should include all edge hypotheses that contribute to the scientific claim, not just the edges that happen to have small p-values. One common procedure is Benjamini–Hochberg (BH), which controls the false discovery rate under independence and under certain forms of positive dependence among tests. Network-edge tests can be dependent; when the required dependence conditions are not credible, consider a procedure valid under more general dependence, such as Benjamini–Yekutieli, or a suitable resampling-based familywise approach.

For \(m\) p-values, order them as \(p_{(1)}\le\cdots\le p_{(m)}\). At target false discovery rate \(q\), BH finds the largest rank \(k\) for which \(p_{(k)}\le (k/m)q\), then rejects the hypotheses ranked 1 through \(k\). Adjusted p-values can be computed as the cumulative minimum, from largest rank to smallest, of \(\min(1,mp_{(i)}/i)\). These adjusted values allow a direct comparison with \(q\); they do not measure the probability that an individual reported edge is false.

Worked Example: Adjusting Three Edge Tests

Consider three prespecified edges in a hypothetical two-group analysis. The transcript–protein result is the one calculated above. For the other edges, suppose the estimated differences and bootstrap standard errors are as shown. All three tests use two-sided normal approximations.

Edge\(\hat{w}_A\)\(\hat{w}_B\)\(\hat{\Delta}\)\(SE\)\(Z\)Raw \(p\)
Metabolite–transcript0.42000.18000.24000.10302.3300.0198
Transcript–protein0.2000−0.05260.25260.13501.8710.06135
Metabolite–protein−0.1000−0.0200−0.08000.0950−0.84210.3997

For example, the first row has difference \(0.4200-0.1800=0.2400\) and statistic \(0.2400/0.1030=2.330\), giving a two-sided p-value of about 0.0198. The last row has \(−0.1000-(-0.0200)=−0.0800\) and \(Z=−0.0800/0.0950=−0.8421\), giving a two-sided p-value of about 0.3997.

The ordered p-values are 0.0198, 0.06135, and 0.3997. With \(m=3\), the BH adjusted values are approximately 0.0594, 0.0920, and 0.3997, respectively. For the middle value, the calculation is \(0.06135(3/2)=0.092025\), reported as 0.0920. At \(q=0.05\), none of the three adjusted values is at or below 0.05. The first edge is nominally significant before correction but is not selected by BH at this target; the data do not support declaring any of these three edges a discovery under that rule.

Summarizing Robust Changes

A useful summary separates the estimated size and direction of a change from the strength and stability of evidence for it. Report the group-specific estimates, their difference, an interval, the raw p-value, and the multiplicity-adjusted result. Then examine whether conclusions are sensitive to reasonable analysis choices: for example, covariate specification, regularization settings, or the treatment of influential observations. For bootstrap-based analyses, the frequency with which an edge is selected and the frequency with which its estimated difference has the same sign can describe stability. Such frequencies are diagnostics, not automatically calibrated p-values.

“Robust” should have a stated operational meaning rather than serving as an informal synonym for “large.” One defensible summary might require an edge to pass the prespecified multiplicity procedure, have a practically meaningful estimated difference, retain its direction in sensitivity analyses, and show adequate resampling stability. The exact criteria depend on the scientific question. An edge can be statistically supported but too small to matter scientifically, or have a sizeable estimate but substantial uncertainty.

Worked Example: Checking a Candidate Robust Change

In a separate hypothetical analysis of three prespecified edges, one metabolite–transcript edge has an estimated difference of 0.3000 partial-correlation units and bootstrap standard error 0.0800. Its two-sided normal-approximation statistic is \(0.3000/0.0800=3.750\), with \(p\) approximately 0.00018. Suppose the other two p-values are 0.0400 and 0.2000.

After ordering these values, the BH adjusted p-value for the smallest is \(3(0.00018)/1=0.00054\), so it passes a 0.05 false discovery rate threshold. Its 95% Wald interval is \(0.3000\mathbin{\pm}1.96(0.0800)=0.3000\mathbin{\pm}0.1568\), or \([0.1432,\,0.4568]\). This interval supports a positive difference on the partial-correlation scale, and its lower endpoint is above zero.

Suppose further that refitting under two prespecified, reasonable covariate specifications gives differences of 0.2800 and 0.3100, and 98% of subject-level bootstrap replicates give a positive difference. These checks support describing the edge as a robust positive change under the stated criteria. They do not show that the edge is causal, nor do they eliminate the possibility that unmeasured confounding or model misspecification explains the association.

Diagnostics, Alternatives, and Limitations

Before interpreting a comparison, inspect the fitted networks and the uncertainty calculations rather than relying on a final table alone. Useful checks include confirming that both groups contain enough subjects relative to the number of features; verifying convergence and comparable sparsity; examining bootstrap distributions for skewness, heavy tails, or frequent nonconvergence; and checking whether one or two observations dominate an estimated edge. A normal Wald interval may be unreliable when the bootstrap distribution is strongly asymmetric, when estimates lie near a parameter boundary, or when the estimator is highly discontinuous. In those cases, a carefully justified bootstrap interval or a method designed for the estimator may be preferable.

Other approaches answer related but not identical questions. A global network test asks whether the networks differ somewhere, without necessarily identifying a particular edge. Edgewise tests localize differences but require multiplicity control. A permutation test can provide a reference distribution by relabeling group membership when subjects are exchangeable under the null and the full estimation procedure is repeated appropriately. Bootstrap intervals describe estimator uncertainty, while stability selection describes how frequently features or edges are selected under resampling and tuning choices. Neither should be substituted for a calibrated test without justification.

The conclusions also depend on measurement quality, group comparability, model form, and the chosen network representation. A missing or weakly measured feature can alter several estimated conditional associations. Different preprocessing or regularization choices can change both selected edges and weights. Finally, a difference in partial correlation is a difference in conditional association, not necessarily a biological interaction or a causal effect. These limitations should accompany any claim about phenotype-specific network changes.

Common pitfall: “The edge is significant in group A but not significant in group B, so it differs between groups.” This is invalid because separate significance decisions do not test the difference of the two edge parameters. Test \(\Delta_e=w_{A,e}-w_{B,e}\) directly, quantify its uncertainty, and adjust the family of edge-difference tests when making multiple claims.

A Practical Comparison Workflow

1
Align the targets.
Use the same features, edge definitions, measurement scale, and defensible covariate handling in both phenotype groups.
2
Estimate and quantify uncertainty.
For each prespecified edge, compute the group-specific estimates, their difference, and a standard error or interval using a procedure that respects the sampling units and refits the estimation pipeline.
3
Test the family.
Calculate edge-difference p-values, define the family of hypotheses, and apply a correction whose dependence assumptions are appropriate.
4
Assess stability and report scope.
Check model diagnostics and sensitivity, distinguish statistical evidence from practical importance, and state that network edges represent conditional associations rather than causal effects.

Check Your Understanding

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

  1. If \(\hat{w}_A=0.15\) and \(\hat{w}_B=0.05\), what is the estimated difference, and how should its sign be interpreted?
  2. Why is “significant in A, not significant in B” not a valid test of a group difference?
  3. For an estimated difference of 0.20 with standard error 0.10, calculate the Wald statistic and approximate two-sided p-value.
  4. What does an adjusted p-value of 0.04 mean when applying BH at \(q=0.05\), and what does it not mean?
  5. Name two diagnostics or sensitivity checks that can reveal an unreliable network comparison.

Solutions. (1) The difference is \(0.15-0.05=0.10\), so the estimated edge weight is larger in group A by 0.10 on the chosen scale. (2) The two separate tests address whether each group’s parameter differs from zero, not whether the parameters differ from each other; the relevant null is \(\Delta=0\). (3) \(Z=0.20/0.10=2.00\), with two-sided \(p=P(|N(0,1)|\ge2.00)\approx0.0455\). (4) It is below the BH threshold when compared with \(q=0.05\), so that hypothesis is selected by the procedure; it is not a 4% probability that this particular discovery is false. (5) Examples include checking bootstrap distributions and refit failures, assessing convergence and sparsity, and comparing results under reasonable covariate or tuning specifications.

Clinical Biostats