Abstract
Lung squamous cell carcinoma (LUSC) and lung adenocarcinoma (LUAD) exhibit fundamentally distinct pathway coordination architectures. We developed a framework integrating pathway activity inference from spatial transcriptomics data, spatial proximity based network construction, and functional depth analysis across 996 TCGA patients. Applying Fraiman-Muniz depth statistics, we generated two representations: Population Referenced Depth quantifies typicality relative to population distributions, while Patient Referenced Depth assesses within-patient network organization. Random forest classification revealed that Patient Referenced Depth marginally outperforms population comparisons, achieving test AUC of 0.768. We focus on bidirectional interaction patterns obtained from spatial interaction networks of pathways. Multi-method feature integration identified three mechanistic frameworks distinguishing subtypes: myeloid orchestrated immune coordination (JAK-STAT ↔ TNFα dominates LUAD through SPP1+ macrophage niches), mutation driven pathway rewiring (TP53 mutations create ecosystem-wide reorganization in LUAD but homogeneous baseline in LUSC), and hypoxia-hormone microenvironment programming (peripheral LUAD tumors coordinate fluctuating hypoxia with angiogenesis while central LUSC tumors integrate chronic hypoxia with death receptor regulation). We identified five novel LUSC-enriched interactions (Androgen ↔ TRAIL, EGFR ↔ Estrogen, EGFR ↔ TNFα, Hypoxia ↔ TRAIL, TGFβ ↔ TRAIL) that remain mechanistically uncharacterized, revealing critical knowledge gaps. This framework provides a statistically principled approach for extracting actionable biomarkers from biological networks with applications to precision oncology and therapeutic target identification.
1. Introduction
Lung adenocarcinoma (LUAD) and lung squamous cell carcinoma (LUSC) represent the two most common histological subtypes of non-small cell lung cancer, accounting for over 70% of lung cancer diagnoses1. These subtypes differ fundamentally in molecular architecture, anatomical origin, and therapeutic vulnerability. LUAD develops peripherally from type II pneumocytes or Clara cells and harbors actionable mutations in EGFR, KRAS, and ALK, enabling targeted therapeutic strategies2. LUSC arises centrally from bronchial epithelial cells and exhibits near-universal TP53 mutations (over 80% of cases) alongside SOX2 and TP63 amplifications driving squamous differentiation programs3,4. Despite well-characterized genomic differences, accurate discrimination remains challenging in poorly differentiated tumors and small biopsy specimens, with significant implications for treatment selection5.
Recent multi-omics profiling reveals that LUAD and LUSC exhibit fundamentally distinct pathway coordination architectures rather than isolated pathway differences. LUAD demonstrates coordinated JAK-STAT and TNFα signaling that maintains chronic inflammatory microenvironments mediated by SPP1+ macrophage niches6–8. Physical interaction between HIF-1α and STAT3 stabilizes HIF-1α and regulates approximately 30% of hypoxia-induced genes, creating bidirectional regulatory circuits that integrate oxygen sensing with inflammatory signaling9,10. LUSC exhibits dominant TNFR1-NFκB signaling through the TNFR1-UBCH10 axis, with TNF receptor engagement inducing nuclear translocation of NF-κB subunits that drive dedifferentiation and metastasis programs11. Anatomical differences in tumor location create distinct microenvironmental pressures: peripheral LUAD tumors experience fluctuating hypoxia with intermittent reoxygenation, while central LUSC tumors develop chronic stable hypoxia with necrotic cores5. These biological differences manifest as coordinated pathway interaction patterns that distinguish subtypes more robustly than individual gene mutations12,13.
Traditional differential gene expression approaches miss systems-level pathway coordination that characterizes cancer biology14. Pathway-based methods typically analyze pathways independently, missing critical interaction effects between signaling networks15. Network-based representations provide a natural framework where pathways constitute nodes and their coordinated activities define weighted edges16. Graph-theoretic approaches have identified modular pathway organization differences between LUAD and LUSC through weighted gene co-expression network analysis17, and graph attention networks enable molecular stratification with enhanced interpretability18.
A critical limitation of population-level biomarker approaches is that they compare patients to cohort-wide distributions, potentially missing patient-specific molecular contexts. N-of-1 precision oncology trials demonstrate that therapies matched to individual molecular profiles via personalized combination regimens improve outcomes compared to population-derived biomarkers, with matched patients achieving longer progression-free survival (6.4 versus 3.0 months) and overall survival (15.3 versus 4.7 months)19,20. This motivates assessing pathway dysregulation relative to each individual’s baseline signaling architecture rather than population norms21,22.
Functional data analysis provides principled methods for characterizing complex data structures23. Data depth quantifies how central or typical an observation is within a multivariate distribution, generalizing notions of rank to high-dimensional spaces24. The Fraiman-Muniz depth integrates pointwise depths across functional domains25, transforming complex functional objects into scalar features while preserving global structural information. Random forest-based feature selection handles high-dimensional genomic data effectively, offering superior stability and interpretability26,27. Combined with differential expression analysis and principal component analysis, random forests enable multi-method triangulation that enhances confidence in identified biomarkers28.
We developed a computational framework integrating pathway activity inference, network construction, functional data analysis, and machine learning to identify discriminative biomarkers distinguishing LUAD from LUSC. We constructed patient-specific pathway interaction networks by inferring activities for 14 cancer-related pathways from bulk RNA-seq data using PROGENY29 and quantifying pairwise pathway coordination through partial correlations derived from spatial proximity patterns. We computed two depth-based feature representations: Population Referenced Depth quantifies population-level typicality, while Patient Referenced Depth captures within-patient network organization. Random forest classification combined with systematic rule extraction, co-occurrence network analysis, and multi-method feature integration identified biologically interpretable pathway interaction signatures.
Patient Referenced Depth outperformed Population Referenced Depth in classification accuracy (70.80% versus 69.10%) with balanced sensitivity and specificity, demonstrating that internal signaling architecture more robustly captures subtype-specific molecular features than population comparisons. Throughout this manuscript we have utilized the notation ↔ to encapsulate the bi-directional regulatory proximity based interactions among the pathways. We identified JAK-STAT ↔ TNFα coordination as the dominant discriminative feature in LUAD, NFκB ↔ TNFα interactions characteristic of LUSC, and Hypoxia ↔ JAK-STAT crosstalk reflecting subtype-specific microenvironmental adaptation. These signatures align with mechanistic studies demonstrating HIF-1α-STAT3 interaction9, TNFR1-UBCH10 axis activation11, and SPP1+ macrophage niches in LUAD7,8. We nominate five LUSC-enriched pathway interactions (Androgen ↔ TRAIL, EGFR ↔ Estrogen, EGFR ↔ TNFα, Hypoxia ↔ TRAIL, TGFβ ↔ TRAIL) that remain mechanistically uncharacterized, revealing critical knowledge gaps in LUSC biology with therapeutic implications. Our framework provides a statistically principled approach for extracting interpretable biomarkers from biological networks with applications to immunotherapy response prediction and therapeutic target identification.
2. Results
2.1. Study Design and Data Characteristics
We analyzed in silico spatial transcriptomics data from 996 TCGA lung cancer patients, comprising 525 LUAD and 471 LUSC cases. After stratified splitting, the training set contained 698 samples (330 LUSC, 368 LUAD) and the test set had 298 samples (141 LUSC, 157 LUAD). Using PROGENY29, we inferred activities for 14 cancer related pathways (Androgen, Estrogen, Hypoxia, JAK-STAT, MAPK, NFκB, p53, PI3K, TGFβ, TNFα, Trail, VEGF, WNT, EGFR) across spatial locations within each spatial transcriptomics image. We constructed patient specific pathway interaction graphs by computing pathway proximity to each spatial location using G-cross30 and applying partial correlations to obtain the graph structure, yielding 91 unique edges per patient after soft imputation and symmetrization (for more details see Methods).
Figure 1 illustrates our three-stage pipeline for constructing spatial pathway interaction graphs from TCGA histopathology images. Beginning with raw hematoxylin and eosin (H&E) stained tissue slides, we generated in-silico spatial transcriptomics representations by mapping gene expression patterns to spatial locations within the tumor. Each spatial location was assigned to one of 14 cancer-relevant pathways based on dominant gene expression signatures. These pathways encompass key oncogenic processes including growth factor signaling (Androgen, EGFR, Estrogen), stress and inflammatory responses (Hypoxia, JAK-STAT, MAPK, NFκB), proliferation and angiogenesis regulators (PI3K, TGFβ, TNFα, Trail, VEGF, WNT), and tumor suppressor activity (p53). The spatial mapping reveals heterogeneous distributions of pathway activities across the tumor microenvironment, reflecting intratumoral functional diversity.
Figure 1. Construction of spatial pathway interaction graphs from TCGA histopathology images.
The analytical pipeline consists of three stages: (Left) Raw hematoxylin and eosin (H&E) stained histopathology slide from a TCGA lung cancer sample, showing the original tissue architecture. (Center) In-silico spatially resolved transcriptomics map reconstruction where locations are classified into 14 cancer pathways using gene expression. Hexagonal grids represent spatial units, colored according to the dominant pathway at that location. This spatial mapping reveals heterogeneous pathway activity distributions across the tumor microenvironment. (Right) Spatial pathway proximity graph where nodes represent individual pathways (color-matched to center panel) and edges represent spatial co-occurrence relationships. Edge presence indicates that two pathways are spatially proximate or co-active in tissue regions.
From the spatially resolved pathway assignments, we constructed pathway interaction graphs where nodes represent individual pathways and edges represent spatial co-occurrence relationships. An edge between two pathways indicates that they are spatially proximate or co-active in neighboring tissue regions. This graph representation captures the functional organization of the tumor, encoding which pathways tend to be active together and how they are spatially coordinated. The resulting graph adjacency matrix for each patient serves as input for our functional data analysis where the nodes are the pathways and the edges encapsulate the bi-directional regulatory proximity based interactions among the pathways. These bi-directional interactions are explained through the notation “↔”. To this end, each of the 14 pathways corresponds to a node, yielding unique pairwise interactions (edges). These 91 edge weights, extracted from the upper triangle of the symmetric adjacency matrix, constitute the functional data vectors analyzed in subsequent depth-based classification models. Each patient is thus characterized by a unique pathway interaction network topology that reflects their tumor’s spatial-functional architecture.
2.2. Functional Depth Features Capture Different Aspects of Network Organization
We computed two complementary depth-based feature representations. Population Referenced Depth quantifies how typical each patient’s pathway interaction strength is relative to the population distribution for that specific interaction, treating each of the 91 edges as a functional object across patients. Patient Referenced Depth assesses how typical each pathway interaction is within a patient’s own network, providing an internal reference frame. Critically, for Population Referenced Depth, we performed depth computation exclusively on training data and scored test samples against the training distribution to prevent data leakage.
These depth measures capture fundamentally different biological questions. Population Referenced Depth identifies patients whose molecular configurations deviate from population norms, potentially revealing outlier interaction patterns characteristic of disease subtypes. Patient Referenced Depth characterizes the internal organization of each patient’s pathway network, revealing which interactions are unusually strong or weak relative to that individual’s overall signaling architecture. Visual inspection of depth distributions revealed notable differences between LUAD and LUSC for several pathway interactions, with Population Referenced Depth features showing broader dynamic ranges. (Details on Depth calculations are provided in the Methods Section)
2.3. Within Patient Network Depth Provides Better Subtype Discrimination
Random forest classification revealed distinct performance profiles for the two depth approaches (Table 1, Figure 2). The Patient Referenced Depth model (within patient) achieved superior test set performance with AUC of 0.768, accuracy of 70.8%, sensitivity of 67.5%, and specificity of 74.5%. The Population Referenced Depth model (across patient) yielded comparable test AUC of 0.751 with accuracy of 69.1%, but exhibited a different sensitivity-specificity trade-off profile with higher sensitivity (75.2%) and lower specificity (62.4%).
Table 1.
Performance metrics for Population Referenced Depth and Patient Referenced Depth random forest models. Patient Referenced Depth (within patient network organization) outperforms Population Referenced Depth (population level typicality) across multiple metrics.
| Model | Type | AUC | Accuracy | Sensitivity | Specificity | F1-score |
|---|---|---|---|---|---|---|
| Population Referenced Depth | Training | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
| Test | 0.7505 | 0.6910 | 0.7520 | 0.6240 | 0.7200 | |
| OOB | 0.7527 | 0.7822 | — | — | — | |
| PatientReferenced Depth | Training | 1.0000 | 1.0000 | 1.0000 | 1.0000 | 1.0000 |
| Test | 0.7681 | 0.7080 | 0.6750 | 0.7450 | 0.7090 | |
| OOB | 0.7556 | 0.7947 | — | — | — |
Figure 2.
Random forest classification performance comparison between Population Referenced Depth and Patient Referenced Depth models. (A) Test set performance metrics show Patient Referenced Depth achieves higher specificity (74.5% vs 62.4%) while Population Referenced Depth favors sensitivity (75.2% vs 67.5%). Both models achieve comparable AUC (0.768 vs 0.750). (B) Training set ROC curves demonstrate perfect separation (AUC = 1.000) for both approaches. (C) Test set ROC curves confirm robust generalization with Patient Referenced Depth showing marginally superior discriminative performance.
The contrasting performance profiles suggest these approaches capture fundamentally different biological information. Population Referenced Depth prioritizes sensitivity over specificity, capturing a broader range of LUAD cases but with reduced precision in LUSC identification. In contrast, Patient Referenced Depth achieves more balanced performance with superior specificity, suggesting that within patient network organization provides more robust discrimination of coordinated signaling patterns that distinguish subtypes. The slight improvement in overall accuracy (70.8% versus 69.1%) combined with better specificity and AUC indicates that Patient Referenced Depth captures more discriminative features of subtype-specific pathway coordination. Out of bag error estimates closely matched test performance for both models, indicating stable generalization beyond the specific train-test split. Though we present both models, and emphasize that both models capture distinct scenarios, we focus on Patient Referenced Depth given its superior discriminative properties and clinical implications for precision medicine applications.
2.4. Decision Rule Analysis Reveals Interpretable Classification Logic
Systematic extraction of decision rules from the first 20 trees yielded 2,757 rules for Population Referenced Depth and 1,479 for Patient Referenced Depth (Figure 3). Rule complexity distributions showed Population Referenced Depth generated more complex rules (median 12 conditions) compared to Patient Referenced Depth (median 8 conditions), consistent with Population Referenced Depth’s more distributed variance structure. Simple rules (1 to 3 conditions) comprised roughly 1.6% of Population Referenced Depth rules and 2.4% of Patient Referenced Depth rules, offering readily interpretable biomarker signatures.
Figure 3.
Decision rule complexity analysis from random forest models. (A,B) Distribution of rule complexity measured by number of conditions per rule. Population Referenced Depth generates more complex rules (median = 12 conditions) compared to Patient Referenced Depth (median = 8 conditions), with only 1.6% and 2.4% simple rules (< 3 conditions) respectively. (C) Violin plots with overlaid boxplots confirm Population Referenced Depth requires substantially more complex decision boundaries. Red diamonds indicate median values. (D) Summary statistics table shows Population Referenced Depth (Depth A) extracted 2757 total rules with 86.7% classified as complex (> 6 conditions), while Patient Referenced Depth (Depth B) extracted 1479 rules with 69.6% complex rules, suggesting within patient network organization provides more interpretable classification criteria.
Example simple rules from Patient Referenced Depth included: “If JAK-STAT ↔ p53 depth ≤ 0.153 and Estrogen ↔ Hypoxia depth ≤ 0.319, predict Disease (LUAD)” and “If Hypoxia ↔ TGFβ depth ≤ 0.125 and EGFR ↔ p53 depth > 0.139, predict Control (LUSC).” These rules suggest that combinations of reduced JAK-STAT ↔ p53 typicality with altered Estrogen ↔ Hypoxia coordination characterize LUAD, while LUSC shows distinct p53 and TGFβ interaction patterns.
Top scoring pairs analysis identified 19 pairwise depth comparisons with AUC > 0.60 for Population Referenced Depth and 15 for Patient Referenced Depth. The highest performing Patient Referenced Depth pair compared Hypoxia ↔ JAK-STAT with Estrogen ↔ Hypoxia (AUC = 0.606), suggesting relative rather than absolute depth values carry discriminative information. Many top pairs involved p53 interactions for Population Referenced Depth and JAK-STAT or Hypoxia interactions for Patient Referenced Depth, indicating coordinated shifts in multiple pathway interaction typicalities distinguish subtypes.
2.5. Differential Expression Identifies Key Regulatory Pathways
From Figure 4 we understand that for Patient Referenced Depth, JAK-STAT ↔ TNFα showed the strongest differential signal (Cohen’s D = 0.470, FDR < 0.001), with significantly higher depth in LUAD, indicating this interaction is more typical within LUAD patient networks. TNFα ↔ Trail showed strong negative regulation (Cohen’s D = −0.398, FDR < 0.001), being more typical in LUSC networks.
Figure 4.
Differential expression analysis of pathway interaction features between LUAD and LUSC. (A,B) Volcano plots display effect sizes (Cohen’s D) versus statistical significance for Population Referenced Depth (14 significant features) and Patient Referenced Depth (16 significant features). Features with FDR < 0.05 are highlighted, with strong effects (|D| > 0.3) shown in red. (C,D) Top 15 differential features ranked by absolute effect size reveal distinct pathway disruption patterns. Population Referenced Depth emphasizes EGFR, PI3K, and NFkB interactions, while Patient Referenced Depth identifies TNFa, Estrogen, and JAKSTAT pathway pairs as most discriminative.
In Figure 4, panels A and B show volcano plots summarizing effect size (measured by Cohen’s D) and statistical significance (measured by false discovery rate) for each pathway interaction feature. Points highlighted as significant exceed an FDR threshold of 0.05, with stronger effects corresponding to larger absolute effect sizes. For Population Referenced Depth, a moderate number of features show statistically significant differences, with effect sizes distributed symmetrically across positive and negative values, indicating balanced pathway interaction shifts between the two subtypes. In contrast, Patient Referenced Depth displays a slightly larger set of significant features and a wider range of effect sizes, suggesting stronger subtype specific contrasts in within patient pathway organization.
Panels C and D summarize the top fifteen differential features ranked by absolute effect size for Population Referenced Depth and Patient Referenced Depth respectively. For Population Referenced Depth, features elevated in LUAD are enriched for interactions involving JAK-STAT, TGFβ, TNFα, Hypoxia, and p53 signaling, while features elevated in LUSC predominantly involve EGFR, androgen related pathways, and NFκB interactions. This pattern reflects systematic population level differences in pathway interaction structure between subtypes. For Patient Referenced Depth, the most differential features highlight coordinated shifts involving JAK-STAT and Hypoxia interactions in LUAD, contrasted with increased TNFα, Estrogen, EGFR, and NFκB interactions in LUSC. Together, these results show that Population Referenced Depth captures broad population scale differences in pathway interactions, whereas Patient Referenced Depth emphasizes subtype specific reorganization of pathway relationships within individual patients.
Estrogen ↔ TGFβ interactions also showed significant downregulation in LUAD (Cohen’s D = −0.323, FDR < 0.001), while Hypoxia ↔ JAK-STAT coordination was elevated (Cohen’s D = 0.318, FDR < 0.001). EGFR ↔ PI3K interactions, which are central to both subtypes’ biology, showed reduced typicality in LUAD (Cohen’s D = −0.307, FDR < 0.001). For Population Referenced Depth, p53 pathway interactions (EGFR ↔ p53, TGFβ ↔ p53, TNFα ↔ p53, JAK-STAT ↔ p53) dominated differential signals, consistent with higher TP53 mutation frequency in LUSC.
Volcano plot analysis revealed 16 significantly differential features for Patient Referenced Depth (FDR < 0.05) versus 14 for Population Referenced Depth, though no features achieved large effect sizes (Cohen’s D > 0.8) in either model. This suggests that subtype discrimination emerges from coordinated patterns across multiple moderate effect features rather than individual high impact biomarkers.
2.6. Feature Co-occurrence Networks Identify Hub Interactions
To identify interdependent pathway interactions used by the classification models, we constructed feature co-occurrence networks from the random forest decision rules. For each depth representation (Population Referenced Depth and Patient Referenced Depth), we extracted decision rules from the top 20 trees in the trained random forest models. For each extracted rule, we identified all pathway features that appeared together in the decision path. When a rule contained features A, B, and C, we recorded pairwise co-occurrences for (A,B), (A,C), and (B,C). The total co-occurrence count for each pair was aggregated across all rules. We constructed network graphs where nodes represent individual pathway interactions and edges represent co-occurrence relationships. Edge width and transparency were scaled proportionally to co-occurrence frequency, with more frequently paired pathways shown with thicker, more opaque connections. Node size was determined by degree centrality, reflecting the number of distinct pathways with which each feature co-occurs. Node color intensity represented betweenness centrality, quantifying each pathway’s importance as a bridge connecting different network modules.
We generated networks (Figure 5) using the top 40 most frequently co-occurring pathway pairs. Networks were visualized using a circular layout to enhance readability and comparison between Population Referenced Depth and Patient Referenced Depth representations. This layout distributes nodes evenly around a circle while preserving the edge structure, making it easier to identify dense connectivity patterns and central hub features. These networks reveal functional modules of pathway interactions that the random forest models use jointly for LUAD versus LUSC classification. Densely connected clusters indicate groups of pathways that work together in the classification decision. Pathways with high betweenness centrality serve as critical connectors between different biological processes, suggesting they may represent key regulatory nodes that distinguish the two lung cancer subtypes.
Figure 5.
Co-occurrence network analysis of pathway pairs in random forest decision rules. Networks display the top 40 most frequently co-occurring feature pairs extracted from decision trees. Node size represents degree centrality, node color indicates betweenness centrality, and edge width corresponds to co-occurrence frequency. (A) Population Referenced Depth network shows VEGF and p53 as central hubs with extensive connectivity. (B) Patient Referenced Depth network reveals JAKSTAT and TNFa as key coordinators with high betweenness, suggesting their role as bridges between pathway modules. Both networks exhibit distinct topological structures reflecting different biological coordination patterns captured by each depth reference frame.
In panel A (Figure 5), the Population Referenced Depth network shows a distributed connectivity structure with multiple highly connected hubs spanning EGFR, JAK-STAT, NFκB, TNFα, p53, Hypoxia, and hormone related pathways. The presence of several high degree and high betweenness nodes indicates that population level pathway organization is characterized by a broadly interconnected architecture in which multiple signaling modules jointly contribute to classification. In panel B (Figure 5), the Patient Referenced Depth network shows a more centralized structure dominated by a small number of highly connected nodes, most prominently JAK-STAT and TNFα interactions. Many peripheral nodes display lower degree and reduced betweenness, indicating that within patient pathway organization concentrates around a narrower set of coordinating interactions. These contrasting network topologies show that Population Referenced Depth captures widespread population scale co-occurrence patterns across many pathways, whereas Patient Referenced Depth highlights focused within patient coordination driven by a small number of dominant signaling interactions.
To understand how features coordinate in classification decisions, we built co-occurrence networks from extracted rules (Figure 5). For Population Referenced Depth, the network had 68 features with 440 co-occurrence relationships. Hub features with highest degree centrality included PI3K ↔ Trail (degree 31), Androgen ↔ Trail (degree 31), Androgen ↔ JAK-STAT (degree 28), and Androgen ↔ Estrogen (degree 26). PI3K ↔ Trail showed exceptional total co-occurrence (194 across all pairs), suggesting central importance to classification logic.
For Patient Referenced Depth, JAK-STAT ↔ TNFα emerged as the dominant hub (degree 69, total co-occurrence 6,010), followed by TNFα ↔ Trail (degree 67, co-occurrences 3,907) and NFκB ↔ TNFα (degree 70, co-occurrences 3,682). The most frequently co-occurring pair was NFκB ↔ TNFα with TGFβ ↔ TNFα (308 co-occurrences), indicating coordinated inflammatory signaling assessment in Patient Referenced Depth classification.
The co-occurrence frequency distributions revealed contrasting patterns. Population Referenced Depth showed relatively uniform co-occurrence (median 46) with a maximum of 308, suggesting many features contribute similarly. Patient Referenced Depth showed a highly right skewed distribution (median 9, maximum 364), indicating concentration of discriminative power in a smaller set of highly coordinated inflammatory and immune signaling interactions.
2.7. Random Forest Feature Importance Highlights Distinct Pathway Networks
To identify the most informative pathway interactions for LUAD versus LUSC classification, we extracted feature importance scores from the trained random forest models using permutation importance. This approach measures the decrease in model performance when each feature’s values are randomly permuted, quantifying each pathway’s contribution to predictive accuracy. For both Population Referenced Depth and Patient Referenced Depth representations, we ranked all pathway features by their permutation importance scores and identified the top 30 features. To assess consistency between the two depth approaches, we compared the top 15 features from each method and quantified their overlap. This analysis reveals whether population-level depth patterns (Population Referenced Depth) and within-patient depth patterns (Patient Referenced Depth) identify similar or distinct pathway signatures. We integrated random forest feature importance with differential expression analysis to identify pathway interactions that are both statistically significant and predictively powerful. For each feature, we combined two complementary rankings: (1) rank by absolute Cohen’s D effect size from differential expression testing, and (2) rank by random forest permutation importance. The combined score was calculated as Combined where higher scores indicate features that rank highly by both criteria. This multi-method integration prioritizes pathway interactions that show strong biological differences between cancer subtypes (high Cohen’s D) while also contributing substantially to classification performance (high RF importance). We visualized the relationship between differential expression and predictive importance through scatter plots, with point size scaled by the combined score. Features with FDR-adjusted p-values below 0.05 were colored to highlight statistically significant pathway interactions. This integrative approach identifies robust biomarker candidates that satisfy both statistical significance and predictive utility criteria, reducing the likelihood of selecting spurious features that excel in only one dimension.
Figure 6 summarizes feature importance and cross method integration for the population level Population Referenced Depth representation and the within patient Patient Referenced Depth representation. Panels A and B display the top thirty pathway interaction features ranked by random forest permutation importance for Population Referenced Depth and Patient Referenced Depth respectively. For Population Referenced Depth, importance scores are more evenly distributed across a broad set of pathway interactions, with prominent contributions from EGFR, JAK-STAT, NFκB, TNFα, p53, Hypoxia, and hormone related signaling pathways. This pattern indicates that population level classification relies on multiple moderately influential interactions rather than a single dominant feature. In contrast, Patient Referenced Depth shows a more concentrated importance profile, with JAK-STAT and TNFα interactions contributing disproportionately to classification performance, suggesting that within patient discrimination is driven by a smaller subset of highly influential pathway interactions.
Figure 6.
Feature importance analysis and multi-method integration. (A,B) Top 30 features ranked by random forest permutation importance show partially overlapping but distinct priority sets for Population Referenced Depth and Patient Referenced Depth. (C) Venn diagram reveals 73.3% unique features in each model’s top 15, indicating complementary discriminative patterns. (D,E) Multi-method integration plots combine differential expression (Cohen’s D) with machine learning importance, bubble size represents combined score. Top ranked features balance statistical significance with predictive power, with Population Referenced Depth emphasizing EGFR and JAKSTAT pathways, while Patient Referenced Depth prioritizes TNFa and TGFb coordination patterns.
Panel C quantifies overlap among the top fifteen important features for the two depth representations. Only four features are shared between Population Referenced Depth and Patient Referenced Depth, while the majority of highly ranked features are unique to each representation. This limited overlap shows that population level and within patient depth capture complementary but distinct aspects of pathway interaction structure.
Panels D and E integrate differential expression effect size and random forest importance to identify features supported by multiple lines of evidence. For Population Referenced Depth, several features achieve simultaneously large absolute Cohen’s D values and high permutation importance, indicating robust population scale discriminative power. These features include pathway interactions involving p53, JAK-STAT, TNFα, and EGFR signaling. For Patient Referenced Depth, fewer features occupy the extreme upper right region of the joint importance and effect size space, reflecting more moderate but coordinated contributions across multiple interactions. Together, these results show that Population Referenced Depth emphasizes globally consistent pathway interaction differences across the cohort, whereas Patient Referenced Depth emphasizes within patient relative pathway organization driven by a smaller set of dominant signaling interactions.
Permutation importance analysis revealed divergent feature prioritization between models (Figure 6 D and E). For Population Referenced Depth, top features included EGFR ↔ JAK-STAT (importance 0.00329), JAK-STAT ↔ p53 (0.00320), NFκB ↔ TNFα (0.00314), TNFα ↔ p53 (0.00299), and Hypoxia ↔ TGFβ (0.00258). This prioritization highlights EGFR signaling coordination, p53 network interactions, and inflammatory pathway cross talk.
Patient Referenced Depth showed markedly different priorities: JAK-STAT ↔ TNFα (0.01425, over 4 fold higher than any Population Referenced Depth feature), JAK-STAT ↔ p53 (0.00751), TNFα ↔ Trail (0.00740), NFκB ↔ TNFα (0.00701), and EGFR ↔ PI3K (0.00531). The dramatically elevated importance of JAK-STAT ↔ TNFα in Patient Referenced Depth, combined with its strong hub centrality, establishes this interaction as the primary discriminative feature when assessing within patient network organization.
Feature importance overlap analysis revealed 18 features appearing in the top 30 for both models, with 12 unique to each approach. This moderate overlap (60%) suggests partially distinct disease specific biological information capture, explaining why Patient Referenced Depth’s superior performance cannot be simply predicted from Population Referenced Depth results.
3. Discussion
3.1. Statistical Framework and Main Findings
This study establishes a computational framework integrating functional data analysis with network-based feature engineering for lung cancer biomarker discovery. We transform high-dimensional pathway interaction networks into interpretable features through depth statistics, comparing within-patient and population-level reference frames.
Random forest classification revealed distinct performance profiles for the two depth approaches (Table 1, Figure 2). Patient Referenced Depth achieved test AUC of 0.768 with accuracy of 70.8%, while Population Referenced Depth yielded comparable AUC of 0.751 with accuracy of 69.1%. Critically, the models exhibited contrasting sensitivity-specificity trade-offs: Patient Referenced Depth favored specificity (74.5%) over sensitivity (67.5%), whereas Population Referenced Depth prioritized sensitivity (75.2%) at the expense of specificity (62.4%).
The contrasting profiles suggest these approaches capture fundamentally different biological information. Patient Referenced Depth achieves superior specificity and AUC through within-patient network organization, providing more precise identification of coordinated signaling patterns. This advantage mirrors results from individual-level pathway methods (TPAC31, VAM21, N-of-1-pathways22), which consistently outperform population-based approaches. Out of bag estimates closely matched test performance, confirming stable generalization. We focus subsequent analyses on Patient Referenced Depth given its superior discriminative properties and precision medicine implications.
Systematic integration of feature selection methods identifies biologically coherent signatures. JAK-STAT ↔ TNFα emerges as the dominant discriminative feature: highest random forest importance (0.01425), largest effect size (Cohen’s D = 0.470), and maximum network centrality (degree 69). This convergence confirms inflammatory signaling coordination drives subtype differentiation32,33.
Feature co-occurrence networks reveal fundamentally different organizational principles. Patient Referenced Depth exhibits extreme hub concentration around inflammatory interactions (JAK-STAT ↔ TNFα, NFκB ↔ TNFα), indicating classification depends on few highly coordinated features. Population Referenced Depth shows distributed topology with uniform degree distribution, relying on aggregate assessment across many weakly connected features. Concentrated discriminative power in parsimonious feature sets provides more stable decision boundaries13,34.
3.2. Functional Depth as Computational Strategy for Biomarker Discovery
The functional depth framework addresses computational challenges in high-dimensional omics data. Traditional differential expression identifies shifted marginal distributions but misses complex multivariate patterns involving coordinated pathway dysregulation28,35. Depth measures quantify observation centrality within multivariate distributions, capturing distributional properties beyond location shifts.
The Fraiman-Muniz depth statistic35 integrates pointwise depths across functional domains, transforming graph-structured data into scalar features while preserving global network organization. Subsampling-based depth estimation enhances robustness and provides stable estimates with moderate sample sizes.
Patient Referenced Depth uses each patient’s own pathway network as the reference frame, measuring deviations from their individual baseline rather than comparing to population averages. This captures patient-specific coordination patterns that may be masked when using population-level comparisons36. Clinical evidence supports this individualized approach. The I-PREDICT trial demonstrated that matching therapies to individual molecular profiles improved objective response rates and extended progression-free survival19. Similarly, a pan-cancer Molecular Tumor Board analysis found that high therapy-biomarker concordance at the individual level predicted longer survival, while no population-level biomarker was independently predictive20.
Population Referenced Depth’s severe imbalance (high specificity, poor sensitivity) indicates substantial heterogeneity in population-level pathway organization within LUSC, consistent with evidence that LUSC exhibits greater molecular diversity than LUAD37,38. Patient Referenced Depth’s balanced performance indicates within-patient network patterns provide consistent discrimination across both subtypes.
3.3. Biological Interpretation: Depth Patterns Reveal Three Mechanistic Frameworks
Depth-based network analysis identifies three coordinated pathway frameworks distinguishing LUAD from LUSC: immune-inflammatory coordination, mutation-driven rewiring, and microenvironment-driven programming.
3.3.1. Immune-Inflammatory Coordination
JAK-STAT and TNFα pathways show the strongest differential coordination. LUAD exhibits tight JAK-STAT ↔ TNFα coupling (Cohen’s D = 0.318, FDR < 0.001), driven by SPP1+ macrophages that co-localize with cancer-associated fibroblasts in spatially organized inflammatory niches39. These macrophages coordinate hypoxia response through direct STAT3-HIF-1α interaction, where STAT3 stabilizes HIF-1α and regulates approximately 30% of hypoxia-induced genes9. Spatial transcriptomics confirms TP53-mutant LUAD develops multicellular ecosystems where SPP1+ macrophages, fibroblasts, and malignant cells coordinately regulate metabolic and immune suppressive programs in hypoxic regions7.
LUSC shows fundamentally different inflammatory architecture. NFκB ↔ TNFα coordination dominates, operating through TNFR1 signaling that drives dedifferentiation programs11. Near-universal TP53 mutations (82% versus 47% in LUAD) amplify this effect by disrupting NF-κB regulation3. The TNFα ↔ TRAIL interaction (Cohen’s D = −0.398) reflects coordinated death receptor signaling where LUSC cells resist TRAIL-induced apoptosis through constitutive NF-κB activation despite upregulated death receptors in necrotic tumor cores.
3.3.2. Mutation-Driven Pathway Rewiring
p53 pathway interactions dominate Population Referenced Depth features (EGFR ↔ p53, TGFβ ↔ p53, TNFα ↔ p53, JAK-STAT ↔ p53), but depth analysis reveals network consequences beyond mutation frequency. TP53 mutations trigger more heterogeneous phenotypic changes in LUAD than LUSC: multi-omic analysis of 992 NSCLC patients demonstrated deep learning achieved AUC 0.84 for predicting TP53 mutation from histology in LUAD but failed in LUSC40. In LUAD, TP53 mutations occur in approximately half of tumors as later clonal events, triggering ecosystem reorganization captured by Population Referenced Depth. In LUSC, near-universal early TP53 mutation creates homogeneous baseline better discriminated by Patient Referenced Depth.
EGFR pathway coordination patterns reflect distinct activation modes. LUAD shows reduced EGFR ↔ PI3K typicality (Cohen’s D = −0.307) where activating mutations (10–15% of cases) enable ligand-independent signaling, uncoupling EGFR from normal PI3K regulation. LUSC maintains tight EGFR-PI3K coordination despite EGFR amplification (20% of cases) through ligand-dependent signaling requiring autocrine loops3,37. Recently characterized EGFR-TNFR1 physical interaction explains LUSC therapeutic resistance: EGFR phosphorylates TNFR1 death domain, suppressing NF-κB activation, such that EGFR inhibition paradoxically enables compensatory survival signaling41.
3.3.3. Microenvironment-Driven Programming
Hypoxia and hormone pathway coordination reflects anatomical constraints. LUAD arises peripherally in well-vascularized regions experiencing fluctuating hypoxia with intermittent reoxygenation. This creates selective pressure for coordinated HIF-1α/STAT3 signaling maintaining chronic inflammation and angiogenesis9. VEGF ↔ WNT interaction emerges as a dominant Patient Referenced Depth principal component, reflecting integration of angiogenic and developmental signaling where WNT activation occurs in 30–50% of LUAD through various alterations co-occurring with EGFR mutations37.
LUSC develops centrally near airways with chronic stable hypoxia and large necrotic cores. Central location constrains neovascularization, with LUSC relying on existing bronchial vasculature rather than tumor-induced angiogenesis. This explains reduced VEGF coordination and differential anti-angiogenic therapy responses.
Hormone pathway enrichment in LUSC (Androgen ↔ TRAIL, EGFR ↔ Estrogen, Estrogen ↔ TGFβ) is notable given 75% male predominance. Androgen receptor inhibits effector and stem cell properties of male tumor-infiltrating CD8+ T cells, creating male-biased terminal exhaustion, with castration plus anti-PD-L1 synergistically restricting tumor growth42. Androgen ↔ TRAIL coordination may reflect hormone-mediated modulation of death receptor sensitivity creating sex-specific apoptosis resistance.
3.3.4. Pathway Interaction Patterns and Molecular Subtype Heterogeneity
Our pathway interaction signatures align with known KRAS-mutant and ALK-fusion biology, though definitive attribution requires matched genomic data. The spatial organization patterns captured through pathway proximity networks suggest how these molecular alterations restructure signaling architectures. Reduced EGFR ↔ PI3K typicality in LUAD (Cohen’s D = −0.307) reflects spatial signaling reorganization characteristic of KRAS-mutant tumors. Constitutive RAS-GTP maintains MAPK activity independent of receptor regulation, spatially uncoupling EGFR from PI3K engagement. Spatial profiling studies demonstrate KRAS mutations disrupt growth factor receptor clustering and alter stromal positioning43, architectural features manifesting as reduced pathway proximity depths in our network analysis. JAK-STAT ↔ TNFα dominance (importance 0.01425, Cohen’s D = 0.470) likely captures KRAS-driven inflammatory niche organization. KRAS mutations activate NF-κB signaling, creating spatially coordinated inflammatory ecosystems with SPP1+ macrophages and cancer-associated fibroblasts44. Single-cell spatial mapping confirms KRAS-mutant tumors establish inflammatory architectures with defined cytokine signaling zones45, directly supporting our observed coordination patterns. ALK fusions activate overlapping pathways through distinct spatial mechanisms. Constitutive ALK signaling phosphorylates STAT3 independent of cytokine receptors, creating JAK-STAT activation with different spatial distributions than KRAS inflammatory niches. ALK-fusion tumors exhibit metabolically active hypoxic cores with peripheral immune exclusion46. Elevated Hypoxia ↔ JAK-STAT coordination in LUAD (Cohen’s D = 0.318) aligns with this biology, where STAT3 activation occurs in hypoxic domains lacking KRAS inflammatory infiltrates. MAPK serves as a convergent downstream effector but shows distinct spatial organization. KRAS-mutant tumors exhibit diffuse MAPK activation across tumor and stromal compartments, while ALK-fusion tumors show localized MAPK activity in malignant populations with defined spatial boundaries.
ROS1 fusions, present in 1–2% of LUAD, provide a further mechanism through which JAK-STAT and PI3K pathway interactions become reorganized relative to EGFR signaling. In LUAD, ROS1 fusion proteins signal constitutively through SHP2, activating JAK/STAT3, PI3K/AKT/mTOR, and RAS/MEK/ERK cascades in the absence of ligand-mediated receptor engagement47,48. Transcriptomic profiling of ROS1-positive LUAD relative to ALK-positive tumors reveals upregulation of interleukin-17 signaling and nucleotide synthesis pathways49, suggesting a cytokine niche distinct from ALK-driven ecosystems. Crucially, ROS1-positive LUAD presents with low tumor mutational burden and an immune-cold microenvironment characterized by poor response to immune checkpoint inhibitors49,50, consistent with the reduced EGFR ↔ PI3K depth typicality we observe in LUAD relative to LUSC. In LUSC, receptor tyrosine kinase pathway coordination remains more prominent, and the ROS1 fusion-driven decoupling of EGFR from PI3K engagement in LUAD may partially explain the depth asymmetry captured by our patient-referenced features. The partner-dependent localization of ROS1 fusions further modulates which downstream branches are amplified: SLC34A2-ROS1 and CD74-ROS1 variants in LUAD associate with distinct PI3K/AKT/mTOR activation profiles at the single-nucleus level51, supporting the interpretation that ROS1 contributes heterogeneous but coherent depth signatures within our LUAD cohort.
METΔex14 mutations, occurring in 3–4% of LUAD, impair CBL-mediated receptor degradation by removing the Y1003 ubiquitin ligase binding site, leading to sustained surface accumulation of MET and prolonged HGF-dependent signaling52,53. In LUAD cell lines and TCGA samples, METΔex14 preferentially amplifies RAS-MAPK activation, with cell-line-specific co-activation of PI3K/AKT and STAT3 that depends on co-occurring genetic context54. This simultaneous engagement of MAPK, STAT3, and PI3K from a single receptor platform produces dense pathway co-activation that depth-based features are designed to detect. The immune microenvironment of METΔex14 LUAD is heterogeneous: mIF profiling of surgically resected LUAD shows exhausted CD8+TIM3+ and CD8+LAG3+ cells are spatially redistributed between tumor parenchyma and stroma depending on recurrence status, while immune checkpoint genes including CTLA4, PD-1, LAG3, and TIGIT are broadly upregulated55,56. This spatially reorganized immune architecture, driven in part by MET-mediated neutrophil recruitment and myeloid suppression, is consistent with the high hub centrality of NFκB ↔ TNFα in Patient Referenced Depth co-occurrence networks, where coordinated inflammatory signaling reflects stromal-immune crosstalk. Stratified analysis integrating whole exome sequencing with spatial transcriptomics represents a critical extension. The mutual exclusivity of ROS1 fusions and METΔex14 with other LUAD drivers57,58 supports the use of pathway proximity networks as a driver-agnostic profiling strategy capable of detecting subtype-defining signaling architectures without prior molecular characterization.
3.3.5. Therapeutic Implications
Five novel LUSC-enriched interactions (Androgen ↔ TRAIL, EGFR ↔ Estrogen, EGFR ↔ TNFα, Hypoxia ↔ TRAIL, TGFβ ↔ TRAIL) lack mechanistic characterization in squamous lung cancer, while LUAD signatures are well-established. This asymmetry reveals critical knowledge gaps potentially explaining limited LUSC therapeutic options: no FDA-approved targeted therapies beyond general EGFR inhibitors with limited efficacy, versus multiple actionable LUAD mutations (EGFR, ALK, ROS1, KRAS G12C) that transformed adenocarcinoma treatment2.
Convergence of uncharacterized interactions on TRAIL signaling suggests underappreciated death receptor roles in LUSC. Central tumor location creates unique microenvironmental gradients where viable tumor regions show differential death receptor expression. TGFβ modulates TRAIL sensitivity through death receptor expression and anti-apoptotic protein regulation59, suggesting coordinated resistance mechanisms warrant investigation. Combined EGFR inhibition with anti-TNFα agents may address compensatory NF-κB activation41, while androgen receptor blockade with PD-L1 inhibitors warrants evaluation in male LUSC patients42.
3.4. Methodological Limitations and Future Directions
Several limitations merit consideration. Our analysis employs 14 PROGENY pathways representing major cancer signaling axes, which may not capture all relevant biological processes. Future work should incorporate additional pathway databases or extend to gene-level graphical models, with external validation on independent cohorts essential for assessing generalizability. Cross-platform validation across spatial transcriptomics, bulk RNA-seq, and single-cell RNA-seq would further strengthen translational potential. The correlational nature of our findings precludes causal inference, which could be addressed by integrating CRISPR perturbation screens, drug response data from patient-derived organoids, and longitudinal clinical outcomes. Existing organoid biobanks for LUAD and LUSC60,61 provide experimental platforms for such validation efforts. Additionally, our transcript-based analysis does not capture protein-level regulation and post-translational modifications that govern many signaling pathways. Complementary approaches using multiplex immunofluorescence (mIF) or spatial proteomics would validate our transcriptomic findings and enable direct assessment of pathway activity at the functional level, representing a natural direction for future studies.
We employed binary classification despite substantial molecular heterogeneity within subtypes. Extending functional depth to multi-class classification could reveal pathway interaction signatures distinguishing finer-grained molecular subtypes with distinct therapeutic vulnerabilities. Simplified expression panels targeting identified pathway interaction signatures could enable clinical implementation. Reverse engineering compact gene expression panels recapitulating pathway network depth features using L1-regularized regression could produce parsimonious assays.
3.5. Conclusions
Functional depth analysis of pathway interaction networks provides a statistically principled, biologically interpretable framework for biomarker discovery in lung cancer molecular subtypes. Within-patient network depth achieves 71.1% classification accuracy while revealing systems-level organization. The superior performance of Patient Referenced Depth demonstrates that internal signaling architecture more robustly captures subtype-specific molecular features than population comparisons, with direct support from clinical N-of-1 trials showing therapies matched to individual molecular profiles significantly improve outcomes.
The pathway interaction signatures exhibit remarkable biological coherence with TCGA molecular landscapes and spatial profiling studies. JAK-STAT ↔ TNFα emerges as dominant LUAD hub, TNFα ↔ Trail distinguishes LUSC through coordinated death receptor programs, p53 network interactions capture subtype-specific consequences of differential TP53 mutation frequencies, and hypoxia-related coordination patterns reflect anatomical tumor locations. Five novel LUSC-enriched interactions represent high-priority research opportunities, revealing critical knowledge gaps that may explain limited therapeutic options. This work establishes functional depth as a valuable computational tool for precision oncology, providing a generalizable framework for extracting interpretable, molecularly validated biomarkers from high-dimensional biological networks.
4. Methods
4.1. Data Acquisition and Preprocessing
We obtained spatial transcriptomics data for lung cancer patients from a publicly available dataset resulting from the DeepSpot62. DeepSpot is a deep learning method for predicting spatially resolved transcriptomics from H&E data. Specifically, DeepSpot leverages pathology foundation models and tissue context across multiple scales to perform state-of-the-art prediction of spatial transcriptomics. They applied and validated DeepSpot on H&E slides from The Cancer Genome Atlas (TCGA) database, including those of lung cancer (both LUAD and LUSC subtypes). This dataset had 996 patient samples (525 LUAD, 471 LUSC). Each sample consisted of spatially resolved gene expression measurements. Quality control removed low quality spots and samples with insufficient coverage.
4.2. Pathway Activity Inference
We used PROGENY29 to infer pathway activities from spatial transcriptomics data. PROGENY uses a linear model relating gene expression to pathway activity: E = W · A + ε where E is gene expression, W is the weight matrix encoding gene responsiveness to pathways, A is pathway activity, and ε is noise. We focused on 14 cancer related pathways: Androgen, Estrogen, Hypoxia, JAK-STAT, MAPK, NFκB, p53, PI3K, TGFβ, TNFα, Trail, VEGF, WNT, and EGFR. For each sample, we computed activities using the PROGENY R package with default parameters (top 500 responsive genes per pathway). This resulted in a vector of pathway activity scores for each spot in the spatial transcriptomics data. To determine the most enriched pathway per spot, we assigned each spot to the pathway with the highest activity score.
4.3. Construction of Pathway Interaction Graphs
For each patient, we built a pathway interaction graph G = (V,E) where nodes V correspond to the 14 pathways and edges E capture spatial proximity interaction strength. We quantified interaction strength between pathways i and j using partial correlation across spatial locations. When a pathway projection was absent from a sample, we set all incoming and outgoing edges to zero. For samples with pathway presence, edges encoded the G-cross spatial interaction between pathway pairs according to the following equation30:
| (1) |
where i and j indicate two pathway types, N denotes the total count of instances for pathway type i in the sample, di[k],j represents the nearest neighbor distance, and R specifies the computation radius of 150 microns, corresponding to about 3 spots. Because G-cross is asymmetric, we used directed edges between nodes. We then derived an undirected adjacency matrix by keeping only reciprocal connections, meaning edges that existed in both directions in the original directed graph. Formally, this is expressed as Ad j = (A > 0∧AT > 0), guaranteeing that an undirected edge between nodes i and j exists only when both Aij and Aji are nonzero. This procedure captures mutual relationships while removing one way links, producing a symmetric representation suitable for analyzing bidirectional or co-occurrence network structures. while G-cross was used here, any other preferred function of proximity can be used as well.
By design, certain nodes emerged as zeros in our construction, requiring imputation of missing edges. These missing nodes, appearing as all zero rows and columns, likely resulted from technical limitations in data acquisition rather than genuine absence of connectivity. We used soft imputation, a low rank matrix completion method, to reconstruct missing edge weights by leveraging observed connectivity patterns throughout the network. The algorithm assumes the adjacency matrix has an underlying low rank structure, allowing prediction of plausible edge weights for missing nodes through latent relationships among observed nodes. After imputation, we applied post processing steps including diagonal normalization, non-negativity constraints, and symmetrization to guarantee the resulting adjacency matrix satisfied the necessary properties of an undirected weighted graph. Importantly, our approach imputed entries only for completely unobserved nodes while maintaining all structural zeros in partially observed nodes, thus avoiding spurious edge introduction. This imputation framework enabled retention of samples that would otherwise be discarded due to incomplete node level data, increasing statistical power for downstream network analyses.
To ensure robust estimation, we applied soft imputation using the softImpute algorithm63 with regularization parameter λ = 0.1 to impute missing edges in a graph. Because adjacency matrices cannot be directly used, we converted them into covariance matrices. To estimate the overall covariance pattern characterizing the graph, we used an approach based on additive decomposition64. A function g(x) of a variable x can be written in additive form as (g(x) = c+∑i gi(xi))65. We estimated the covariance through additive decomposition of additive functions of Gaussian processes over the domain66. We then extracted partial correlations from the inverse covariance matrix to obtain the binary graph. From each adjacency matrix, we extracted upper triangular elements, yielding 91 edge weights per patient.
4.4. Train-Test Split and Depth Computation
To prevent data leakage, we performed train-test splitting before depth computation. We split the dataset 70–30 using stratified sampling to maintain class proportions (training: 698 samples, 330 LUSC, 368 LUAD; test: 298 samples, 141 LUSC, 157 LUAD).
4.4.1. Fraiman-Muniz Depth with Subsampling
We employed the Fraiman-Muniz depth statistic25 to quantify centrality of pathway interaction profiles. For patient i with edge weight vector xi = (xi,1,…,xi,91) over the discrete domain 𝒯 = {1,2,…,91}, the FM depth is:
| (2) |
where Du(xi,j,Fj) denotes the univariate depth of edge j’s weight in patient i with respect to the marginal distribution Fj of edge j across the reference population. This formulation treats the 91 edge weights as discretely sampled evaluations of a patient-specific pathway interaction function, enabling application of functional data depth methods to graph-structured biological data.
To ensure stability, we implemented a subsampling approach. For each depth computation, we performed B = 300 bootstrap iterations, where each iteration randomly sampled 80% of the reference population without replacement. The trimming parameter was set to 0.15 to reduce sensitivity to outliers. For each observation, we computed depth values across all B iterations and took the median as the final depth score, providing robust estimates less sensitive to sampling variation.
4.4.2. Population Referenced Depth: Across-Patient Depth
For Population Referenced Depth, we measured how central each patient’s edge connectivity is relative to the population. For each edge j and patient i, we computed patient referenced depth treating patient i’s connectivity value for edge j as a functional observation and comparing it against the distribution of connectivity values across all training patients for that same edge.
Critically, for test patients, we employed a specialized scoring function to prevent data leakage. Rather than computing depth using the combined train-test distribution, we computed depth for test observations using only the training data as the reference distribution. Specifically, for each edge j, we combined training and test connectivity values into a single vector, then performed B = 300 subsampling iterations where each iteration sampled 80% of training indices only. We computed FM depth for all observations relative to each training subsample, then extracted depth values corresponding to test observations and aggregated via median across iterations. This ensured test patients were scored relative to patterns learned from training data alone, maintaining proper separation between training and validation phases.
4.4.3. Patient Referenced Depth: Within-Patient Depth
For Patient Referenced Depth, we measured how central each edge is within an individual patient’s connectivity profile. For each patient i and edge j, we computed Patient Referenced Depth by treating edge j’s connectivity as a functional observation and comparing it against the distribution of all other edges for that same patient.
Unlike population referenced depth, patient referenced depth computation does not require special handling for test data because each patient’s depth profile is independent of other patients. Both training and test patients were scored using their own internal edge distributions. For patient i, we performed B = 300 subsampling iterations, where each iteration sampled 80% of that patient’s edges, computing how central each edge j is relative to the sampled edge distribution. The final within-patient depth was obtained by taking the median across all iterations.
This dual depth representation captures both population-level patterns (Population Referenced Depth) and patient-specific connectivity architecture (Patient Referenced Depth), providing complementary information for disease classification.
4.5. Justification for Functional Data Representation
Our application of functional depth statistics to graph-structured data requires explicit justification, as pathway interaction networks are inherently discrete rather than continuous functional observations. We adopt a framework where the 91 edge weights constitute evaluations of an underlying latent function over a discrete index domain. Formally, we define the domain 𝒯 = {1,2,…,91} as the discrete index set corresponding to the 91 unique pathway pairs (edges) in the complete graph. For patient i, the edge weight vector xi = (xi,1,xi,2,…,xi,91) represents evaluations of a patient-specific function that characterizes their pathway interaction profile. Each edge index j ∈ 𝒯 maps to a specific pathway pair (e.g., j = 1 corresponds to Androgen ↔ Estrogen, j = 2 to Androgen ↔ Hypoxia, etc.). This discrete functional representation is justified on three grounds. First, functional data analysis methods, including depth statistics, extend naturally to discretely sampled functions67. The Fraiman-Muniz depth integrates univariate depths across the domain via: where the integral in the continuous formulation reduces to a discrete sum over the 91 edges, Du(xi,j,Fj) is the univariate depth of patient i’s value for edge j relative to the marginal distribution Fj (for Population Referenced Depth), and |𝒯| = 91 normalizes the sum. This formulation treats each patient’s pathway interaction profile as a vector-valued observation while leveraging the depth framework’s ability to capture centrality in high-dimensional spaces. Second, if we focus on the biological interpretation, viewing edge weights as a function over pathway pair indices reflects the biological principle that pathway interactions form coordinated regulatory programs rather than independent entities. The functional perspective captures global network organization patterns which translates to a patient’s complete signaling architecture rather than treating individual edges as isolated measurements. This aligns with systems biology perspectives where cellular phenotypes emerge from coordinated pathway cross-talk12. And third, being the computational advantages i.e., functional depth provides a principled dimensionality reduction from 91-dimensional vectors to scalar centrality scores while preserving multivariate structure. Unlike univariate approaches that analyze edges independently, or simple averaging that discards information, functional depth quantifies how typical a patient’s entire pathway interaction profile is relative to a reference distribution, naturally handling the high-dimensional, correlated structure of biological networks.
For Population Referenced Depth (across-patient), the reference distribution Fj for each edge j is the marginal distribution of that edge’s weights across the patient population. For Patient Referenced Depth (within-patient), we redefine the domain as 𝒯i = the 91 edges within patient i, and Fi is the distribution of edge weights within that patient’s network. This within-patient formulation treats each individual’s 91 edge weights as evaluations of their network organization function, computing how typical each edge is relative to that patient’s overall connectivity architecture. We acknowledge that alternative multivariate approaches (e.g., Mahalanobis depth, projection depth) could be applied directly to the 91-dimensional vectors. However, the FM depth’s explicit integration over the domain (edge index) provides interpretable contributions from individual pathway pairs, facilitating biological interpretation. The computational cost of FM depth (O(n2 p) for n patients and p edges) remains tractable for our dataset (n = 996, p = 91).
4.6. Justification of Dual Depth Framework
Our framework employs two complementary reference frames grounded in distinct precision oncology paradigms. Patient Referenced Depth operationalizes N-of-1 medicine by measuring pathway network organization relative to each individual’s molecular baseline. This approach finds strong support from prospective trials demonstrating superiority of individualized molecular profiling: the I-PREDICT trial showed patients with therapies matched to their specific alterations had improved outcomes19, while molecular tumor board analyses across thousands of patients confirmed better outcomes when treatments target individual molecular landscapes68,69.
Computational methods for single subject analysis provide methodological precedent. The N-of-1-pathways framework established that comparing paired samples within individuals detects personal deregulated mechanisms70–73. Frost demonstrated that individual tumor dysregulation scores computed relative to patient specific baselines outperform population comparisons21,31. Our Patient Referenced Depth extends these concepts to graph structured pathway networks.
Population Referenced Depth identifies patients whose molecular profiles deviate from cohort norms, a strategy validated by cancer outlier detection methods. Transcriptome outlier analysis reveals that systematic deviations from population distributions pinpoint therapeutic vulnerabilities74, while functional genomic outliers are enriched for actionable targets75. Multiple approaches applied to lung cancer confirm that population referenced deviations identify prognostically relevant patterns76,77. These findings rest on functional data depth theory, where depth measures quantify observation centrality within population distributions25,35,78–80.
The limited feature overlap demonstrates complementary information. Patient Referenced Depth identifies coordination patterns within individual architectures, aligning with molecular tumor board paradigms81–83. Population Referenced Depth identifies systematic subtype deviations, analogous to basket trial enrollment84. The superior classification performance of Patient Referenced Depth validates that individual optimization outperforms population stratification, while Population Referenced Depth remains valuable for initial classification and outlier identification85,86.
4.7. Random Forest Classification
We trained random forest models using the ranger and randomForest R packages87–89 with 5 fold cross validation repeated 3 times for hyperparameter tuning. Final models used 1500 trees with permutation based importance. Class weights were set to inverse class frequency to handle class imbalance. Performance metrics included AUC-ROC, accuracy, sensitivity, and specificity. We determined optimal classification threshold using Youden’s index on training set ROC curves.
4.8. Rule Extraction from Random Forest Model
To enhance model interpretability and identify discriminatory patterns between LUAD and LUSC subtypes, we extracted explicit decision rules from the trained random forest classifiers. After training on Population Referenced Depth (across patient functional depth features) and Patient Referenced Depth (within patient functional depth features), we rebuilt the optimized random forests using the randomForest package with hyperparameters identified during cross validation (mtry, number of trees, and minimum node size).
4.8.1. Decision Rule Extraction
We extracted decision rules from the first 20 trees of each random forest model, yielding 2,757 unique rules for Population Referenced Depth and 1,479 unique rules for Patient Referenced Depth (100% rule uniqueness). Feature coverage analysis confirmed that rules from these 20 trees captured all top 50 most important features and 98.9–100% of the entire feature space (90–91 of 91 pathway interaction features), justifying this 20 tree size as sufficient for comprehensive rule-based interpretation.
For each model, we extracted decision rules from the first 20 trees using a depth first traversal algorithm. The extraction procedure identified all root to leaf paths within each tree, recording the sequence of splitting conditions (feature thresholds) and terminal node predictions. Each extracted rule consists of: (1) a conjunction of splitting conditions defining the decision path, (2) the predicted class label at the terminal node, and (3) the rule complexity measured by the number of conditions. This rule based representation provides explicit logical statements describing how depth features collectively discriminate between LUAD and LUSC samples, making biological interpretation easier beyond standard variable importance metrics. We cataloged the extracted rules separately for Population Referenced Depth and Patient Referenced Depth models to compare the discriminatory patterns identified through across patient versus within patient functional variability.
4.8.2. Depth First Traversal Algorithm
The depth first traversal algorithm systematically extracts all decision paths from each random forest tree by recursively exploring the tree structure from root to leaves90–96. Starting at the root node, the algorithm examines whether the current node is a terminal (leaf) node or an internal decision node. At each internal node, the algorithm identifies three components: (1) the splitting feature, (2) the threshold value, and (3) the left and right child nodes corresponding to samples satisfying feature ≤ threshold and feature > threshold, respectively. The algorithm maintains a growing vector of conditions as it descends the tree. When encountering an internal node with split condition “Xfeature ≤ c”, the algorithm first recursively explores the left subtree, appending “Xfeature ≤ c” to the condition vector, then backtracks to explore the right subtree with “Xfeature > c” appended instead. This depth first strategy ensures complete exploration of all paths before moving to alternative branches.
When reaching a leaf node, the algorithm records the complete decision rule as the conjunction of all accumulated conditions along the path from root to leaf, paired with the leaf’s class prediction (LUAD or LUSC). The traversal continues until all root to leaf paths have been enumerated. A maximum depth parameter prevents infinite recursion in case of corrupted tree structures, and nodes lacking valid split information are skipped. This approach guarantees extraction of every possible classification rule encoded in the tree structure, capturing both simple shallow rules and complex deep rules involving multiple feature interactions.
4.9. Differential Expression Analysis
To identify pathway interactions that exhibit distinct depth patterns between LUAD and LUSC, we performed differential expression analysis on both Population Referenced Depth (population-level) and Patient Referenced Depth (within-patient) representations using the training dataset. For each pathway feature, we compared depth values between the LUSC (Control) and LUAD (Disease) groups using Welch’s two-sample t-test, which does not assume equal variances between groups. We calculated the effect size using Cohen’s D: where and are the mean depth values for each group, and spooled is the pooled standard deviation: . Cohen’s D provides a standardized measure of effect size independent of sample size, with |D| > 0.2, |D| > 0.5, and |D| > 0.8 typically representing small, medium, and large effects, respectively. To control for multiple testing, we adjusted p-values using the Benjamini-Hochberg false discovery rate (FDR) procedure. Features with FDR-adjusted p-values below 0.05 were considered statistically significant. We also computed log2 fold change as: where a small constant (1e−100) was added to prevent division by zero. We visualized the results using volcano plots, with Cohen’s D on the x-axis and −log10(FDR) on the y-axis. Features were categorized as “Strong Effect” (FDR < 0.05 and |Cohen’s D| > 0.3), “Significant” (FDR < 0.05 and |Cohen’s D| ≤ 0.3), or “Not Significant” (FDR ≥ 0.05). This classification highlights pathway interactions with both statistical significance and meaningful biological effect sizes. The top 15 features by absolute Cohen’s D were displayed separately, stratified by whether they showed higher depth values in LUAD or LUSC, revealing the directional patterns of pathway dysregulation in each cancer subtype.
4.10. Feature Co-occurrence Analysis
To identify functional depth features that collectively contribute to subtype discrimination, we performed pairwise feature co-occurrence analysis on the extracted decision rules from the first 20 trees. For each decision rule, we identified all depth features appearing in the conjunctive conditions using regular expression pattern matching. We then computed the frequency of pairwise co-occurrences across all rules within each model.
Specifically, for rules containing two or more features, we enumerated all unique feature pairs and tallied their joint appearances across the rule set. We built feature co-occurrence networks by connecting features appearing together in rules, with edge weights representing co-occurrence frequency. We characterized network topology using degree centrality, betweenness centrality, and clustering coefficient. A high co-occurrence frequency indicates that two depth features are consistently used together in the same decision paths, suggesting potential functional or biological interactions relevant to LUAD versus LUSC classification. We conducted this analysis independently for Population Referenced Depth and Patient Referenced Depth models to compare collaborative feature patterns between the across patient and within patient depth representations. The resulting co-occurrence matrices reveal which depth features operate synergistically in the classification mechanism, providing insight into coordinated functional variability patterns that distinguish the two lung adenocarcinoma subtypes beyond univariate feature importance rankings.
4.11. Feature importance and cross method integration
To identify the most informative pathway interactions for LUAD versus LUSC classification, we extracted feature importance scores from the trained random forest models using permutation importance. This approach measures the decrease in model performance when each feature’s values are randomly permuted, quantifying each pathway’s contribution to predictive accuracy. For both Population Referenced Depth and Patient Referenced Depth representations, we ranked all pathway features by their permutation importance scores and identified the top 30 features. To assess consistency between the two Population Referenced Depthpproaches, we compared the top 15 features from each method and quantified their overlap. This analysis reveals whether population-level depth patterns (Population Referenced Depth) and within-patient depth patterns (Patient Referenced Depth) identify similar or distinct pathway signatures. We integrated random forest feature importance with differential expression analysis to identify pathway interactions that are both statistically significant and predictively powerful. For each feature, we combined two complementary rankings: (1) rank by absolute Cohen’s D effect size from differential expression testing, and (2) rank by random forest permutation importance. The combined score was calculated as Combined where higher scores indicate features that rank highly by both criteria. This multi-method integration prioritizes pathway interactions that show strong biological differences between cancer subtypes (high Cohen’s D) while also contributing substantially to classification performance (high RF importance). We visualized the relationship between differential expression and predictive importance through scatter plots, with point size scaled by the combined score. Features with FDR-adjusted p-values below 0.05 were colored to highlight statistically significant pathway interactions. This integrative approach identifies robust biomarker candidates that satisfy both statistical significance and predictive utility criteria, reducing the likelihood of selecting spurious features that excel in only one dimension.
4.12. Integrated Multi-Method Analysis
We integrated results across methods by identifying features meeting multiple criteria: (1) Top 30 by random forest importance, (2) Top 75th percentile by absolute PC1 loading, (3) Significantly differential (FDR < 0.05). Features meeting all three criteria were considered robust biomarker candidates.
4.13. Statistical Analysis
All analyses were performed in R version 4.5.1. Depth computation used the fda.usc package67. Random forest modeling used randomForest and ranger packages88,89. A significance level of α = 0.05 was used throughout with multiple testing correction where appropriate.
Acknowledgment
During the preparation of this manuscript, the authors used University of Michigan GPT for language editing and sentence-level phrasing suggestions. No AI tool was used to generate results, statistical analyses, proofs, or scientific conclusions. The authors reviewed, verified, and edited all content and take full responsibility for the manuscript. All authors contributed to manuscript preparation and approved the final version.
The results published here are based upon data generated by The Cancer Genome Atlas Research Network and DeepSpot. The authors also acknowledge the use of University of Michigan GPT for assistance with manuscript editing to improve clarity. All authors contributed to manuscript preparation and approved the final version.
Funding
This work was supported by NIH grants R37CA214955-01A1 (A.R.).
Funding Statement
This work was supported by NIH grants R37CA214955-01A1 (A.R.).
Footnotes
Declaration of Interests
A.R. serves as a member for Voxel Analytics LLC and consults for Genophyll LLC, Tempus Inc, Telperian, and serves as faculty advisor to TCS Ltd. He also serves as an Affiliate Investigator for the Fred Hutch Cancer Center, and a Satish Dhawan Visiting Chair Professor at the Indian Institute of Science Bangalore, India. All other authors declare no competing interests.
Data Availability
All data are publicly available through The Cancer Genome Atlas (TCGA) database and DeepSpot62.
Code Availability
Code implementing the functional depth analysis pipeline may be made available to researchers on reasonable request.
References
- 1.Sung H. et al. Global cancer statistics 2020: Globocan estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA: a cancer journal for clinicians 71, 209–249 (2021). [DOI] [PubMed] [Google Scholar]
- 2.Lindeman N. I. et al. Updated molecular testing guideline for the selection of lung cancer patients for treatment with targeted tyrosine kinase inhibitors: guideline from the college of american pathologists, the international association for the study of lung cancer, and the association for molecular pathology. Arch. pathology & laboratory medicine 142, 321–346 (2018). [DOI] [PubMed] [Google Scholar]
- 3.Cancer Genome Atlas Research Network. Comprehensive genomic characterization of squamous cell lung cancers. Nature 489, 519–525 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Benitez D. A. et al. p53 genetics and biology in lung carcinomas: insights, implications and clinical applications. Biomedicines 12, 1453 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Travis W. D. et al. The 2015 world health organization classification of lung tumors: impact of genetic, clinical and radiologic advances since the 2004 classification. J. Thorac. Oncol. 10, 1243–1260 (2015). [DOI] [PubMed] [Google Scholar]
- 6.Zhang C. et al. Comprehensive molecular analyses of a tnf family-based signature with regard to prognosis, immune features, and biomarkers for immunotherapy in lung adenocarcinoma. EBioMedicine 59 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Zhao W. et al. A cellular and spatial atlas of tp53-associated tissue remodeling defines a multicellular tumor ecosystem in lung adenocarcinoma. Nat. Cancer 6, 1857–1879 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Bill R. et al. CXCL9:SPP1 macrophage polarity identifies a network of cellular programs that control human cancers. Science 381, 515–524 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Dinarello A. et al. Stat3 and hif1α cooperatively mediate the transcriptional and physiological responses to hypoxia. Cell death discovery 9, 226 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Yousef E. H., El Gayar A. M. & Abo El-Magd N. F. Carvacrol potentiates immunity and sorafenib anti-cancer efficacy by targeting hif-1α/stat3/fgl1 pathway: in silico and in vivo study. Naunyn-Schmiedeberg’s Arch. Pharmacol. 398, 4335–4353 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Xiao Z. et al. A tnfr1–ubch10 axis drives lung squamous cell carcinoma dedifferentiation and metastasis through a cell-autonomous signaling loop. Cell Death & Dis. 13, 885 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.the Mutation Consequences & pathway Analysis working group of the International Cancer Genome Consortium. Pathway and network analysis of cancer genomes. Nat. methods 12, 615–621 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Ben-Hamo R. et al. Predicting and affecting response to cancer therapy based on pathway-level biomarkers. Nat. communications 11, 3296 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Subramanian A. et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc. national academy sciences 102, 15545–15550 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Khatri P., Sirota M. & Butte A. J. Ten years of pathway analysis: current approaches and outstanding challenges. PLoS Comput. Biol. 8, e1002375 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Barabási A.-L., Gulbahce N. & Loscalzo J. Network medicine: a network-based approach to human disease. Nat. Rev. Genet. 12, 56–68 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Anusewicz D., Orzechowska M. & Bednarek A. K. Lung squamous cell carcinoma and lung adenocarcinoma differential gene expression regulation through pathways of Notch, Hedgehog, Wnt, and ErbB signalling. Sci. Reports 10, 21128 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Ma T. & Wang J. Graphpath: a graph attention model for molecular stratification with interpretability based on the pathway–pathway interaction network. Bioinformatics 40, btae165 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Sicklick J. K. et al. Molecular profiling of cancer patients enables personalized combination therapy: the I-PREDICT study. Nat. Medicine 25, 744–750 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Nichetti F. et al. Real-world outcomes of molecular tumor board treatment recommendations. JCO precision oncology 9, e2400387 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Frost H. R. Variance-adjusted Mahalanobis (VAM): a fast and accurate method for cell-specific gene set scoring. Nucleic Acids Res. 48, e94 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Schissler A. G., Piegorsch W. W. & Lussier Y. A. N-of-1-pathways Mahalanobis distance for quantifying tumor progression. Bioinformatics 31, 2293–2301 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Ramsay J. O. & Silverman B. W. Functional Data Analysis (Springer, 2005), 2 edn. [Google Scholar]
- 24.Mosler K. Depth statistics. In Robustness and Complex Data Structures (Springer, 2013). [Google Scholar]
- 25.Fraiman R. & Muniz G. Trimmed means for functional data. TEST 10, 419–440 (2001). [Google Scholar]
- 26.Qi Y. Random forest for bioinformatics. In Ensemble Machine Learning, 307–323 (Springer, 2012). [Google Scholar]
- 27.Acharjee A., Larkman J., Xu Y., Cardoso V. R. & Gkoutos G. V. A random forest based biomarker discovery and power analysis framework for diagnostics research. BMC medical genomics 13, 178 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Baek S., Tsai C.-A. & Chen J. J. Development of biomarker classifiers from high-dimensional data. Briefings Bioinforma. 10, 537–546 (2009). [DOI] [PubMed] [Google Scholar]
- 29.Schubert M. et al. Perturbation-response genes reveal signaling footprints in cancer gene expression. Nat. communications 9, 20 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Baddeley A., Rubak E. & Turner R. Spatial Point Patterns: Methodology and Applications with R (CRC Press, 2015). [Google Scholar]
- 31.Frost H. R. Tissue-adjusted pathway analysis of cancer (tpac): A novel approach for quantifying tumor-specific gene set dysregulation relative to normal tissue. PLoS Comput. Biol. 20, e1011717 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Wang F. et al. Immune subtypes in luad identify novel tumor microenvironment profiles with prognostic and therapeutic implications. Front. Immunol. 13, 877896 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Desharnais L. et al. Spatially mapping the tumour immune microenvironments of non-small cell lung cancer. Nat. communications 16, 1345 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Wolde T., Bhardwaj V. & Pandey V. Current bioinformatics tools in precision oncology. MedComm 6, e70243 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.López-Pintado S. & Romo J. On the concept of depth for functional data. J. Am. statistical Assoc. 104, 718–734 (2009). [Google Scholar]
- 36.AlDoughaim M. et al. Cancer biomarkers and precision oncology: a review of recent trends and innovations. SAGE Open Medicine 12, 2050312124123456 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Cancer Genome Atlas Research Network. Comprehensive molecular profiling of lung adenocarcinoma. Nature 511, 543–550 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Li H. et al. Comprehensive analysis of immune infiltration, gene correlations, and traditional chinese medicine in lung adenocarcinoma. Int. J. Biol. Macromol. 146177 (2025). [DOI] [PubMed] [Google Scholar]
- 39.Xiao M. et al. Single-cell and spatial transcriptomics profile the interaction of spp1+ macrophages and fap+ fibroblasts in non-small cell lung cancer. Transl. Lung Cancer Res. 14, 2646 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Tong S. et al. Unveiling the distinctive variations in multi-omics triggered by tp53 mutation in lung cancer subtypes: An insight from interaction among intratumoral microbiota, tumor microenvironment, and pathology. Comput. Biol. Chem. 113, 108274 (2024). [DOI] [PubMed] [Google Scholar]
- 41.Nam Y. W. et al. Egfr inhibits tnf-α-mediated pathway by phosphorylating tnfr1 at tyrosine 360 and 401. Cell Death & Differ. 31, 1318–1332 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Yang C. et al. Androgen receptor-mediated cd8+ t cell stemness programs drive sex differences in antitumor immunity. Immunity 55, 1268–1283 (2022). [DOI] [PubMed] [Google Scholar]
- 43.Zhao D. et al. Spatial itme analysis of kras mutant nsclc and immunotherapy outcome. NPJ Precis. Oncol. 8, 135 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Torok K. et al. Impact of kras mutation subtypes on morphological heterogeneity and immune landscape in surgically treated lung adenocarcinoma. Transl. Lung Cancer Res. 14, 1914–1928 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Yang S. et al. Single-cell and spatial transcriptome profiling identifies the immunosuppressive spatial niche in kras-mutant colorectal cancer. J. for ImmunoTherapy Cancer 13, e013763 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Gainor J. F. et al. Alk rearrangements are mutually exclusive with mutations in egfr or kras: an analysis of 1,683 patients with non-small cell lung cancer. Clin. Cancer Res. 19, 4273–4281, DOI: 10.1158/1078-0432.CCR-13-0318 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Davies K. D. & Doebele R. C. Molecular pathways: ROS1 fusion proteins in cancer. Clin. Cancer Res. 19, 4040–4045, DOI: 10.1158/1078-0432.CCR-12-2851 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Rikova K. et al. Global survey of phosphotyrosine signaling identifies oncogenic kinases in lung cancer. Cell 131, 1190–1203 (2007). [DOI] [PubMed] [Google Scholar]
- 49.Terrones M., Op de Beeck K., Van Camp G., Vandeweyer G. & Mateiu L. Transcriptomic analysis of ros1+ non-small cell lung cancer reveals an upregulation of nucleotide synthesis and cell adhesion pathways. Front. Oncol. 14, 1408697 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Boulanger M. C., Schneider J. L. & Lin J. J. Advances and future directions in ros1 fusion-positive lung cancer. The oncologist 29, 943–956 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Kim Y. et al. Single-nucleus multi-omics delineates distinct epigenetic programs associated with tumor progression in lung adenocarcinoma. Clin. Epigenetics (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Paik P. K. et al. Response to met inhibitors in patients with stage iv lung adenocarcinomas harboring met mutations causing exon 14 skipping. Cancer discovery 5, 842–849 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Awad M. M. et al. Met exon 14 mutations in non–small-cell lung cancer are associated with advanced age and stage-dependent met genomic amplification and c-met overexpression. J. clinical oncology 34, 721–730 (2016). [DOI] [PubMed] [Google Scholar]
- 54.Ghosh P., Pecora I. & Park M. Mechanistic insights into met exon 14 skipping mutations and their role in tumor progression. Biochem. Soc. Transactions 53, 1181–1194 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Xue Q. et al. Met exon 14 skipping mutations in lung cancer: Clinical–pathological characteristics and immune microenvironment. Curr. Oncol. 32, 403 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Fujino T., Suda K. & Mitsudomi T. Lung cancer with met exon 14 skipping mutation: genetic feature, current treatments, and future challenges. Lung Cancer: Targets Ther. 35–50 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Lin J. J. et al. Ros1 fusions rarely overlap with other oncogenic drivers in non–small cell lung cancer. J. Thorac. Oncol. 12, 872–877 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Santarpia M. et al. A narrative review of met inhibitors in non-small cell lung cancer with met exon 14 skipping mutations. Transl. lung cancer research 10, 1536 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Zhang M. et al. Tgf-β signaling and resistance to cancer therapy. Front. cell developmental biology 9, 786728 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Kim M. et al. Patient-derived lung cancer organoids as in vitro cancer models for therapeutic screening. Nat. communications 10, 3991 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61.Kim S.-Y. et al. Modeling clinical responses to targeted therapies by patient-derived organoids of advanced lung adenocarcinoma. Clin. Cancer Res. 27, 4397–4409 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Nonchev K. et al. Deepspot: Leveraging spatial context for enhanced spatial transcriptomics prediction from h&e images. medRxiv 2025–02 (2025). [Google Scholar]
- 63.Mazumder R., Hastie T. & Tibshirani R. Spectral regularization algorithms for learning large incomplete matrices. J. Mach. Learn. Res. 11, 2287–2322 (2010). [PMC free article] [PubMed] [Google Scholar]
- 64.Rasmussen C. E. & Williams C. K. I. Gaussian Processes for Machine Learning (MIT Press, Cambridge, MA, 2006). [Google Scholar]
- 65.Hastie T. & Tibshirani R. Exploring the nature of covariate effects in the proportional hazards model. Biometrics 46, 1005–1016 (1990). [PubMed] [Google Scholar]
- 66.Bishop C. M. Pattern Recognition and Machine Learning (Springer, 2006). [Google Scholar]
- 67.Febrero-Bande M. & de la Fuente M. O. Statistical computing in functional data analysis: The r package fda.usc. J. Stat. Softw. 51, 1–28 (2012).23504300 [Google Scholar]
- 68.Kato S. et al. Real-world data from a molecular tumor board demonstrates improved outcomes with a precision n-of-one strategy. Nat. communications 11, 4965 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Gladstone B. P. et al. Systematic review and meta-analysis of molecular tumor board data on clinical effectiveness and evaluation gaps. NPJ precision oncology 9, 96 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 70.Gardeux V. et al. ‘n-of-1-pathways’ unveils personal deregulated mechanisms from a single pair of rna-seq samples: towards precision medicine. J. Am. Med. Informatics Assoc. 21, 1015–1025 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Schissler A. G. et al. Dynamic changes of rna-sequencing expression for precision medicine: N-of-1-pathways mahalanobis distance within pathways of single subjects predicts breast cancer survival. Bioinformatics 31, i293–i302 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Li Q. et al. N-of-1-pathways mixenrich: advancing precision medicine via single-subject analysis in discovering dynamic changes of transcriptomes. BMC Med. Genomics 10, 27 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 73.Schissler A. G., Piegorsch W. W. & Lussier Y. A. Testing for differentially expressed genetic pathways with single-subject n-of-1 data in the presence of inter-gene correlation. Stat. Methods Med. Res. 27, 3797–3813 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 74.Mariella E. et al. Transcriptome-wide gene expression outlier analysis pinpoints therapeutic vulnerabilities in colorectal cancer. Mol. Oncol. 18, 1460–1485 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 75.Zhu Z., Ihle N. T., Rejto P. A. & Zarrinkar P. P. Outlier analysis of functional genomic profiles enriches for oncology targets and enables precision medicine. BMC genomics 17, 455 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 76.Karrila S., Lee J. H. E. & Tucker-Kellogg G. A comparison of methods for data-driven cancer outlier discovery, and an application scheme to semisupervised predictive biomarker discovery. Cancer Informatics 10, CIN–S6769 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 77.Mori K., Oura T., Noma H. & Matsui S. Cancer outlier analysis based on mixture modeling of gene expression data. Comput. mathematical methods medicine 2013, 693901 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 78.Arribas-Gil A. & Romo J. Shape outlier detection and visualization for functional data: the outliergram. Biostatistics 15, 603–619 (2014). [DOI] [PubMed] [Google Scholar]
- 79.Dai W. & Genton M. G. Directional outlyingness for multivariate functional data. Comput. Stat. & Data Analysis 131, 50–65 (2019). [Google Scholar]
- 80.Ieva F. & Paganoni A. M. Depth measures for multivariate functional data. Stat. Methods Med. Res. 24, 625–645 (2015). [Google Scholar]
- 81.Tsimberidou A. M. et al. Molecular tumour boards: current and future considerations for precision oncology. Nat. Rev. Clin. Oncol. 20, 843–863 (2023). [DOI] [PubMed] [Google Scholar]
- 82.Patel M., Kato S. M. & Kurzrock R. Molecular tumor boards: realizing precision oncology therapy. Clin. Pharmacol. & Ther. 103, 206–209 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 83.Tamborero D. et al. The molecular tumor board portal supports clinical decisions and automated reporting for precision oncology. Nat. Cancer 3, 251–261 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 84.Fountzilas E., Tsimberidou A. M., Vo H. H. & Kurzrock R. Clinical trial design in the era of precision medicine. Genome Medicine 14, 101 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 85.National Comprehensive Cancer Network. Nccn biomarkers compendium. https://www.nccn.org/compendia-templates/compendia/biomarkers-compendium (2024).
- 86.Reardon B., Culhane A. C. & Van Allen E. M. Convergence of machine learning and genomics for precision oncology. Nat. Rev. Cancer 1–13 (2026). [DOI] [PubMed] [Google Scholar]
- 87.Liaw A. & Wiener M. Classification and regression by randomforest. R News 2, 18–22 (2002). [Google Scholar]
- 88.Wright M. N. & Ziegler A. ranger: A fast implementation of random forests for high dimensional data in c++ and r. J. Stat. Softw. 77, 1–17 (2017). [Google Scholar]
- 89.Breiman L., Cutler A., Liaw A. & Wiener M. randomforest: Breiman and cutler’s random forests for classification and regression. R package version 4.6–14 (2018). [Google Scholar]
- 90.Tarjan R. E. Depth-first search and linear graph algorithms. SIAM J. on Comput. 1, 146–160 (1972). [Google Scholar]
- 91.Zhou Z.-H. & Jiang Y. Medical diagnosis with C4.5 rule preceded by artificial neural network ensemble. IEEE Transactions on Inf. Technol. Biomed. 7, 37–42 (2003). [DOI] [PubMed] [Google Scholar]
- 92.Huysmans J., Baesens B. & Vanthienen J. Using rule extraction to improve the comprehensibility of predictive models. FETEW Research Report KBI 0612, Katholieke Universiteit Leuven; (2006). [Google Scholar]
- 93.Cormen T. H., Leiserson C. E., Rivest R. L. & Stein C. Introduction to Algorithms (MIT Press, Cambridge, MA, 2009), 3 edn. [Google Scholar]
- 94.Bénard C., Biau G., Da Veiga S. & Scornet E. Interpretable random forests via rule extraction. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, vol. 130 of Proceedings of Machine Learning Research, 937–945 (PMLR, 2021). [Google Scholar]
- 95.Mashayekhi M. & Gras R. Rule extraction from random forest: the RF+HC methods. In Advances in Artificial Intelligence (Canadian AI 2015), vol. 9091 of Lecture Notes in Computer Science, 223–237 (Springer, 2015). [Google Scholar]
- 96.Mashayekhi M. & Gras R. Rule extraction from decision tree ensembles: new algorithms based on heuristic search and sparse group lasso methods. Int. J. Inf. Technol. & Decis. Mak. 16, 1707–1727 (2017). [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
All data are publicly available through The Cancer Genome Atlas (TCGA) database and DeepSpot62.
Code implementing the functional depth analysis pipeline may be made available to researchers on reasonable request.






