SUMMARY
The tumor microenvironment (TME) critically shapes disease progression and therapeutic resistance. However, a comprehensive understanding of its spatial architecture remains elusive, and clinical translation is challenging. Here, we present CANVAS (Cellular Architecture and Neighborhood-informed Virtual AI-driven Spatial Profiling), an artificial intelligence platform that infers tumor ecological habitats from H&E histopathology. Built on an atlas of over 18 million cells profiled by 41-plex spatial proteomics across 457 patients with non-small cell lung cancer, CANVAS establishes 10 reproducible cellular neighborhoods (CNs) capturing conserved spatial organization of the TME. Through multimodal alignment and foundation model-based morphological encoding, CANVAS predicts CN-anchored habitat structures from H&E slides and enables clinical evaluation in over 5,000 patients spanning nine cancer types. Across patient cohorts, CANVAS supports prognostic modeling, spatial ecotype stratification, and immunotherapy outcome prediction. These results establish CANVAS as a clinically scalable platform for spatial profiling, bridging single-cell analysis to population-level insight and enabling precision oncology.
Graphical Abstract

In brief
CANVAS is a computational platform that decodes spatial tumor ecosystems from routine H&E histopathology to enable population-level prognostic modeling and immunotherapy response.
INTRODUCTION
The tumor microenvironment (TME) is a major determinant of cancer progression and therapeutic response, particularly in non–small cell lung cancer (NSCLC), a clinically heterogeneous malignancy1–3. The TME is a complex ecosystem comprised of multiple cell types and distinct cellular states operating through dynamic interactions across broad scales4. Within this landscape, various cell types spatially organize into ecological habitats that represent local niches defined by coordinated phenotypes and functional programs5. However, how multicellular architecture organizes into prognostically and therapeutically relevant spatial habitats remains poorly defined. Addressing this problem requires technology platforms that can spatially resolve cellular distributions and tissue-level organizations across patient cohorts6,7.
Spatial proteomic technologies have enabled spatially resolved, high-dimensional mapping of proteins in intact tissue8–10. Imaging-based platforms such as co-detection by indexing (CODEX) can resolve cell states, spatial hierarchies, and functional programs at single-cell resolution9,11. Using CODEX, previous studies have uncovered spatial relationships among tumor, immune, and stromal cells that are inaccessible with traditional bulk profiling11–13. In NSCLC, spatial features including immunosuppressive stromal niches and organized tumor–immune interfaces have been shown to correlate with prognosis14,15 and immunotherapy response16.
Despite its analytical power, the clinical deployment of spatial proteomics is hindered by high cost, technical complexity, and limited scalability. Moreover, most studies on spatial proteomics are confined to a small number of samples, which impacts the robustness and generalizability of the findings. By contrast, hematoxylin and eosin (H&E) histopathology remains the gold standard for cancer diagnosis, offering universal accessibility and compatibility with clinical workflows17,18. While H&E captures gross tissue architecture and cellular morphology19, it does not measure protein expression and cannot directly resolve detailed molecular circuits. This trade-off presents a major barrier to translating spatial biology into precision oncology7.
Bridging this gap requires a framework that integrates the molecular depth of spatial proteomics with the accessibility of histopathology. A central challenge lies in utilizing deep learning to identify biologically grounded and clinically informative spatial domains from whole-slide histopathology images. Although recent studies have shown the feasibility of inferring spatial protein expression from H&E images, the prediction accuracy is moderately low20–23. More importantly, these models lack the granularity needed to recover functionally coherent spatial structures.
To address this problem, we first delineated the single-cell spatial landscape of the lung tumor microenvironment by profiling over 18 million cells via 41-plex CODEX imaging across 457 tumors. We then constructed a taxonomy composed of 10 cellular neighborhoods (CNs), which capture the spatial topologies of tumor, immune, and stromal architectures conserved across histologic subtypes. Building on this taxonomy, we developed CANVAS, an AI platform that predicts CODEX-defined CNs based on standard H&E histopathology. CANVAS leverages a pretrained pathology foundation model for robust feature extraction, followed by multiscale spatial analysis to uncover informative ecological features. Applied to H&E slides from over 5,000 patients across nine cancer types, CANVAS enables prognostic modeling, molecular subtype stratification, and immunotherapy outcome prediction. Together, these findings establish CANVAS as a clinically scalable platform that bridges spatial proteomics and histopathology, with a potential for enabling the identification and translation of novel spatial biomarkers for precision oncology.
RESULTS
Distinct immune and stromal remodeling in lung cancer histologic subtypes
To spatially resolve the cellular architecture of the lung TME, we performed high-dimensional CODEX imaging on tumor samples from 457 NSCLC patients, comprising two tissue microarray (TMA) cohorts and ten whole-slide sections with matched H&E staining of the same tissue section (Fig. 1a). We used a validated 41-plex antibody panel targeting cell lineage and functional markers, enabling the classification of four major cellular compartments including epithelial, lymphoid, myeloid, and stromal, with further resolution of intra-lineage phenotypic diversity (Fig. 1b; Table S1). The panel included markers representing key functional programs such as proliferation, stemness, hypoxia, antigen presentation, and immune checkpoint activity. This enabled fine-grained annotation of cellular states, which is essential for decoding the spatial and functional heterogeneity of the TME.
Figure 1. Immune and stromal cell composition across lung cancer histologies.

a, Study design and workflow. b, The 41-marker CODEX panel spanning epithelial, lymphoid, myeloid, stromal, and functional programs. c, UMAP visualization of single-cell CODEX profiles, with 15 major cell types assigned by lineage-guided annotation. Abbreviations: Tcyto, cytotoxic T cell; Th, helper T cell; NK, natural killer cell; Treg, regulatory T cell; M1/M2, macrophage subtypes; EC, endothelial cell; SMC, smooth muscle cell; DC, dendritic cell; CAF, cancer-associated fibroblast. d, Heatmap of scaled expression of lineage markers across the 15 annotated cell types. e, Patient-level distribution of 14 non-epithelial cell types across adenocarcinoma (ADC) and squamous cell carcinoma (SCC), shown as a waterfall plot. Representative H&E images illustrate histologic architecture. f, Schematic of hierarchical lineage annotation into epithelial, immune, and stromal compartments using canonical and marker-defined features. g–j, Relative patient-level proportions of lymphoid (g), myeloid (h), stromal (i), and total immune (j) compartments in ADC and SCC. Mann–Whitney U test; *P < 0.05, **P < 0.01, ***P < 0.001.
We profiled and annotated tumor samples from 337 patients in TMA cohort 1 using a canonical marker–guided, unsupervised lineage classification framework (see Methods). This process allowed us to resolve 14 distinct microenvironmental cell populations in addition to epithelial tumor cells (Fig. 1c–f, S1a). Overall, endothelial cells (ECs) constituted the most abundant non-epithelial population, accounting for 10.4% of all cells. This was followed by helper T cells (Th, 9.6%), cancer-associated fibroblasts (CAFs, 8.2%), and neutrophils (6.5%) (Fig. S1b).
Comparative analysis of the two major histologic subtypes of NSCLC revealed distinct differences in microenvironmental composition between LUAD and LUSC. Immune cell infiltration was moderately higher in LUSC (43.7%) compared to LUAD (37.8%; P < 0.01), primarily due to an increased proportion of myeloid cells (21.8% vs. 14.8%; P < 0.001), while lymphoid and stromal compartments were largely similar (Fig. S1c). At the individual cell level, a more detailed analysis revealed neutrophils and M2 macrophages (M2) were more abundant in LUSC; whereas LUAD exhibited relative enrichment of Th, plasma cells, smooth muscle cells, and dendritic cells (DC) (Fig. S1b, S2a).
More granular histologic subtyping further reflected distinct patterns of cellular composition within the TME. In LUAD, progression from lepidic to solid patterns was associated with an increase in lymphoid lineages while LUSC showed minimal variation in the relative abundance of major TME compartments across subtypes (Fig. 1g–j). Single-cell analysis further delineated subtype-specific trends: in LUSC keratinization was associated with a significant expansion of CAFs (9.3% vs. 7.1%, P < 0.05) accompanied by a decreased infiltration of B cells (2.1% vs. 3.7%, P < 0.05) (Fig. S2b). Conversely, LUAD demonstrated an increase in adaptive immune constituents with increasing histologic grade, including cytotoxic T cells (Tc; 8.0% vs. 4.5% in solid vs. lepidic, P < 0.01), B cells (3.4% vs. 2.3%, P < 0.01), and Tregs (2.4% vs. 1.5%, P < 0.01) (Fig. S2b).
To investigate the association between TME composition and clinicopathologic features, we quantified cell-type proportions in each sample and integrated them with patient-level metadata, including demographics, tumor characteristics, molecular alterations, histologic subtypes, and survival outcomes (Fig. 2a–b). In LUSC, cancer cells were more abundant in advanced-stage tumors and those exhibiting lymphovascular or pleural invasion, whereas Tc, Th, and NK cells were enriched in early-stage tumors without pathologic evidence of invasion, reflecting a cytotoxic immune-infiltrated TME. CAFs exhibited selective expansion in keratinizing SCCs, suggesting stromal-driven modulation of squamous epithelial differentiation24 (Fig. 2a). In LUAD, Tc and Th cells were enriched in solid-predominant histology, early-stage disease, and smaller tumors, where their presence pointed toward an active adaptive immune landscape and correlated with a favorable prognosis (Fig. 2b). In poorly differentiated tumors, neutrophils and M2 were enriched in subgroups with higher invasive potential, consistent with pro-tumorigenic inflammation and immunosuppressive remodeling associated with aggressive disease phenotypes25 (Fig. 2b). Although TME compositional features correlated with clinical parameters, their limited prognostic utility suggested that additional higher-order spatial relationships may contribute to tumor progression26.
Figure 2. Spatial cell–cell interaction networks and topological rewiring in the NSCLC tumor microenvironment.

a–b, Associations between cell-type frequencies and clinicopathologic variables in SCC (a) and ADC (b). Bubble plots show significance (−log10FDR) and direction of association. Mutation status includes EGFR, ALK, ROS1, or KRAS alterations. MCT, mast cell tryptase percentage. c, Schematic of spatial interaction and co-occurrence analyses. d–e, Permutation-derived spatial interaction matrices showing scaled pairwise interaction landscapes across major NSCLC subtypes (ADC and SCC; d) and histologic subtypes (e), with ADC grouped into low-grade and high-grade tumors and SCC stratified into keratinizing and non-keratinizing subtypes. f, Forest plot of associations between cell–cell interaction strength and overall survival using Cox proportional hazards models. g, GNN-derived cell–cell topological network constructed from spatial cell graphs across the NSCLC cohort. h, Representative tumor-centered triplet motifs identified by integrating GNN-derived topology and survival associations. i–j, Representative CODEX images of tumor-centered triplet motifs, including lymphoid-enriched configurations (i) and myeloid–stromal arrangements (j).
Spatial topology sculpts immunoregulatory architecture in lung cancer
We delineated the intercellular spatial interaction network of the lung TME with a focus on subtype-specific differences in cellular organization. To do this, we applied a permutation-based approach to quantify pairwise spatial interactions between cell types, complemented by co-occurrence analysis at the sample level (Fig. 2c; see Methods). In LUAD, tumor cells were spatially insulated from Tc and Th cells, consistent with limited cytotoxic engagement; whereas neutrophils were preferentially localized near M2 macrophages and ECs, forming interaction patterns associated with immunosuppressive and angiogenic remodeling (Fig. 2d, box a-b). In LUSC, Tc and Th cells were more frequently positioned adjacent to stromal and myeloid compartments, including CAFs, M2 and ECs (Fig. 2d, box c; S2c), suggesting a subtype-specific redistribution of immune effectors away from tumor cells.
We further evaluated how intercellular networks evolve with histologic progression. In LUAD, compared with other histologic patterns, high-grade patterns (micropapillary and solid) showed increased crosstalk between cancer cells and neutrophils, ECs, M1 macrophages, and B cells in spatial interaction analysis. This was accompanied by diminished tumor–Tc interactions despite increased Tc in high-grade tumors (Fig. 2e; box a). The spatial proximity of neutrophils, ECs, and tumor cells suggests a pro-metastatic vascular gateway that may facilitate vascular invasion and tumor dissemination27. In high-grade LUSC (non-keratinizing), spatial interactions between M2 macrophages and both T lymphocytes and NK cells were enhanced, consistent with the formation of immunosuppressive niches that may constrain effective anti-tumor immunity (Fig. 2e; box b). Additionally, co-occurrence analysis showed that dendritic cells tended to co-aggregate with CAFs, M2 macrophages, and ECs (Fig. S2d, box a). In contrast, keratinizing LUSC exhibited a fibrotic exclusion-like architecture, with CAFs remaining spatially adjacent to Tc, Th, B cells, and NK cells (Fig. 2e, box c). ECs showed strong co-occurrence with M2 macrophages, CAFs, and B-lineage cells, likely forming perivascular exclusion zones with decreased T cell infiltration (Fig. S2d, box b). Despite architectural differences, LUAD and LUSC shared a conserved immunoregulatory tumor microenvironment. Within this shared tumor-immune landscape, subtype-adjusted survival analyses revealed that tumor cell interactions with neutrophils as well as lymphoid interactions with M2 and CAFs were associated with adverse prognosis, whereas Tc engagement with Th, B, and plasma cells correlated with favorable outcomes (Fig. 2f).
To investigate higher-order cellular interactions beyond pairwise proximity and decode spatial topologies, we applied graph neural networks (GNNs) to spatially resolved cell–cell graphs across the NSCLC cohort (see Methods). This analysis revealed a conserved immunoregulatory hub comprising tumor cells, Tc, Th, M2 macrophages, CAFs, ECs, and neutrophils (Fig. 2g), which consistently occupied central network positions and orchestrated TME organization. To further dissect the architecture of these regulatory cores, we enumerated all three-cell motifs by integrating GNN-derived node centrality with edge density and ranked them using robust rank aggregation (RRA, see Methods). We identified 24 topologically enriched triplets (FDR < 0.01), of which 12 were significantly associated with patient prognosis (Fig. 2h). High-risk motifs were dominated by tumor-associated myeloid and stromal triplets (e.g., M2–tumor–CAF, neutrophil–tumor–CAF), reflecting a fibroinflammatory axis of immune suppression, whereas protective motifs incorporated effector lymphocytes and ECs (e.g., Tc–tumor–Th, EC–tumor–B), supporting cytotoxic engagement and vascular accessibility (Fig. 2h–j).
Together, these results underscore the importance of single-cell spatial analysis to capture fundamental TME biology. Our findings suggest that NSCLC progression emerges along two interrelated axes: one driven by shifts in cellular composition, and the other sustained by intercellular interactions that establish an immunoregulatory circuitry. These spatial topological architectures were conserved across histologic subtypes, suggesting a unifying structural framework that integrates tumor progression with spatially coordinated immune modulation.
Cellular neighborhoods underpin prognostic ecological units in lung cancer
In NSCLC, spatially organized cell states form recurrent multicellular patterns that collectively define hierarchical niches composed of distinct immune and stromal lineages1. Due to their topological recurrence, these multicellular configurations provide a spatially conserved scaffold for decoding TME heterogeneity across tumors28. To systematically delineate these multicellular networks, we applied an unsupervised clustering algorithm that defined spatially resolved cellular neighborhoods (CNs) by aggregating lineage-annotated cells within a fixed radius (Fig. 3a, S3a; see Methods). This analysis revealed 10 CNs that capture archetypal tissue ecologies with distinct tumor-immune or stromal imprints: tumor core (CN01), macrophage-enriched niche (CN02), B-cell niche (CN03), stromal-fibrotic domain (CN04), plasma cell cluster (CN05), neutrophil-rich zone (CN06), tumor–immune interface (CN07), T cell compartment (CN08), pan-immune activation zone (CN09), and vasculature niche (CN10) (Fig. 3b, d–f).
Figure 3. Cellular neighborhoods define prognostic ecological units and spatial immune barriers in NSCLC.

a, Schematic of cellular neighborhood definition from local cell-type composition within a fixed radius. b, Heatmap showing scaled lineage enrichment across the 10 CNs, delineating spatial compartments defined by major cell lineages. c, Forest plot of hazard ratios from univariable Cox analysis of CN abundance for overall survival. d, Representative CN Voronoi maps from four samples showing CN distributions across ADC and SCC. e–f, Representative CODEX images illustrating CN spatial organization based on marker co-expression patterns. g, Circos plot summarizing the distribution and prognostic significance of 64 cell phenotypes across CN-defined CEUs. Five concentric tracks are shown from the outermost to the innermost: (1) phenotype identity; (2) CEU relative enrichment within each CN; (3) scaled fold-changes between ADC and SCC, with blue bars indicating SCC enrichment; (4) statistical significance of subtype differences, where red points denote FDR < 0.01; and (5) representative CEUs with prognostic associations within each CN. An adjacent bubble plot summarizes the number of prognostically significant CEUs (log2-transformed) per CN. h, Kaplan–Meier curves for overall survival of eight selected CEUs. i, Volcano plot comparing differential proximity of FAP+ CAFs to other cell types between CN07 and CN01. j, Scaled spatial proximity density of FAP+ CAFs or HIF1A+/Ki67+ neutrophils with CD8+ T cell subsets across CN domains. k, Density plots of intercellular distances between FAP+ CAFs or HIF1A+/Ki67+ neutrophils and CD8+ T cell across CN01, CN07, and other CNs. l, Schematics of barrier score calculation based on shortest spatial paths linking cytotoxic T cells and tumor cells under CAF-defined spatial constraints. m, Barrier score distributions in LUAD and LUSC stratified by early- and advanced-stage disease. n, Kaplan–Meier curves of PFS comparing high and low barrier score groups in stage I NSCLC. *P < 0.05, **P < 0.01.
Our analysis revealed that CN06 (neutrophil-rich zone) was enriched in poorly differentiated, large LUAD tumors, whereas CN08 (T-cell compartment) was associated with less invasive, smaller tumors in both subtypes (Fig. S3b–c). We performed univariate Cox regression analysis to evaluate the prognostic associations of CN-level enrichment and found that tumor-associated, fibrotic, and neutrophilic structures (CN01, CN04, and CN06) were linked to unfavorable prognosis, whereas B cell, plasma cell, T cell, and tumor–immune interface neighborhoods (CN03, CN05, CN07, and CN08) were linked to favorable clinical outcomes (Fig. 3c). These associations were reproduced in an independent NSCLC cohort, supporting the cross-cohort consistency of CN-based distribution patterns (Fig. S3d–f). Collectively, these findings support that CNs are biologically defined, clinically informative spatial domains that are conserved across histologic subtypes in NSCLC.
To further resolve intra-neighborhood complexity, we defined cell state–resolved ecological units (CEUs) by expanding the cellular hierarchy to include 64 phenotypic cell states (Fig. S3g; Table S3). Quantification of these refined phenotypes within each CN revealed how distinct functional programs shape the cellular composition and organization of spatial niches. Correlation of CEU profiles with clinical trajectories uncovered robust subtype-associated patterns and prognostic associations (Fig. 3g). A dichotomous pattern was evident, where CEUs defined by pro-tumorigenic and fibro-inflammatory programs within CN01, CN04, and CN06 were correlated with diminished survival expectancy. Conversely, lymphoid–endothelial CEUs located in CN03, CN08, and CN10 were preferentially associated with improved survival (Fig. 3g–h).
At the cell-state level within CEUs, CN01 was enriched in PanCK+ tumor cells, CD44+ stem-like subsets, and Ki67+ proliferative populations, whereas E-cadherin+ tumor cells marked a more preserved epithelial state with limited epithelial–mesenchymal transition (EMT)29–31. Within CN04, the accumulation of matrix-associated CAFs (mCAFs) and HIF1A+ fibroblasts reflected a desmoplastic niche with a hypoxia-driven fibrotic program (Fig. 3g). CN06 was dominated by activated neutrophil states, including Ki67+/HIF1A+ subsets, consistent with a hypoxic and potentially pro-tumorigenic neutrophil program associated with worse outcomes (Fig. 3g–h)32. In contrast, immunocompetent ecological units demonstrated features of coordinated immune surveillance. CN03 featured an enrichment of B cells expressing HLA-A/E and HLA-DR, supporting antigen presentation and humoral immunity within the tumor milieu33. CN08 was enriched with cytotoxic CD8+ T lymphocytes expressing granzyme B and CD4+ T helper cells, consistent with sustained effector activity and adaptive immune activation34 (Fig. 3g–h).
Analysis of CN07 revealed a spatially distinct CEU at the tumor–immune interface, characterized by the coexistence of pro- and anti-tumor features (Fig. 3e–f, 3g). Compared with tumor core CN01, this niche uniquely integrated CD8+ T cells and their GZMB+ effector subset with Ki67+ tumor cells, HIF1A+/Ki67+ neutrophils, and FAP+ CAFs, establishing a microenvironment marked by ambivalent immunomodulation (Fig. 3g, 3i, S4a–b). To investigate the structural logic of this composite microenvironment, we resegmented all tissue sections using CN boundaries and quantified a spatial metric termed proximity density between CD8+ cytotoxic T cells and key cellular subsets, including FAP+ CAFs and HIF1A+/Ki67+ neutrophils (see Methods). Proximity density reflects the degree of spatial co-localization normalized by the local abundance of the interacting cells within each CN. Among all CNs, CN07 exhibited the highest proximity density between CAFs and cytotoxic T cells (Fig. 3j), suggesting a concentrated spatial association within this niche and indicating a dense, spatially restricted interface. These immune–stromal pairs were positioned at significantly shorter intercellular distances in CN07 than in tumor core CN01, suggesting a compact stromal architecture associated with local cytotoxic T-cell exclusion at the invasive margin (Fig. 3k, S4c).
To quantify the extent of stromal insulation, we computed a barrier score derived from topological tumor graphs35, which measures the degree to which stromal elements, particularly FAP+ CAFs, spatially interpose between CD8+ T cells and proliferating tumor cells (Fig. 3l). The triplet-derived barrier score showed a stage-associated pattern, with relatively higher values in early-stage tumors (stage I–II) than in advanced-stage tumors (stage III–IV) (Fig. 3m; Fig. S4d). This pattern suggests that CAF-mediated insulation is more apparent in early lung cancer, consistent with the presence of a more intact desmoplastic rim in which boundary-localized CAFs and aligned ECM programs can enforce T cell exclusion at the tumor–stroma interface36. Clinically, elevated barrier scores were associated with worse progression-free survival (PFS) in NSCLC (Fig. S4e), particularly among stage I patients (P = 0.004; HR [95% CI]: 2.06 [1.25–3.41]; Fig. 3n).
We next expanded the analysis to 64 phenotypic cell states to identify more granular CNs. Using this expanded taxonomy, we identified 20 distinct CNs representing discrete cellular niches. Among these, CN04 delineated a hypoxic–proliferative domain characterized by the co-localization of LAG3+ CD4+ T helper cells co-expressing VISTA, HIF1A+ neutrophils, and Ki67+ tumor cells. CN17 defined an immunoregulatory niche enriched for Breg-like cells, Tregs, Th2-like cells, and PD-1+ CD4+ T cells (Fig. S4f–g). Both CN04 and CN17 showed adverse prognostic effects, with their abundance correlated with poor patient outcomes (Fig. S4i–j). Although the 20-CN model resolved finer-grained niches, the original 10-CN model showed greater compositional purity and lineage homogeneity, supporting a more stable representation of the lung TME (Fig. S4h). Overall, these results establish CNs as spatially resolved tumor architectures, wherein cell-state ecological units bridge functional diversity with multicellular structure to inform clinical outcomes.
CANVAS enables prediction of tumor habitats from whole-slide histopathology
By defining CNs as spatially recurrent ecological domains, we established a taxonomy that captures TME heterogeneity through conserved cell-state programs and architectural patterns. While this provides important insight into TME biology, CODEX-based spatial proteomics is not practical for routine clinical applications. Hematoxylin and eosin (H&E) histopathology, however, is widely used in clinical diagnosis and advanced computational modeling offers an opportunity to reveal the subtle relationships between molecular phenotypes and morphological patterns37,38. Motivated by this, we developed CANVAS (Cellular Architecture and Neighborhood-informed Virtual AI-driven Spatial profiling). CANVAS predicts tumor ecological habitats from standard H&E histology and comprises two integral modules (Fig. 4a; see Methods). First, we adapted a vision–language foundation model pretrained on millions of paired histopathology images and semantic annotations to predict CODEX-defined CNs as spatial habitats directly from H&E slides. Second, we constructed clinical outcome prediction models based on habitat-centric spatial features to capture biologically relevant patterns and enable histopathology-based patient stratification. Together, these modules support scalable and clinically translatable spatial diagnostics for precision oncology.
Figure 4. CANVAS enables accurate prediction of tumor habitats from whole-slide histopathology with prognostic and immunogenomic correlates.

a, Schematic of CANVAS predicting CODEX-derived CN annotations from paired H&E images. b, Confusion matrices showing CANVAS classification performance in the training, validation, and testing sets. c, Representative CANVAS-derived habitat maps, tumor probability maps, and H&E slides from two TCGA samples. d, Representative H&E regions defining tumor bulk and leading-edge tissue compartments. e, Bubble plots showing survival associations of habitat abundance in tumor bulk and leading-edge regions in the TCGA-LUAD cohort. f, Consensus clustering of habitat compositions identifying four spatial ecotypes (C-I to C-IV) across lung cancer tissues. g, Gene-level copy number alterations associated with spatial ecotypes, summarized as log2 odds ratios. h, Heatmap of somatic mutation enrichment across spatial ecotypes, with mutation frequencies z-score normalized. i, Representative pathways differentially enriched across the four spatial ecotypes. j, Distribution of immunotherapy-related gene signature scores across ecotypes. Associations between ecotypes and continuous molecular features were assessed by ANOVA. *P < 0.05; **P < 0.01; n.s., not significant.
The first module of the CANVAS approach comprised four core components: (1) annotation of CODEX-defined CNs as the ground truth for H&E-based habitat prediction; (2) automated nuclear segmentation and localization on H&E-stained sections; (3) single-cell spatial co-registration of CODEX and H&E images on the same tissue to align CN identities with histology; and (4) foundation model-driven prediction of CODEX-defined CNs using H&E as input (Fig. 4a; see Methods). This pipeline enables the precise transfer of spatially informative CNs from high-plex CODEX to standard H&E images, supporting histology-native spatial diagnostics.
To support model development, we curated a multimodal dataset of CODEX/H&E image patches (224 × 224 pixels) from whole-slide images (WSIs) and tissue microarray, with patch labels assigned through cell-level CODEX–H&E co-registration (see Methods). After quality control, each patch was assigned to one of 10 CN labels based on CODEX analysis. The WSI cohort was split into training (n = 8 WSIs) and validation (n = 2 WSIs) sets, whereas TMA cohort 2 was used as an independent test set. As a result, CANVAS demonstrated robust patch-level generalizability across training, validation, and independent test sets, achieving high classification performance with accuracy exceeding 0.83, F1 scores above 0.79, and Kappa coefficients above 0.80 (Fig. 4b; Fig. S5a). In benchmarking analysis, CANVAS consistently outperformed both established pathology foundation models and traditional convolutional neural networks for habitat prediction (P < 0.01; Fig. S7a). Beyond these benchmarks, CANVAS maintained strong performance for varying H&E resolutions, with comparable accuracy between ×40 and ×20 magnifications (Fig. S7b). Finally, CANVAS remained robust across different patch extraction strides, with nonoverlapping tiling yielding performance comparable to tiling with up to 75% overlap and accuracy consistently exceeding 0.85 (Fig. S7c; see Methods).
These results established the technical robustness of CANVAS for habitat inference from routine H&E images. We next applied CANVAS to three NSCLC cohorts, including TCGA, PLCO, and NLST, covering both LUAD and LUSC histologies. CANVAS accurately mapped spatial habitat architectures and identified recurrent habitat-level patterns linked to clinical outcomes (Fig. 4c–e). In TCGA-LUAD, higher abundances of H01, H04, and H06 were associated with poor survival, whereas H03, H05, and H08 were associated with favorable prognosis, consistent with our CODEX-based findings (Fig. 4e). These associations were refined by regional partitioning into tumor bulk and leading-edge compartments (Fig. 4d–e; see Methods). Similar prognostic patterns were observed in the PLCO and NLST cohorts, where higher relative abundances of H01, H04, and H06 were generally associated with adverse outcomes, whereas H03 and H08 were associated with favorable prognosis (Fig. S6a, S6d–e).
To assess the broader applicability of CANVAS, we applied the model to same-section CODEX–H&E data from 17 specimens spanning 12 tumor types. In this benchmark, CANVAS showed concordance between H&E-predicted and CODEX-derived habitat profiles across diverse tumor contexts (Fig. S7d). Orthogonal validation using same-section ST–H&E samples further showed agreement between H&E-predicted and ST-derived habitat profiles (Fig. S7e). We then extended the analysis to 3,724 H&E slides from eight TCGA cancer types, revealing CANVAS-inferred habitats showed recurrent but cancer type–dependent prognostic associations beyond lung cancer (Fig. S7f).
CANVAS defines spatial ecotypes associated with immunogenomic features
To assess relationships between histology-inferred tumor habitats and immunogenomic features, we compared CANVAS-predicted spatial architectures with transcriptome-deconvoluted cellular composition and signatures in TCGA-LUAD cohort (see Methods). This analysis revealed coordinated enrichment patterns, where H06 correlated with neutrophil abundance, while H03 and H08 clustered with adaptive immune modules enriched for B and T cells (Fig. S5b–d).
Building on these associations, we performed unsupervised consensus clustering of tumor habitat proportions in TCGA-LUAD cohort, which revealed four tumor clusters or ecotypes with distinct spatial architecture profiles (Fig. 4f). C-I (myeloid-inflamed) was dominated by habitats H05 and H06, indicative of an inflammatory neutrophil-rich and innate-oriented TME. C-II (fibrotic) featured a fibrotic habitat H04 with minimal immune infiltration. C-III (tumor-enriched) was mainly composed of habitats H01 and H07, characterized by high tumor purity and low stromal and immune content. C-IV (immune-active) exhibited coordinated enrichment of lymphocyte-abundant habitats (H03, H08) (Fig. 4f). Although spatial ecotypes showed partial correspondence with established TME classifiers39, they demonstrated substantial independence from bulk transcriptome-based classifications (Cramér’s V = 0.18; Fig. S5e). These spatial ecotypes stratified survival outcomes across various clinical endpoints (log-rank P < 0.05; Fig. S6b–c), and remained independently prognostic for OS and DSS in multivariable Cox models adjusted for clinicopathologic covariates (Fig. S6f–g).
To enhance the biological interpretability of CANVAS-defined spatial ecotypes, we integrated each cluster with multi-omic features encompassing somatic alterations, oncogenic signaling, and immunotherapy-relevant transcriptional programs. C-I was characterized by co-amplification of BCL2 and BRAF, consistent with enhanced survival and proliferative signaling40,41. Upregulation of CYP51A1 further suggested altered cholesterol biosynthesis42. C-II exhibited deletions in MTOR and RAP1GAP, in line with dysregulated PI3K and Rap1 signaling, while modest SOX2 amplification was compatible with increased epithelial plasticity43. C-III, defined by gains in CDKN1A, TRAF5, and TGFB2, reflected a tumor-rich phenotype with active TGF-β signaling44. In contrast, C-IV showed amplification of HIF1A and immune checkpoint loci (CD274 and PDCD1LG2), denoting a hypoxia-adapted, immune-infiltrated ecotype with potential immunotherapy relevance45 (Fig. 4g). Complementary analysis of SNV profiles reinforced these ecotypic distinctions. C-I harbored mutations in BRCA1 and FGFR2, consistent with alterations in DNA repair and RTK signaling46,47. C-II featured alterations in PTEN, JAK1, TSC1, and EPAS1, suggestive of disrupted immune and hypoxia-related signaling48. C-IV was enriched for mutations in EP300, MSH6, and MACF1, associated with immunogenicity, mismatch repair deficiency, and cytoskeletal remodeling49. Conversely, C-III displayed a sparse mutational burden dominated by EGFR mutations, consistent with an EGFR-driven and less immune-infiltrated tumor state50 (Fig. 4h).
Each CANVAS-defined ecotype exhibited distinct transcriptional programs reflective of its spatially encoded microenvironment. C-I activated Toll-like receptor signaling, consistent with neutrophil-driven innate inflammation and limited lymphoid infiltration51. C-II upregulated mesenchymal reprogramming pathways, including EMT, MAPK4/6-associated signaling, and RUNX2 activity, characteristic of a fibrotic and immunologically quiescent stromal niche52. C-III, associated with EGFR mutations and a paucity of lymphoid infiltration, was characterized by heightened expression of cell cycle regulators, including G2/M checkpoint and mitotic spindle genes, suggestive of a hyperproliferative tumor-rich ecotype53. By contrast, C-IV demonstrated a robust immune activation program encompassing IFN-γ response, cytokine–receptor interactions, and lymphocyte receptor pathways, consistent with its densely vascularized and immune-infiltrated microenvironment54 (Fig. 4i).
Finally, immunotherapy-associated genomic and transcriptomic signatures further delineated the functional divergence across ecotypes (Table S4). C-IV exhibited enrichment of IFN-γ response (IFN-γ score), expanded immune gene signature (EIGS), and tertiary lymphoid structures (TLS) scores54,55, highlighting a strong adaptive immune response. C-II displayed activation of a stromal EMT–TGFβ axis56, consistent with desmoplastic remodeling and immune exclusion — features linked to resistance to ICB. Although both C-I and C-II harbor elevated tumor mutational burdens, their immunosuppressive features likely neutralize neoantigen-driven immunogenicity, thereby impairing the anti-tumor immune response57,58 (Fig. 4j). These results highlight the therapeutic relevance of the CANVAS-defined spatial ecotypes in the context of immunotherapy.
CANVAS-guided multiscale spatial analysis reveals determinants of immunotherapy benefit
There is an unmet clinical need for reliable predictive biomarkers of immunotherapy response. Traditional biomarkers such as PD-L1 expression lack sufficient predictive power, while genomic and transcriptomic analyses obscure spatial heterogeneity by collapsing into bulk signatures59. CANVAS addresses these limitations through an interpretable AI workflow by extracting habit-atinformed multiscale spatial features that reflect ecological diversity, interdomain coupling, and topographic organization, thereby enabling biologically grounded prediction of therapeutic response (Fig. 5a; see Methods).
Figure 5. Spatial analysis of H&E-derived tumor habitats identifies a signature predictive of immunotherapy outcomes.

a, Schematic overview of CANVAS for habitat inference and outcome prediction in immunotherapy cohorts. b, Integrated habitat co-occurrence and prognostic network in the discovery ICB cohort. Node size denotes habitat abundance, edge width indicates co-enrichment strength, edge color reflects Pearson correlation, and inner node color encodes PFS association. c, Heatmaps comparing pairwise habitat co-occupancy profiles between responders and non-responders based on Jaccard index analysis. d, Bubble plots showing associations between habitat-level spatial dispersion features and immunotherapy PFS. e, RRA-based ranking of samples using spatial features, with representative H&E images showing immune- and stromal-enriched patterns. f, Density plot of spatial transition entropy across samples in the discovery cohort. g, GNN-derived habitat connectivity network showing inter-habitat organization. h, Schematic of feature selection and model construction for PFS prediction. i, Forest plot of β coefficients for the 13 spatial habitat features retained in the Cox prognostic model. j, Time-dependent AUCs for PFS prediction at 6, 12, and 24 months in the discovery cohort. k–l, Kaplan–Meier curves for PFS stratified by the spatial signature in all patients from the discovery cohort (k) and in PD-L1-negative tumors (TPS < 1%; l). m, Time-dependent AUCs for PFS prediction at 6, 12, and 24 months in the CMB cohort. n, Kaplan–Meier curves for PFS stratified by the spatial signature in PD-L1-positive tumors (TPS ≥ 1%) from the discovery cohort. o, Kaplan–Meier curves for PFS stratified by the spatial signature in the CMB cohort. *P < 0.05; **P < 0.01.
To translate this spatial modeling paradigm into actionable analytics, we applied CANVAS to a discovery cohort of 149 advanced NSCLC patients treated with immunotherapy (Fig. 5a). For each patient, a total of 262 spatially grounded features were extracted (Table S5), which were divided into six groups: (1) Composition, capturing the relative abundance of each habitat within tumor sections (n = 10); (2) Diversity60, representing the ecological complexity of habitat mixtures (n = 6); (3) Spatial dispersion61, capturing habitat-level aggregation and distribution patterns via multiscale spatial statistics (n = 90); (4) Interaction, modeling inter-habitat coupling based on pairwise proximity patterns (n = 100); (5) Distance, quantifying absolute spatial segregation between habitat pairs (n = 55); and (6) Transition62, an entropy-based, non-distance metric reflecting spatial intermixing (n = 1) (Table S5; see Methods).
Five habitats (H01, H04, H06, H07, H08) emerged as the most abundant spatial domains in NSCLC. Co-localization analysis revealed recurrent pairing of H03 with H08, consistent with coordinated lymphoid organization, and of H02 with H10, suggestive of immune–vascular interface zones (Fig. 5b, S8a). In contrast, H01 was spatially excluded from H04 and H08, reflecting immune-privileged tumor cores insulated from stromal or lymphoid infiltration (Fig. 5b, S8a). In the discovery cohort, enrichment of H01 and H06 was associated with inferior PFS, whereas the presence of H02, H07, and H08 delineated immune-active ecosystems predictive of clinical benefit from ICB (Fig. S8b). To further resolve habitat-level spatial co-occupancy associated with immunotherapy response, we stratified tumors by ICB outcome and calculated the Jaccard index, which quantifies the degree of shared occupancy between each pair of habitats across tumors. Compared with non-responders, responders showed increased spatial contiguity between immune-supportive habitats (H08) and resistance-associated niches (H01, H04, H06) (Fig. 5c), suggesting a more permissive spatial interface between immune-active and tumor-associated regions.
We next evaluated the predictive value of habitat-level spatial dispersion. High Ripley’s K and L values in H06 and H10 indicated tightly clustered neutrophil-rich and vascular regions, which were linked to shorter PFS and suggest the formation of inflammatory niches that may impair therapeutic response63 (Fig. 5d, S8c). Conversely, higher F-function values in H01 and increased kernel density in H03 and H08 correlated with prolonged PFS, associated with favorable spatial organization of tumor and immune-supportive habitats64 (Fig. 5d). To identify spatial phenotypes associated with ICB response, we applied RRA to prioritize candidate features across patients, revealing response-linked spatial specificity among prioritized features (Fig. 5e). Among responders, tumors exhibited high abundance of H03 and H08, elevated Shannon diversity, and increased kernel density in H08, consistent with lymphoid-enriched immune organization. In contrast, non-responders were characterized by dominant H01 and H04 habitats together with increased Fisher’s alpha, consistent with a heterogeneous but fibrotic and immune-restricted spatial phenotype65 (Fig. 5e). These two phenotypes also exhibited opposing distributions along the STE ranking, supporting a link between spatial transition complexity and differential ICB responsiveness (Fig. 5f). We further assessed the inter-habitat spatial connectivity by conducting GNN-based connectivity analysis, which identified H01, H04, H06, and H08 as central interaction hubs in NSCLC (Fig. 5g). Collectively, these multiscale spatial features delineate a complex TME landscape that exerts a substantial impact on immunotherapy benefit.
Habitat-informed spatial signature predicts immunotherapy outcomes
Given the strong association between habitat features and immunotherapy response, we set out to develop a habitat-informed spatial signature that could predict immunotherapy outcomes. In the discovery cohort, we applied CANVAS to pre-treatment H&E images and computed 262 habitat-based spatial features for each patient. We sequentially applied two independent machine learning–based feature selection strategies following redundancy reduction, and then trained a multivariable Cox proportional hazards model for PFS (Fig. 5h; see Methods).
The final spatial signature included 13 habitat-based features (Fig. 5i; S8d). Among these, protective features (β < 0) primarily reflect immune-activated TME phenotypes. Representative features included co-localization of H08 and H03, suggesting coordinated T- and B-cell organization and TLS-like structures, together with H01–H03 spatial adjacency and elevated habitat richness, consistent with structured immune ecosystems associated with favorable outcomes55,66 (Fig. 5i). By contrast, risk features (β > 0) captured TME architectural mechanisms of resistance to ICBs. High frequency of H06 was associated with accumulation of neutrophil-rich habitats, consistent with N2-like TAN features67. H04–H09 interactions indicated fibrotic and immunosuppressive spatial coupling36,68, whereas frequent H05–H03 contact suggested altered humoral immune organization involving B cells and plasma cells69. Close spatial association between H02 and H09, together with elevated pair correlation in H02, was consistent with macrophage-rich immunosuppressive niches and M2-like polarization70,71 (Fig. 5i).
In the discovery cohort, the spatial signature showed strong performance for predicting PFS after immunotherapy, with time-dependent AUCs of 0.75, 0.73, and 0.71 for 6-, 12-, and 24-month PFS, respectively (Fig. 5j). Notably, the spatial signature outperformed tumor PD-L1 expression (24-month AUC, 0.54) and the enrichment of individual spatial habitats, distinguished ICB response groups, and significantly stratified immunotherapy-treated patients by PFS in the discovery cohort (HR = 2.42 [1.55, 3.55], P < 0.001; Fig. 5k, S8e–f). This stratification remained significant across patient subgroups defined by PD-L1 expression (TPS < 1% and TPS ≥ 1%; Fig. 5l and 5n). The spatial signature also identified subgroups with immunotherapy-associated outcomes within EGFR- and KRAS-mutant tumors, molecular subtypes traditionally considered refractory to ICB72,73 (Fig. S8g–h). The spatial signature remained predictive across therapeutic modalities, including ICB monotherapy and combination ICB–chemotherapy regimens (Fig. S8i–j). Importantly, the CANVAS-derived spatial signature outperformed established immunotherapy biomarkers (TMB, PD-L1, and TLS), further improved prediction of PFS when integrated with them (P < 0.05; Fig. S8k), and remained an independent predictor of PFS in multivariable models (P = 0.002; Fig. S8l).
Finally, we applied CANVAS to an external validation cohort of 40 immunotherapy-treated patients whose pre-treatment H&E images and clinical outcomes were obtained from the CMB Project. The derived spatial signature retained strong predictive performance, with AUCs of 0.79, 0.79, and 0.75 for 6-, 12-, and 24-month PFS, respectively (Fig. 5m). It also significantly stratified patients by PFS (HR = 4.56 [1.44–14.39], P = 0.01; Fig. 5o), underscoring its potential as a clinically relevant, spatially informed biomarker of immunotherapy benefit.
DISCUSSION
In this study, we developed CANVAS, a computational approach that infers tumor ecological habitats from standard H&E histopathology. Through spatial proteomic profiling of over 18 million cells from 457 patients, we identified 10 cellular neighborhoods (CNs) that capture multicellular architectures in the lung TME. CANVAS infers these CN-anchored spatial structures directly from whole-slide H&E images, enabling histology-native tumor microenvironment profiling. We applied CANVAS to H&E slides from over 5,000 patients and demonstrated its capability for population-scale prognostic modeling, molecular subtype classification, and immunotherapy response prediction. These findings establish AI-driven integration of spatial proteomics and histopathology as a scalable approach for defining spatial ecotypes that inform precision cancer therapy.
We resolved lineage-specific ecological programs in NSCLC, with LUAD progression linked to coordinated B cell and cytotoxic T cell infiltration, whereas LUSC keratinization was associated with CAF-, M2 macrophage-, and neutrophil-rich remodeling accompanied by lymphoid depletion, together defining distinct modes of TME reprogramming. Conserved tumor-centric triplet motifs across subtypes further suggested that recurrent higher-order spatial interactions provide a regulatory scaffold for tumor ecological evolution.
To define the interscale logic of spatial architectures, we identified 10 CNs that integrate local cellular programs and topological features into spatially coherent microdomains. Unlike prior studies based on small TMA cores prone to sampling bias, we analyzed both TMAs and whole-slide tissue sections from large patient cohorts, enabling robust CN construction that captures intratumoral heterogeneity while preserving intertumoral diversity. We show that CN06, an immunosuppressive niche enriched in neutrophils, was associated with inferior survival and resistance to anti-PD-1 immunotherapy, supporting TAN-targeted strategies such as CXCR1/2 inhibition with SX-682, which is under clinical evaluation in NSCLC and colorectal cancer74. We also identified CN07, a tumor–immune interface niche enriched in proliferative tumor cells, activated cytotoxic T cells, and CAFs, together with a CAF-mediated tumor–T cell barrier score associated with worse outcomes in NSCLC. This supports stromal-targeting approaches such as setanaxib75, a NOX1/4 inhibitor being evaluated in combination with pembrolizumab for advanced head and neck squamous cell carcinoma.
At finer resolution, we further identified a prognostically relevant niche in which LAG3+VISTA+ CD4+ T helper cells co-localize with HIF1A+ neutrophils and Ki67+ tumor cells, consistent with a locally exhausted and hypoxia-adapted ecosystem that couples immune suppression with aggressive tumor growth76,77. In NSCLC, LAG-3 restrains T-cell activation and promotes immune escape, and therapeutic antibodies targeting this pathway, exemplified by relatlimab, are already being evaluated in combination with PD-1 blockade78. Together, these multiscale spatial niches delineate complementary axes of immunotherapy resistance and provide a rationale for combinatorial treatment strategies that jointly target stromal insulation, neutrophil-mediated immunosuppression, and checkpoint-driven T-cell exhaustion.
Although spatial proteomics offers valuable insights into the TME, its clinical translation faces significant challenges including high cost, complexity, and limited scalability. CANVAS captures the relationship between spatially resolved cellular neighborhoods and morphological features derived from H&E through a foundation model pretrained on millions of pathology images79. This is distinct from previous studies that attempted to infer the expression of individual proteins from H&E images. One study applied a generative adversarial network to generate virtual multiplex images of 11 proteins mostly consisting of cell-lineage markers22. Another recent study used a segmentation-based network to infer the status (high vs. low expression) for 21 proteins21. However, predicting protein expression from H&E is strongly marker-dependent and sensitive to staining, acquisition, and assay variability, leading to uneven and often modest performance across markers. By contrast, our study aims to infer tumor ecological habitats – spatial structures with biological interpretation – from H&E at a much higher accuracy exceeding 0.83. This enables robust discovery of spatially informed biomarkers in large-scale patient cohorts.
Immune checkpoint blockade (ICB) is a standard treatment for advanced lung cancer, but only a subset of patients derives durable benefit, and robust predictive biomarkers remain lacking. We applied the CANVAS to two independent ICB-treated cohorts, and found that spatial features beyond simple proximity, including intercellular dispersion, diversity, and topological transitions, better distinguished responders from non-responders. Our results show that responsive tumors exhibited B and T cell co-localization and compartmentalized TLS-like immune structures, whereas resistant tumors showed stromal insulation and neutrophil enrichment consistent with previous studies80–82. In addition, we discovered new spatial features, including habitat richness and spatial entropy, which were also associated with ICB response. By integrating these habitat-level patterns, we derived an interpretable spatial signature that outperformed existing biomarkers in predicting ICB outcome.
In conclusion, our study provides a comprehensive characterization of the single-cell spatial landscape of the lung tumor microenvironment, and the computational CANVAS approach provides a biologically informed and clinically scalable platform for histology-native spatial tumor profiling to enhance precision oncology.
Limitations of the study
Our study has several limitations that should be considered when interpreting the results and that point toward future directions. First, CANVAS was trained on paired spatial proteomics and histopathology data in lung cancer and, although validated across multiple cancer types, additional training on more diverse datasets will be necessary to truly generalize the approach in a broader pan-cancer setting. Second, the 10-CN taxonomy is derived from unsupervised clustering of multiplexed imaging data, and while it has been validated through multiple layers, alternative solutions by integrating with additional assays such as spatial transcriptomics could reveal more granular and complementary aspects of TME organization83,84. Third, some of the biological findings such as the association between neutrophil-rich niche and unfavorable outcomes are broadly consistent with established TME patterns. While we view this concordance as supporting the validity of the habitat framework, the more specific mechanistic interpretations (e.g., niche-restricted hypoxia–exhaustion ecologies) remain correlative. Functional validation of these spatial ecological hypotheses in experimental models will be an important next step. Finally, the immunotherapy response prediction model was developed in a discovery cohort of 149 patients and external validation was performed in a modest cohort of 40 patients. These results should be considered hypothesis-generating, and prospective validation in larger cohorts is required before clinical implementation.
RESOURCE AVAILABILITY
Lead contact
Further information and requests for resources and reagents should be directed to the lead contact, Ruijiang Li (rli2@stanford.edu).
Materials availability
This study did not generate new, unique reagents.
Data and code availability
Publicly available histopathology, multi-omics and clinical datasets were obtained from multiple sources. TCGA histology slides and clinical annotations were downloaded from the National Cancer Institute Genomic Data Commons Portal (https://portal.gdc.cancer.gov) and cBioPortal (https://www.cbioportal.org). Whole-slide images from the National Lung Screening Trial (NLST) cohort were acquired via The Cancer Imaging Archive (TCIA; https://wiki.cancerimagingarchive.net). PLCO datasets were accessed through the Cancer Data Access System (CDAS; https://cdas.cancer.gov/learn/plco) following appropriate data request approvals. The CODEX data and matched H&E images generated in this study are deposited in Zenodo (https://zenodo.org/records/20263843). The CANVAS pipeline, software, and downstream analysis scripts are publicly available at GitHub (https://github.com/lilabstanford/CANVAS).
STAR METHODS
EXPERIMENTAL MODEL AND STUDY PARTICIPANT DETAILS
Human specimens and study cohorts
This study integrated seven study cohorts to develop, validate, and clinically evaluate the CANVAS framework. A total of 457 lung tumor specimens were profiled by CODEX using a 41-plex antibody panel across three cohorts: tissue microarray cohort 1 (TMA1, n = 337; C1), tissue microarray cohort 2 (TMA2, n = 110; C2), and a whole-slide imaging cohort (WSI, n = 10; C3) (Table S2). TMA1 samples were profiled by CODEX alone, whereas TMA2 and WSI tumors underwent paired CODEX profiling and matched H&E staining. Collectively, these cohorts were used to define cellular neighborhoods from CODEX data. The paired WSI cohort was used to train and validate the H&E-based habitat inference model, which was further evaluated in the independent paired TMA2 cohort. For downstream clinical evaluation using H&E alone, we analyzed three lung cancer cohorts, TCGA (n = 945), PLCO (n = 382), and NLST (n = 366), comprising 1,693 patients (C4) in total (Fig. 4c), to assess associations between predicted tumor habitats, patient prognosis, and molecular subtypes. We further extended the analysis to a pan-cancer TCGA cohort spanning eight cancer types (n = 3,724; C5) to evaluate cross-cancer generalizability. Finally, two independent immunotherapy-treated cohorts were used for response modeling: an internal Stanford ICB cohort (n = 149; C6) and a lung cancer cohort from the Cancer Moonshot Biobank (n = 40; C7). Stanford specimens were analyzed in accordance with applicable data-use requirements, whereas TMA2 was obtained from TissueArray. Publicly available or controlled-access cohorts, including TCGA, PLCO, NLST, and CMB, were accessed and analyzed in accordance with their respective data-use policies. In summary, CANVAS comprises three integral components: (1) discovery of biologically grounded CNs from CODEX data; (2) inference of CODEX-derived habitats from H&E slides; and (3) derivation of spatial habitat features for prognostic modeling and biological interpretation. A schematic overview of the study design, patient cohorts, and analytical workflow is provided in Fig. 1a.
METHOD DETAILS
Sample preparation and tissue sectioning
Formalin-fixed paraffin-embedded (FFPE) tumor specimens from patients with NSCLC were used for CODEX imaging. For the Stanford TMA1 cohort, tumor regions were identified by gross inspection and confirmed by H&E review. Representative tumor regions were sampled from archival donor blocks using tissue punches and arrayed into recipient TMA blocks. In addition, surgical FFPE tumor blocks from patients with NSCLC were sectioned as whole-slide specimens to construct the Stanford WSI cohort. For CODEX staining, 5-μm FFPE sections from TMAs and whole-slide specimens were mounted onto Fisherbrand Superfrost Plus microscope slides (Fisher Scientific) according to the PhenoCycler-Fusion User Guide v2.1.0 and processed for downstream staining.
CODEX staining, imaging, and cell segmentation
Spatial proteomic profiling was performed at the Cell Sciences Imaging Facility (CSIF) at Stanford University using the PhenoCycler-Fusion (PCF) 2.0 platform, formerly known as CODEX. The antibody panel included pre-conjugated CODEX antibodies obtained from Akoya Biosciences and custom-conjugated antibodies generated using the PhenoCycler Antibody Conjugation Kit (Akoya Biosciences) according to the manufacturer's protocol. Antibody staining specificity and conjugation performance were routinely validated by immunofluorescence and PhenoCycler-Fusion test runs. Staining conditions were optimized individually for each antibody. Antibodies used in this study are listed in Table S1. FFPE sections from TMAs and WSIs were stained using the PhenoCycler Staining Kit. Briefly, after overnight baking at 60°C, slides were deparaffinized using a standard histological procedure. Antigen retrieval was conducted in Tris-EDTA buffer (pH 9.0) in a pressure cooker at 120°C for 20 min under high pressure. After cooling to room temperature, slides were incubated in a photobleaching buffer for 45 min. After extensive washing in 1× PBS, slides were hydrated and incubated with the conjugated antibody cocktail overnight at 4°C in a humidity chamber, followed by post-staining fixation and washing steps as instructed in the manufacturer’s user manual. Tissue sections were stored in CODEX Storage Buffer at 4°C until imaging. Reporter and buffer reagents for PhenoCycler-Fusion imaging were prepared using PhenoCycler Assay Reagent and the 10X Buffer Kit for PhenoCycler-Fusion (Akoya Biosciences) according to the manufacturer’s instructions. High-plex immunofluorescence imaging was then performed on the PhenoCycler-Fusion 2.0 platform. Images were acquired in DAPI, AF488, Atto550, and AF647 channels and automatically processed into multiplexed image files for downstream analysis.
Multiplexed fluorescence images were acquired using the CODEX Instrument Manager at a resolution of 0.507 μm per pixel. Raw image stacks were processed through the CODEX Processor pipeline for cross-cycle image alignment, tile stitching, and autofluorescence subtraction. Processed CODEX images were reviewed in ImageJ (v2.3.0) and QuPath (v0.4.3), and high-quality images were selected for downstream analysis. Each TMA core was treated as a single region of interest (ROI), with H&E staining performed post-acquisition to enable histological validation. Processed image stacks subsequently underwent standardized preprocessing and quality control, including tissue detection, ROI curation, and single-cell segmentation on the DAPI channel85. Nuclear expansion was performed to approximate wholecell boundaries. Marker expression was quantified as the mean fluorescence intensity within each segmented cell mask. Shape and intensity features were computed for all compartments, and probability maps were retained to support downstream quality control and filtering. In total, over 18 million cells were analyzed across all samples, including 1.42 million cells from the TMA cohorts and 16.64 million cells from the WSI cohort.
H&E staining and imaging
Following PhenoCycler imaging, flow cells were removed according to the manufacturer’s instructions. Slides were washed extensively with 1× PhenoCycler buffer to remove residual imaging reagents and then processed for post-CODEX H&E staining using a standard histopathology workflow. Briefly, sections were rinsed, stained with hematoxylin, counterstained with eosin, dehydrated, cleared, and coverslipped. H&E-stained sections were digitized using a Leica Aperio AT2 whole-slide scanner at 40× magnification.
Cell type and cell state annotation using CODEX data
Single-cell spatial proteomic data were generated from pixel-level quantification of marker intensities and processed using the Seurat86 package for downstream analysis. To reduce signal variation across markers, centered log-ratio normalization was performed using NormalizeData, followed by feature scaling with ScaleData. Given the compact antibody panel, all markers were retained for downstream analysis. Dimensionality reduction was performed by principal component analysis using RunPCA, and sample-level batch effects were corrected with the R package Harmony using RunHarmony. UMAP embedding was generated from the Harmony-corrected space for visualization, and the same corrected space was used for graph-based clustering. Phenotypic clustering was performed by shared nearest-neighbor graph construction with FindNeighbors followed by Louvain community detection with FindClusters. Cluster-enriched markers identified using FindAllMarkers were used to assign major lineage identities. Cells with potential segmentation artifacts, ambiguous marker profiles, or clusters lacking clear lineage-defining marker expression were annotated as unknown and were handled separately from high-confidence annotated cell populations in subsequent analyses. CD45+CD3e−GZMB+ immune cells were annotated as NK-like cells based on the available marker panel and referred to as NK cells in downstream analyses. Detailed functional cell states were annotated by integrating highresolution clustering with targeted Gaussian mixture modeling87 for selected marker-defined populations, using curated marker combinations derived from the literature. Given the finite marker space of the CODEX panel, a subset of detailed annotations was assigned based on marker-informed phenotypic patterns. For whole-slide CODEX datasets, a two-stage annotation strategy was used. A representative subset of cells from each sample (10%) was first annotated to generate a reference set, and anchor-based label transfer was then performed for the remaining cells using FindTransferAnchors and TransferData.
Pairwise cell-cell interaction and co-occurrence
To quantify pairwise cell–cell interactions, we applied a radius-based, permutation-derived spatial interaction framework in which all neighboring cells within 40 μm of each cell centroid were defined as the local microenvironment88,89. Pairwise interactions between annotated cell phenotypes were assessed independently within each image by comparing the observed frequency of neighboring cell-type pairs with a permutation-based null distribution. To generate the null model, cell phenotypes were randomized 1,000 times while preserving the underlying spatial coordinates. Cell-type pairs enriched relative to the permuted background were interpreted as spatial attraction, whereas depleted pairs were interpreted as spatial avoidance. By evaluating interactions within fixed local neighborhoods, this analysis captures short-range spatial organization and immediate multicellular topology in the TME.
Cell-cell co-occurrence was quantified at the tissue-core level to assess whether pairs of cell phenotypes were jointly enriched across samples, independent of their physical proximity within individual tissues. This analysis reflects coordinated expansion or depletion of lineages at the tissue scale, revealing global immune or stromal equilibria not detectable from local interactions alone. Together, these two perspectives are synergistic: interaction maps the proximate rules of cellular positioning, while co-occurrence situates these rules within broader ecological states. Their integration provides a coherent spatial logic that reconciles microscale topologies with macroscale tissue organization.
Identification of spatial cellular neighborhoods
To characterize multicellular spatial niches within the tumor microenvironment, we applied spatial Latent Dirichlet Allocation (spatial-LDA)89,90, a topic modeling framework adapted for spatially resolved cell phenotype data. For each index cell, a local neighborhood was defined as all cells within a 40 μm radius, a scale that consistently captured ~25 neighboring cells across cohorts and aligns with prior studies delineating spatial domains in tissue microenvironments91,92. Each neighborhood was encoded as a local phenotype-abundance vector across annotated cell types, forming a bag-of-cells representation analogous to the bag-of-words model in natural language processing.
Spatial-LDA was applied to model local cell composition as mixtures of latent motifs enriched for specific cell types, with a Laplacian prior imposed to enforce spatial smoothness across adjacent neighborhoods. The resulting motif proportion profiles were subjected to K-means clustering to define CNs, which capture spatially coherent and biologically distinct multicellular ecosystems within the tissue microenvironment. To improve cross-cohort independence and cross-format transferability, CNs were derived by co-clustering each TMA cohort separately with the WSI cohort. To determine the optimal number of CNs, we evaluated candidate solutions (k = 5–20) using complementary validity and stability metrics, including the Silhouette coefficient, Davies–Bouldin index, and Adjusted Rand index calculated between adjacent K partitions.
Graph-based triplet motif analysis
Spatial cell-cell interaction graphs were constructed for each TMA core by connecting CODEX-derived single-cell centroids within a fixed local distance threshold. Each cell was assigned to one of predefined cell types based on single-cell annotations. Local graphs from individual cores were aggregated into a global cell-type interaction network, where nodes represented cell types and edge weights corresponded to pairwise interaction frequencies. To quantify the topological prominence of each cell type, we employed a graph neural network (GNN) approach, implemented using a graph convolutional network (GCN)93. The model was initialized with node degrees and weighted edges, and consisted of two GCNConv layers with ReLU activation functions. It was optimized to minimize the mean squared error between predicted and observed node degrees. The resulting node embeddings (GCN scores) captured each cell type’s network centrality within the global interaction topology.
All possible three-cell-type combinations were exhaustively enumerated, yielding 455 candidate triplet motifs. For each triplet, three global scoring metrics were calculated: the total edge-weight sum among the corresponding cell types, the mean GCN score, and their product as a composite score. Rankings from these metrics were integrated using robust rank aggregation (RRA), and 24 high-confidence triplet motifs with FDR < 0.01 were retained for downstream analysis. At the core level, each retained motif was quantified based on the local joint spatial exposure of its constituent cell types, and motif abundance scores were used for subsequent association analyses.
Proximity density and barrier score quantification
Proximity density (PD) quantifies the normalized local interaction density between two specified cell types within a given CN domain, defined as the number of identified proximity interactions divided by the total abundance of those two cell types within the same CN89. This metric reflects localized cell-type juxtaposition and captures the extent of cell-type co-engagement within spatially constrained tissue niches.
To quantify stromal-mediated immune exclusion, we adapted a barrier score from the topological tumor graph framework35. CD8+ T cells, proliferating tumor cells, and FAP+ CAFs were represented in a spatial graph. For each cytotoxic T cell not directly adjacent to a tumor cell, shortest immune–tumor paths were identified, and each path was classified as barrier-positive if at least one CAF was present along the intervening path. The sample-level barrier score was defined as the fraction of barrier-positive shortest immune–tumor paths across all eligible cytotoxic T cells, with higher scores indicating stronger stromal insulation of tumor cells from cytotoxic T cell access.
H&E image preprocessing, tumor detection, and tissue and cell segmentation
All H&E whole-slide images were analyzed at a standardized resolution equivalent to 40× magnification, corresponding to 0.25 micrometers per pixel. Slides acquired at lower resolutions were digitally rescaled to this reference magnification to ensure uniformity across cohorts. Regions affected by technical artifacts, including pen markings, tissue folds, and image blur, were systematically excluded using automated color-based filtering algorithms94. To account for staining variability across institutions, H&E images were normalized using a structure-preserving color normalization method (https://github.com/CielAl/torch-staintools). Tissue-containing areas were segmented using the CLAM pipeline95, followed by extraction of non-overlapping patches of 224 by 224 pixels. Tumor area detection was performed using a vision transformer model initially pretrained on a pan-cancer histopathology dataset and subsequently fine-tuned for lung tumor detection96,97. Tumor-region detection generated patch-level tumor probability scores, which were spatially aggregated to identify tumor-enriched regions for downstream analysis. Cellular detection and segmentation in all datasets were performed using CellViT98, a transformer-based model optimized for precise nuclear segmentation in H&E-stained tissues. The resulting cell coordinate matrices provided the basis for multimodality co-registration and habitat inference.
To define tumor bulk and leading-edge regions on H&E-stained whole-slide images, patch-level tumor probability maps were spatially aggregated across fixed-radius local neighborhoods to capture regional tumor context. These neighborhood-level features were subjected to unsupervised spatial clustering, and the resulting clusters were annotated as tumor bulk, leading-edge, or other tissue compartments based on tumor probability enrichment and spatial adjacency. The annotated regions were then used for downstream habitat profiling and prognostic modeling.
Multi-modality image co-registration
To facilitate deep learning between CODEX and H&E images, we implemented a pipeline for high-precision single-cell co-registration. Specifically, the DAPI channel from CODEX was aligned with the hematoxylin channel of the corresponding H&E section using PALOM (PyPI: https://pypi.org/project/palom/; Zenodo DOI: 10.5281/zenodo.17039386). In this framework, the source coordinates were defined as the centroid positions of segmented single cells from CODEX images. Affine transformation parameters, including translation, rotation, scaling, and shear, were used to project CODEX-derived cell coordinates into H&E space. This spatial alignment established the correspondence between different image modalities, enabling direct transfer of CODEX-defined CN annotations onto H&E histopathology.
Formally, given a source coordinate , the corresponding destination coordinate in H&E space was computed using an affine matrix as:
where:
and represent translation, while encode rotation, scaling, and shear components.
Annotations that mapped outside the spatial boundaries of the H&E images were excluded from further analysis. Registration quality was manually reviewed to confirm alignment of corresponding tissue structures across modalities. H&E-derived single-cell segmentations were assigned CN labels by reference to the nearest registered CODEX cell centroid, using a centroid-to-centroid distance threshold of 5 μm. Only cells successfully mapped to one of ten spatial habitats were retained for downstream modeling. This image co-registration pipeline established high-confidence ground-truth habitat labels to learn spatially encoded morphological patterns from H&E.
Habitat label transfer based on CN assignment
CNs were derived by co-clustering the WSI cohort with TMA1 for discovery and with TMA2 for independent validation. CN labels were transferred to co-registered H&E images as habitat annotations for downstream model training and evaluation. Patch-level training labels were derived from CODEX-based single-cell annotations that were spatially mapped onto the corresponding H&E tissue sections. Patches with evident technical artifacts, including tissue folds, blurred regions, staining artifacts, or image misregistration, were manually excluded during quality control. For each image patch used for model training, the number of cells assigned to each spatial habitat class was quantified. Patches containing fewer than five annotated cells were assigned to a background class to represent non-informative tissue regions. Among habitat-informative patches, only those with more than fifteen annotated cells and a dominant habitat class accounting for at least 60% of the local cellular composition were retained as high-confidence habitat-labeled patches. Each eligible patch was labeled according to its most abundant habitat class. This filtering strategy emphasized the selection of high-confidence and compositionally consistent regions to enhance the reliability of model supervision. A multimodal dataset of spatially co-registered CODEX/H&E image patches (224 × 224 pixels) was assembled for model development. Following quality control, WSI patches were assigned to one of ten CODEX-derived CN labels and split into training (>180K patches) and validation (>82K patches) sets.
CANVAS model architecture and training strategy
The CANVAS model was developed to classify H&E image patches (224 × 224 pixels) into one of ten habitat types, enabling spatial habitat inference across whole-slide images. The model’s backbone is based on MUSK79, a foundation model pre-trained using unified masked modeling on over 50 million pathology images from 11,577 patients and one billion pathology-related text tokens. MUSK enables robust extraction of high-dimensional visual embeddings that capture complex morphological features across diverse tissue types and staining variations. Let denote the visual feature embedding extracted by the MUSK encoder. The classification head consists of three sequential transformations:
where and are learnable weights and biases of each layer, and represents the unnormalized logits corresponding to the ten habitat classes and a background class.
To address class imbalance, we combined weighted random sampling with focal loss99. For sampling, class frequencies were computed across the training set, and each sample (label ) received a weight . Samples were drawn proportionally to these weights to ensure balanced exposure across classes. In parallel, focal loss was used to reduce the contribution of easy examples and emphasize underrepresented or misclassified instances. Given the predicted probability for the true class, the focal loss is defined as:
The classification objective was optimized using the focal loss function, where served as a class-specific weighting factor to address class imbalance, and modulated the contribution of easy-to-classify samples to focus learning on harder examples. To enhance model robustness against staining and morphological variability, real-time data augmentation was implemented during training. Augmentation procedures included random horizontal and vertical flipping, rotation, and perturbation of image brightness, contrast, saturation, and hue. All augmented images were subsequently converted to tensors and normalized using channel-wise means and standard deviations derived from the MUSK pretraining dataset. This preprocessing pipeline improved model generalization and mitigated overfitting, particularly for underrepresented habitat classes.
Model evaluation and performance benchmarking
The CANVAS model was trained and internally validated using the Stanford WSI cohort, which was randomly partitioned into 80% training and 20% validation sets at the sample level. TMA2 served as an independent external test set to evaluate model classification performance across histologic platforms. The model was trained using the Adam optimizer. The initial learning rate was set to 1×10−4, with exponential decay applied at a factor of 0.95. A batch size of 64 and dropout rate of 0.5 were used throughout training. The model was trained for 60 epochs using a two-stage fine-tuning approach. For the first 10 epochs, only the classification head was trained while the entire backbone remained frozen. Subsequently, for the remaining 50 epochs, the final two layers of the encoder were unfrozen and fine-tuned along with the classification head. Evaluation was conducted using patch-level classification accuracy and habitat-type–specific precision and recall, measured on a held-out validation set with no patient overlap. Model performance was further validated across multiple cohorts via whole-slide inference and spatial prediction of habitats.
To evaluate the predictive performance of CANVAS-based habitat classification models, we computed four standard metrics: overall accuracy, macro-averaged F1 score, and Cohen’s kappa coefficient.
Accuracy was calculated as the proportion of correctly predicted habitat labels among all predictions:
F1 score was computed as the harmonic mean of precision and recall for each habitat class, and macro-averaged across all classes:
Cohen’s kappa coefficient quantified inter-rater agreement between predicted and true labels beyond chance, defined as:
where denotes the observed agreement and represents the expected agreement by random chance.
We benchmarked the performance of CANVAS against three baselines: two pathology foundation models (UNI100 and Virchow101) and ResNet-50. All models were trained and evaluated under identical conditions with standardized preprocessing, patient- and site-stratified splits, and consistent label definitions. Predictive performance was quantified by Macro-F1 and Cohen’s kappa. Robustness of performance differences was assessed by 1,000 bootstrap resampling of the validation and testing cohorts.
Evaluation of resolution and stride overlap in habitat prediction
The impact of image resolution on model performance was assessed by systematically downsampling WSIs and TMA cores from the validation and test sets. Slides originally scanned at 40× magnification (0.25 μm per pixel) were downsampled to 20× (0.50 μm per pixel) and 10× (1.00 μm per pixel), after which all image tiles were formatted to 224 × 224 pixels to preserve the model input tensor dimensions. Habitat predictions were then generated using the trained CANVAS model, and performance was quantified using standard patch-level classification metrics.
To evaluate the effect of tiling strategies on CANVAS habitat predictions, we varied the stride to modulate overlap between adjacent tiles, thereby testing whether increased sampling density around tumor boundaries or immune-enriched regions influenced model outputs. The patch size was fixed at 224 × 224 pixels, and three stride conditions were tested: 224 pixels (non-overlapping tiles), 112 pixels (50% overlap), and 56 pixels (75% overlap). For each stride setting, patch datasets were generated separately for the test set, and habitat predictions were performed. Model performance was quantified using accuracy, and robustness was further assessed by nonparametric bootstrap resampling with 1,000 iterations across stride pairs (224 vs. 112 pixels; 112 vs. 56 pixels).
Prognostic modeling of habitats on H&E-stained images
To evaluate the prognostic significance of CANVAS-derived spatial habitats, we quantified the abundance of 10 habitats within the tumor bulk and leading-edge compartments of each sample across the TCGA, PLCO, and NLST cohorts. Samples with insufficient tumor-associated patch coverage, defined as fewer than 100 tumor-bulk patches, were excluded to ensure adequate spatial representation. Within each histologic subtype and cohort, habitat–outcome associations were evaluated separately using available clinical endpoints, including overall survival (OS), disease-specific survival (DSS), progression-free interval (PFI), and disease-free interval (DFI). For each habitat–compartment combination, univariate Cox proportional hazards models were fitted, and hazard ratios (HRs), 95% confidence intervals, and Wald P values were reported.
Spatial ecotypes identified using H&E-derived tumor habitats
To identify recurrent spatial phenotypes with prognostic relevance, we performed unsupervised consensus clustering of TCGA-LUAD samples based on CANVAS-derived habitat abundances in tumor bulk and leading-edge regions. Samples with limited spatial coverage of tissue compartments were excluded. A feature matrix comprising the distribution of 10 habitats across the two spatial compartments was z-score normalized and subjected to consensus clustering using the ConsensusClusterPlus R package102 with partitioning around medoids (PAM) and Canberra distance. The optimal number of clusters was determined based on cluster stability and concordance metrics. The resulting consensus-defined subtypes were subsequently linked to clinical variables and survival outcomes. Prognostic value was further assessed using multivariable Cox proportional hazards models adjusted for major clinical covariates, including age, sex, smoking status, and tumor stage. To further contextualize the identified spatial ecotypes, we compared them with transcriptomic TME subtypes assigned to the same samples39.
Orthogonal validation of habitat prediction
We assembled orthogonal validation datasets comprising same-section CODEX–H&E specimens and paired Xenium–H&E specimens (Table S2). For Xenium data, preprocessing, clustering, and cell-level annotation were performed separately for each sample using a common Seurat workflow that included quality control, SCTransform normalization, dimensionality reduction, and sample-level clustering. CN labels were inferred at single-cell resolution using a cosine-similarity-based CN inference framework, in which cell-level neighborhood profiles from spatial omics data were mapped to the most similar CODEX-derived reference CN composition profiles.
Gene set enrichment and immunogenomic analysis
To characterize the tumor microenvironmental correlates of CANVAS-defined spatial habitats, we computed patient-level habitat abundances for each TCGA-NSCLC sample by aggregating patch-level predictions of H01–H10. Samples with fewer than 100 informative patches were excluded. These spatial features were integrated with three orthogonal TME inference frameworks: (1) ESTIMATE103-derived stromal, immune, and tumor purity scores; (2) CIBERSORTx (LM22)104,105 immune cell scores; and (3) xCell106 enrichment profiles spanning 64 immune and stromal cell types. All data were harmonized using TCGA sample barcodes to enable multi-omic correlation analysis. To assess relationships with transcriptomic signatures, normalized TPM profiles from TCGA were filtered to retain protein-coding genes and analyzed using single-sample gene set variation analysis with the GSVA R package107. GSVA was used to compute pathway-level enrichment scores from normalized transcriptomic data, leveraging curated gene sets from MSigDB, KEGG, Reactome, and other collections39. Differential pathway activity across CANVAS-inferred spatial habitat groups was assessed using the limma108 R package with empirical Bayes moderation and linear modeling.
Genomic and immunologic correlates, including tumor mutational burden, aneuploidy, microsatellite instability, and SNV-derived neoantigen load, were obtained from public databases. Transcript-based signatures, including interferon response, tertiary lymphoid structure, EMT-TGFβ signaling, and angiogenesis signatures, were compiled from the literature and calculated using ssGSEA as implemented in the GSVA R package. Associations between spatial subtypes and molecular features were assessed using covariate-adjusted analysis of variance, with age and sex included as clinical covariates, implemented using the Anova function from the car109 R package.
Somatic mutation and copy number alteration association analysis
To investigate genomic correlates of CANVAS-defined spatial ecotypes, gene-level copy number alteration and somatic mutation data from the TCGA-LUAD cohort were analyzed. Gene-level copy number calls were obtained from TCGA/GDC processed data and encoded as deletion, neutral, or amplification events. Associations between gene-level copy number status and spatial ecotype membership were assessed using regression-based models. Effect sizes were summarized as odds ratios with corresponding 95% confidence intervals. To facilitate biological interpretation, candidate genes were further annotated according to established oncogenic and immunoregulatory pathways110.
Somatic mutation profiles were obtained from MC3 consensus calls and binarized at the gene level. For each retained gene, mutation frequencies were calculated within each spatial ecotype, and associations between mutation status and ecotype membership were assessed using Fisher’s exact tests. Recurrent ecotype-associated mutation patterns were visualized by heatmap after row-wise z-score normalization of mutation frequencies. Candidate genes were curated from established TCGA PanCancer Atlas driver gene resources111.
Habitat-level spatial feature engineering and extraction
To biologically interpret CANVAS-defined spatial habitats, we computed a total of 262 quantitative features from H&E-stained NSCLC tissue sections. All features were derived from patch-level annotations and subsequently aggregated to the image level to enable cohort-wide comparative analyses. (1) Composition features (n = 10): patch-level CANVAS annotations were aggregated per image to quantify the frequency of each of the ten spatial habitats. For each sample, raw counts of habitat-labeled patches were computed and normalized by the total number of annotated patches within the image, yielding a ten-dimensional vector representing the relative abundance of each habitat. (2) Diversity features (n = 6): to capture ecological complexity within each image, we computed six diversity metrics using habitat label counts as species abundances, including richness, Shannon index, Simpson index, inverse Simpson index, Fisher’s alpha, and Pielou’s evenness. (3) Spatial dispersion features (n = 90): to characterize intra-habitat spatial organization, we converted habitat-specific coordinates into planar point patterns and derived nine classes of spatial summary features per habitat, including summaries from Ripley’s K and L functions, pair correlation, G, F, and J functions, together with the Clark–Evans index, quadrat-based dispersion statistics, and kernel density summaries. (4) Interaction features (n = 100): to evaluate inter-habitat spatial coupling, pairwise interaction scores were computed for each tissue image using a fixed-radius neighborhood framework. For each habitat pair, interaction scores were derived using a permutation-based z-score approach (1,000 iterations), comparing observed spatial adjacency frequencies with a randomized null distribution. This yielded 100 ordered habitat-pair interaction features corresponding to the full 10 × 10 interaction matrix. (5) Distance features (n = 55): pairwise nearest-neighbor Euclidean distances between habitat pairs were calculated for each tissue image and summarized as image-level spatial distance features. (6) Transition feature (n = 1): Spatial transition entropy (STE) was computed to quantify the degree of inter-habitat mixing within each image. For each tissue image, habitat transitions were defined based on patch-level k-nearest-neighbor relationships (k = 6), and a habitat transition matrix was constructed from all observed transitions between neighboring patches. STE was then calculated as the Shannon entropy of the resulting global transition probability distribution. Higher STE values indicate a more intermixed and heterogeneous spatial architecture, whereas lower STE values reflect a more compartmentalized tissue organization.
Feature selection and model development
To construct a robust model for predicting immunotherapy outcomes, we implemented a multi-stage computational pipeline encompassing feature curation, redundancy reduction, feature prioritization, and survival modeling. As an unsupervised preprocessing step, multicollinearity was first reduced by calculating the Spearman correlation matrix across all predictors. Features with absolute pairwise correlation > 0.95 were grouped by Louvain community detection using the igraph package112, and one representative feature from each cluster was retained to generate a reduced, non-collinear feature set.
Robust candidate predictors were then prioritized using two complementary resampling-based approaches. First, we performed 100 repeated resampling iterations of LASSO-penalized Cox regression using the glmnet package113. In each iteration, patients were randomly divided into training and validation subsets, and the training subset was used for model fitting with internal 5-fold cross-validation to determine the optimal penalty parameter based on the concordance index. Features selected in more than 40% of iterations were retained. Second, we applied permutation-based random survival forest analysis using the randomForestSRC package. Across 1,000 bootstrap iterations, feature importance was quantified by permuting individual predictors and measuring the resulting change in prediction error for progression-free survival. Features showing consistently higher importance than permuted controls were prioritized as robust predictors.
Thirteen features jointly prioritized by the LASSO and random survival forest procedures were subsequently used to train a multivariable Cox proportional hazards model. Model performance was assessed over 100 iterations of random 75/25 train-validation splits. Within each iteration, model coefficients were estimated in the training subset and evaluated in the held-out validation subset using the C-index and time-dependent AUCs at 6, 12, and 24 months. For survival visualization, patients were stratified into risk groups based on the training-set median risk score, which was then applied to the corresponding validation subset. Prognostic separation was summarized using hazard ratios, log-rank P values, and 95% confidence intervals. Final model coefficients were visualized in a forest plot with annotation categories.
QUANTIFICATION AND STATISTICAL ANALYSIS
All statistical analyses were conducted using R (version 4.4.0) and Python (version 3.10) for data preprocessing, visualization, and hypothesis testing. Two-group comparisons were performed using two-sided Student’s t tests or Mann–Whitney U tests, as appropriate based on data distribution and variance structure. For comparisons involving more than two groups, one-way analysis of variance (ANOVA) or non-parametric Kruskal–Wallis tests were applied as appropriate. P values were adjusted for multiple comparisons using the Benjamini–Hochberg false discovery rate (FDR) procedure where applicable. Survival analysis was performed using Kaplan–Meier estimators with log-rank tests, and survival associations were further evaluated using univariate and multivariable Cox proportional hazards models implemented in the survival R package. For visualization of survival differences, patients were stratified using analysis-specific thresholds as described in the relevant sections. Continuous covariates included in regression models were standardized by z-score transformation before model fitting. Specific statistical methods are described in the corresponding Method sections. Unless otherwise specified, all tests were twosided, and P < 0.05 was considered statistically significant.
Supplementary Material
Table S1. Antibody panel used for CODEX spatial proteomics, related to STAR Methods.
Table S2. Clinical characteristics of patient cohorts used in this study, related to Figure 1 and STAR Methods.
Table S3. Cell phenotype definitions with marker annotations and major lineage categories, related to Figure 3.
Table S4. Differential distribution of immunogenomic signatures and immune checkpoint markers across spatial ecotypes in TCGA-LUAD, related to Figure 4.
Table S5. Spatial features and feature categories used for immunotherapy biomarker analysis in CANVAS, related to Figure 5 and STAR Methods.
Key resources table
| REAGENT or RESOURCE | SOURCE | IDENTIFIER |
|---|---|---|
| Antibodies | ||
| CD8-BX026-Atto 550 | Akoya Biosciences | Cat# 4250012 |
| Pan-Cytokeratin-BX019-Alexa Fluor™ 488 | Akoya Biosciences | Cat# 4150020 |
| CD3e-BX045-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550119 |
| CD163-BX023-Atto 550 | Cell Signaling Technology | Cat# 25121 |
| CD20-BX007-Alexa Fluor™ 488 | Akoya Biosciences | Cat# 4150018 |
| CD4-BX003-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550112 |
| FAP-BX052-Atto 550 | Abcam | Cat# ab271976 |
| CD138-BX016-Alexa Fluor™ 488 | Abcam | Clone# EPR6454 |
| CD11 c-BX024-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550114 |
| CD66b-BX020-Atto 550 | R&D Systems | Cat# MAB4246 |
| aSMA-BX013-Alexa Fluor™ 488 | Abcam | Cat# ab5694 |
| CD68-BX015-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550113 |
| Ki67-BX047-Atto 550 | Akoya Biosciences | Cat# 4250019 |
| CD31-BX001-Alexa Fluor™ 488 | Akoya Biosciences | Cat# 4150017 |
| Collagen IV-BX042-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550122 |
| Granzyme B-BX041-Atto 550 | Akoya Biosciences | Cat# 4250055 |
| MMP9-BX028-Alexa Fluor™ 488 | BioLegend | Cat# 819701 |
| PD-1-BX046-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550038 |
| CD44-BX005-Atto 550 | Akoya Biosciences | Cat# 4450041 |
| PD-L1-BX067-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550128 |
| E-cadherin-BX014-Atto 550 | Akoya Biosciences | Cat# 4250021 |
| LAG3-BX055-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550058 |
| Mac2/Galectin-3-BX035-Atto 550 | Akoya Biosciences | Cat# 4450034 |
| FOXP3-BX031-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550071 |
| CD14-BX037-Atto 550 | Akoya Biosciences | Cat# 4450047 |
| EpCAM-BX091-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550088 |
| CD21-BX032-Atto 550 | Akoya Biosciences | Cat# 4450027 |
| CD45-BX021-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550121 |
| MPO-BX098-Atto 550 | Akoya Biosciences | Cat# 4250083 |
| TCF-1-BX061-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550068 |
| GATA3-BX049-Atto 550 | Akoya Biosciences | Cat# 4250085 |
| ICOS-BX054-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550117 |
| HLA-A-BX029-Atto 550 | Akoya Biosciences | Cat# 4250100 |
| Bcl-2-BX085-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550089 |
| HLA-E-BX034-Atto 550 | Akoya Biosciences | Cat# 4250065 |
| CD45RO-BX017-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550127 |
| VISTA-BX040-Atto 550 | Akoya Biosciences | Cat# 4250063 |
| HIF1A-BX062-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550069 |
| CD39-BX099-Atto 550 | Akoya Biosciences | Cat# 4250076 |
| CD40-BX010-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550064 |
| HLA-DR-BX033-Alexa Fluor™ 647 | Akoya Biosciences | Cat# 4550118 |
| Biological samples | ||
| Formalin-fixed paraffin-embedded (FFPE) human lung tumor samples | This Manuscript | N/A |
| Chemicals, peptides, and recombinant proteins | ||
| CODEX barcode BX-023 (used for CD163 custom conjugation) | Akoya Biosciences | Cat# 5250003 |
| CODEX barcode BX-052 (used for FAP custom conjugation) | Akoya Biosciences | Cat# 5250012 |
| CODEX barcode BX-016 (used for CD138 custom conjugation) | Akoya Biosciences | Cat# 5150001 |
| CODEX barcode BX-020 (used for CD66b custom conjugation) | Akoya Biosciences | Cat# 5250002 |
| CODEX barcode BX-013 (used for aSMA custom conjugation) | Akoya Biosciences | Cat# 5450017 |
| CODEX barcode BX-028 (used for MMP9 custom conjugation) | Akoya Biosciences | Cat# 5150005 |
| Deposited data | ||
| CODEX and H&E data | This paper | https://zenodo.org/records/20263843 |
| Software and algorithms | ||
| R 4.4.0 | R Core Team | https://www.r-project.org |
| Python 3.10.14 | Python Software Foundation | https://www.python.org/downloads/release/python-31014/ |
| CODEX Instrument Manager | Akoya Biosciences | https://help.codex.bio/codex/cim/ |
| CODEX Processor | Akoya Biosciences | https://help.codex.bio/codex/processor/ |
| ImageJ v2.3.0 | ImageJ | https://imagej.net/ij/ |
| QuPath v0.4.3 | QuPath | https://qupath.github.io/ |
| Seurat 5.1.0 | Satija Lab | https://satijalab.org/seurat |
| Harmony 1.2.1 | CRAN | https://cran.r-project.org/web/packages/harmony/index.html |
| mclust 6.1.1 | CRAN | https://cran.r-project.org/package=mclust |
| ConsensusClusterPlus 1.68.0 | Bioconductor | https://bioconductor.org/packages/release/bioc/html/ConsensusClusterPlus.html |
| GSVA 1.52.3 | Bioconductor | https://www.bioconductor.org/packages/release/bioc/html/GSVA.html |
| survival 3.6–4 | CRAN | https://cran.r-project.org/package=survival |
| survminer 0.5.0 | CRAN | https://cran.r-project.org/package=survminer |
| randomForestSRC 3.3.2 | CRAN | https://cran.r-project.org/package=randomForestSRC |
| CANVAS code and downstream pipeline | This paper | https://github.com/lilab-stanford/CANVAS |
| Other | ||
| PhenoCycler Antibody Conjugation Kit | Akoya Biosciences | Cat# 7000009 |
| PhenoCycler Assay Reagent | Akoya Biosciences | Cat# 7000002 |
| 10X Buffer Kit for PhenoCycler-Fusion | Akoya Biosciences | Cat# 7000019 |
| CODEX Storage Buffer | Akoya Biosciences | Cat# 232107 |
Highlights.
Single-cell spatial proteomics atlas identifies cellular neighborhoods
CANVAS predicts cellular neighborhoods from standard histology
CANVAS enables virtual spatial profiling at the population level
CANVAS identifies H&E-based spatial signature of immunotherapeutic outcome
ACKNOWLEDGEMENTS
This study was supported in part by NIH grants R01CA290715, R01CA269599, R01CA285456 from the National Cancer Institute. We thank the Stanford Tissue Bank for providing tissue specimens and histologic slides. We also acknowledge the TCGA, PLCO, and NLST consortia for making their datasets publicly available, which enabled independent validation of our findings.
Footnotes
Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.
DECLARATION OF INTERESTS
The authors declare no competing interests.
References
- 1.Rahal Z, El Darzi R, Moghaddam SJ, Cascone T, and Kadara H (2025). Tumour and microenvironment crosstalk in NSCLC progression and response to therapy. Nat Rev Clin Oncol. 10.1038/s41571-025-01021-1. [DOI] [Google Scholar]
- 2.Bruni D, Angell HK, and Galon J (2020). The immune contexture and Immunoscore in cancer prognosis and therapeutic efficacy. Nat Rev Cancer 20, 662–680. 10.1038/s41568-020-0285-7. [DOI] [PubMed] [Google Scholar]
- 3.Fridman WH, Zitvogel L, Sautes-Fridman C, and Kroemer G (2017). The immune contexture in cancer prognosis and treatment. Nat Rev Clin Oncol 14, 717–734. 10.1038/nrclinonc.2017.101. [DOI] [PubMed] [Google Scholar]
- 4.de Visser KE, and Joyce JA (2023). The evolving tumor microenvironment: From cancer initiation to metastatic outgrowth. Cancer Cell 41, 374–403. 10.1016/j.ccell.2023.02.016. [DOI] [PubMed] [Google Scholar]
- 5.Schurch CM, Bhate SS, Barlow GL, Phillips DJ, Noti L, Zlobec I, Chu P, Black S, Demeter J, McIlwain DR, et al. (2020). Coordinated Cellular Neighborhoods Orchestrate Antitumoral Immunity at the Colorectal Cancer Invasive Front. Cell 182, 1341–1359 e1319. 10.1016/j.cell.2020.07.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Chen J, Larsson L, Swarbrick A, and Lundeberg J (2024). Spatial landscapes of cancers: insights and opportunities. Nat Rev Clin Oncol 21, 660–674. 10.1038/s41571-024-00926-7. [DOI] [PubMed] [Google Scholar]
- 7.Gong D, Arbesfeld-Qiu JM, Perrault E, Bae JW, and Hwang WL (2024). Spatial oncology: Translating contextual biology to the clinic. Cancer Cell 42, 1653–1675. 10.1016/j.ccell.2024.09.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Elhanani O, Ben-Uri R, and Keren L (2023). Spatial profiling technologies illuminate the tumor microenvironment. Cancer Cell 41, 404–420. 10.1016/j.ccell.2023.01.010. [DOI] [PubMed] [Google Scholar]
- 9.Black S, Phillips D, Hickey JW, Kennedy-Darling J, Venkataraaman VG, Samusik N, Goltsev Y, Schurch CM, and Nolan GP (2021). CODEX multiplexed tissue imaging with DNA-conjugated antibodies. Nat Protoc 16, 3802–3835. 10.1038/s41596-021-00556-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Punovuori K, Bertillot F, Miroshnikova YA, Binner MI, Myllymaki SM, Follain G, Kruse K, Routila J, Huusko T, Pellinen T, et al. (2024). Multiparameter imaging reveals clinically relevant cancer cell-stroma interaction dynamics in head and neck cancer. Cell 187, 7267–7284 e7220. 10.1016/j.cell.2024.09.046. [DOI] [PubMed] [Google Scholar]
- 11.Goltsev Y, Samusik N, Kennedy-Darling J, Bhate S, Hale M, Vazquez G, Black S, and Nolan GP (2018). Deep Profiling of Mouse Splenic Architecture with CODEX Multiplexed Imaging. Cell 174, 968–981 e915. 10.1016/j.cell.2018.07.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Ruf B, Bruhns M, Babaei S, Kedei N, Ma L, Revsine M, Benmebarek MR, Ma C, Heinrich B, Subramanyam V, et al. (2023). Tumor-associated macrophages trigger MAIT cell dysfunction at the HCC invasive margin. Cell 186, 3686–3705 e3632. 10.1016/j.cell.2023.07.026. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Chen H, Deng C, Gao J, Wang J, Fu F, Wang Y, Wang Q, Zhang M, Zhang S, Fan F, et al. (2025). Integrative spatial analysis reveals tumor heterogeneity and immune colony niche related to clinical outcomes in small cell lung cancer. Cancer Cell 43, 519–536 e515. 10.1016/j.ccell.2025.01.012. [DOI] [PubMed] [Google Scholar]
- 14.Cords L, Engler S, Haberecker M, Ruschoff JH, Moch H, de Souza N, and Bodenmiller B (2024). Cancer-associated fibroblast phenotypes are associated with patient outcome in non-small cell lung cancer. Cancer Cell 42, 396–412 e395. 10.1016/j.ccell.2023.12.021. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Sorin M, Rezanejad M, Karimi E, Fiset B, Desharnais L, Perus LJM, Milette S, Yu MW, Maritan SM, Dore S, et al. (2023). Single-cell spatial landscapes of the lung tumour immune microenvironment. Nature 614, 548–554. 10.1038/s41586-022-05672-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Monkman J, Moradi A, Yunis J, Ivison G, Mayer A, Ladwa R, O'Byrne K, and Kulasinghe A (2024). Spatial insights into immunotherapy response in non-small cell lung cancer (NSCLC) by multiplexed tissue imaging. J Transl Med 22, 239. 10.1186/s12967-024-05035-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Bera K, Schalper KA, Rimm DL, Velcheti V, and Madabhushi A (2019). Artificial intelligence in digital pathology - new tools for diagnosis and precision oncology. Nat Rev Clin Oncol 16, 703–715. 10.1038/s41571-019-0252-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Aggarwal A, Bharadwaj S, Corredor G, Pathak T, Badve S, and Madabhushi A (2025). Artificial intelligence in digital pathology - time for a reality check. Nat Rev Clin Oncol 22, 283–291. 10.1038/s41571-025-00991-6. [DOI] [PubMed] [Google Scholar]
- 19.Niazi MKK, Parwani AV, and Gurcan MN (2019). Digital pathology and artificial intelligence. Lancet Oncol 20, e253–e261. 10.1016/S1470-2045(19)30154-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Wu E, Bieniosek M, Wu Z, Thakkar N, Charville GW, Makky A, Schurch CM, Huyghe JR, Peters U, Li CI, et al. (2025). ROSIE: AI generation of multiplex immunofluorescence staining from histopathology images. Nat Commun 16, 7633. 10.1038/s41467-025-62346-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Valanarasu JMJ, Xu H, Usuyama N, Kim C, Wong C, Argaw P, Ben Shimol R, Crabtree A, Matlock K, Bartlett AQ, et al. (2026). Multimodal AI generates virtual population for tumor microenvironment modeling. Cell 189, 386–400 e319. 10.1016/j.cell.2025.11.016. [DOI] [PubMed] [Google Scholar]
- 22.Andani S, Chen B, Ficek-Pascual J, Heinke S, Casanova R, Hild BF, Sobottka B, Bodenmiller B, Tumor Profiler C, Koelzer VH, and Ratsch G (2025). Histopathology-based protein multiplex generation using deep learning. Nat Mach Intell 7, 1292–1307. 10.1038/s42256-025-01074-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Li Z, Li Y, Xiang J, Wang X, Yang S, Zhang X, Eweje F, Chen Y, Luo X, Li Y, et al. (2026). AI-enabled virtual spatial proteomics from histopathology for interpretable biomarker discovery in lung cancer. Nat Med 32, 231–244. 10.1038/s41591-025-04060-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Jia H, Chen X, Zhang L, and Chen M (2025). Cancer associated fibroblasts in cancer development and therapy. J Hematol Oncol 18, 36. 10.1186/s13045-025-01688-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Hedrick CC, and Malanchi I (2022). Neutrophils in cancer: heterogeneous and multifaceted. Nat Rev Immunol 22, 173–187. 10.1038/s41577-021-00571-6. [DOI] [PubMed] [Google Scholar]
- 26.Zhu B, Chen P, Aminu M, Li JR, Fujimoto J, Tian Y, Hong L, Chen H, Hu X, Li C, et al. (2025). Spatial and multiomics analysis of human and mouse lung adenocarcinoma precursors reveals TIM-3 as a putative target for precancer interception. Cancer Cell. 10.1016/j.ccell.2025.04.003. [DOI] [Google Scholar]
- 27.Adrover JM, Han X, Sun L, Fujii T, Sivetz N, Dassler-Plenker J, Evans C, Peters J, He XY, Cannon CD, et al. (2025). Neutrophils drive vascular occlusion, tumour necrosis and metastasis. Nature 645, 484–495. 10.1038/s41586-025-09278-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Gaglia G, Kabraji S, Rammos D, Dai Y, Verma A, Wang S, Mills CE, Chung M, Bergholz JS, Coy S, et al. (2022). Temporal and spatial topography of cell proliferation in cancer. Nat Cell Biol 24, 316–326. 10.1038/s41556-022-00860-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Chen C, Zhao S, Karnad A, and Freeman JW (2018). The biology and role of CD44 in cancer progression: therapeutic implications. J Hematol Oncol 11, 64. 10.1186/s13045-018-0605-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Wang XQ, Danenberg E, Huang CS, Egle D, Callari M, Bermejo B, Dugo M, Zamagni C, Thill M, Anton A, et al. (2023). Spatial predictors of immunotherapy response in triple-negative breast cancer. Nature 621, 868–876. 10.1038/s41586-023-06498-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.Lu W, and Kang Y (2019). Epithelial-Mesenchymal Plasticity in Cancer Progression and Metastasis. Dev Cell 49, 361–374. 10.1016/j.devcel.2019.04.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Wang H, Kim SJ, Lei Y, Wang S, Wang H, Huang H, Zhang H, and Tsung A (2024). Neutrophil extracellular traps in homeostasis and disease. Signal Transduct Target Ther 9, 235. 10.1038/s41392-024-01933-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Yang Y, Chen X, Pan J, Ning H, Zhang Y, Bo Y, Ren X, Li J, Qin S, Wang D, et al. (2024). Pan-cancer single-cell dissection reveals phenotypically distinct B cell subtypes. Cell 187, 4790–4811 e4722. 10.1016/j.cell.2024.06.038. [DOI] [PubMed] [Google Scholar]
- 34.Li H, Zandberg DP, Kulkarni A, Chiosea SI, Santos PM, Isett BR, Joy M, Sica GL, Contrera KJ, Tatsuoka CM, et al. (2025). Distinct CD8(+) T cell dynamics associate with response to neoadjuvant cancer immunotherapies. Cancer Cell 43, 757–775 e758. 10.1016/j.ccell.2025.02.026. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Failmezger H, Muralidhar S, Rullan A, de Andrea CE, Sahai E, and Yuan Y (2020). Topological Tumor Graphs: A Graph-Based Spatial Model to Infer Stromal Recruitment for Immunosuppression in Melanoma Histology. Cancer Res 80, 1199–1209. 10.1158/0008-5472.CAN-19-2268. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Grout JA, Sirven P, Leader AM, Maskey S, Hector E, Puisieux I, Steffan F, Cheng E, Tung N, Maurin M, et al. (2022). Spatial Positioning and Matrix Programs of Cancer-Associated Fibroblasts Promote T-cell Exclusion in Human Lung Tumors. Cancer Discov 12, 2606–2625. 10.1158/2159-8290.CD-21-1714. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Jiang G, Wang Z, Cheng Z, Wang W, Lu S, Zhang Z, Anene CA, Khan F, Chen Y, Bailey E, et al. (2024). The integrated molecular and histological analysis defines subtypes of esophageal squamous cell carcinoma. Nat Commun 15, 8988. 10.1038/s41467-024-53164-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Lin JR, Chen YA, Campton D, Cooper J, Coy S, Yapp C, Tefft JB, McCarty E, Ligon KL, Rodig SJ, et al. (2023). High-plex immunofluorescence imaging and traditional histology of the same tissue section for discovering image-based biomarkers. Nat Cancer 4, 1036–1052. 10.1038/s43018-023-00576-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Bagaev A, Kotlov N, Nomie K, Svekolkin V, Gafurov A, Isaeva O, Osokin N, Kozlov I, Frenkel F, Gancharova O, et al. (2021). Conserved pan-cancer microenvironment subtypes predict response to immunotherapy. Cancer Cell 39, 845–865 e847. 10.1016/j.ccell.2021.04.014. [DOI] [PubMed] [Google Scholar]
- 40.Kim YJ, Tsang T, Anderson GR, Posimo JM, and Brady DC (2020). Inhibition of BCL2 Family Members Increases the Efficacy of Copper Chelation in BRAF(V600E)-Driven Melanoma. Cancer Res 80, 1387–1400. 10.1158/0008-5472.CAN-19-1784. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Kato R, Solanki HS, Ozakinci H, Desai B, Gundlapalli H, Yang YC, Aronchik I, Singh M, Johnson J, Marusyk A, et al. (2025). In Situ RAS:RAF Binding Correlates with Response to KRASG12C Inhibitors in KRASG12C-Mutant Non-Small Cell Lung Cancer. Clin Cancer Res 31, 1150–1162. 10.1158/1078-0432.CCR-24-3714. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Chen F, Tang H, Li C, Kang R, Tang D, and Liu J (2025). CYP51A1 drives resistance to pH-dependent cell death in pancreatic cancer. Nat Commun 16, 2278. 10.1038/s41467-025-57583-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Sengottuvel N, Whately KM, Modliszewski JL, Sellers RS, Green WD, Gong W, Woods AT, Livingston EW, Fagan-Solis KD, Cannon G, et al. (2025). Tumor suppressors in Sox2-mediated lung cancers promote distinct cell intrinsic and immunologic remodeling. JCI Insight. 10.1172/jci.insight.171364. [DOI] [Google Scholar]
- 44.Chakravarthy A, Khan L, Bensler NP, Bose P, and De Carvalho DD (2018). TGF-beta-associated extracellular matrix genes link cancer-associated fibroblasts to immune evasion and immunotherapy failure. Nat Commun 9, 4692. 10.1038/s41467-018-06654-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Chen Z, Han F, Du Y, Shi H, and Zhou W (2023). Hypoxic microenvironment in cancer: molecular mechanisms and therapeutic interventions. Signal Transduct Target Ther 8, 70. 10.1038/s41392-023-01332-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Xia Y, Wang K, Zhao J, Arter Z, Zhang Y, Zhou J, Lu Y, Zeng L, Du R, Owens JA, et al. (2025). Receptor Tyrosine Kinase Fusion-Mediated Resistance to EGFR TKI in EGFR-Mutant NSCLC: A Multi-Center Analysis and Literature Review. J Thorac Oncol 20, 465–474. 10.1016/j.jtho.2024.11.027. [DOI] [PubMed] [Google Scholar]
- 47.Tarsounas M, and Sung P (2020). The antitumorigenic roles of BRCA1-BARD1 in DNA repair and replication. Nat Rev Mol Cell Biol 21, 284–299. 10.1038/s41580-020-0218-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48.Exposito F, Redrado M, Houry M, Hastings K, Molero-Abraham M, Lozano T, Solorzano JL, Sanz-Ortega J, Adradas V, Amat R, et al. (2023). PTEN Loss Confers Resistance to Anti-PD-1 Therapy in Non-Small Cell Lung Cancer by Increasing Tumor Infiltration of Regulatory T Cells. Cancer Res 83, 2513–2526. 10.1158/0008-5472.CAN-22-3023. [DOI] [PubMed] [Google Scholar]
- 49.Le DT, Durham JN, Smith KN, Wang H, Bartlett BR, Aulakh LK, Lu S, Kemberling H, Wilt C, Luber BS, et al. (2017). Mismatch repair deficiency predicts response of solid tumors to PD-1 blockade. Science 357, 409–413. 10.1126/science.aan6733. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Dong Y, Khan L, and Yao Y (2024). Immunological features of EGFR-mutant non-small cell lung cancer and clinical practice: a narrative review. J Natl Cancer Cent 4, 289–298. 10.1016/j.jncc.2024.06.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51.Bellissimo DC, Chen CH, Zhu Q, Bagga S, Lee CT, He B, Wertheim GB, Jordan M, Tan K, Worthen GS, et al. (2020). Runx1 negatively regulates inflammatory cytokine production by neutrophils in response to Toll-like receptor signaling. Blood Adv 4, 1145–1158. 10.1182/bloodadvances.2019000785. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Bota-Rabassedas N, Banerjee P, Niu Y, Cao W, Luo J, Xi Y, Tan X, Sheng K, Ahn YH, Lee S, et al. (2021). Contextual cues from cancer cells govern cancer-associated fibroblast heterogeneity. Cell Rep 35, 109009. 10.1016/j.celrep.2021.109009. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Yang L, He YT, Dong S, Wei XW, Chen ZH, Zhang B, Chen WD, Yang XR, Wang F, Shang XM, et al. (2022). Single-cell transcriptome analysis revealed a suppressive tumor immune microenvironment in EGFR mutant lung adenocarcinoma. J Immunother Cancer 10. 10.1136/jitc-2021-003534. [DOI] [Google Scholar]
- 54.Ayers M, Lunceford J, Nebozhyn M, Murphy E, Loboda A, Kaufman DR, Albright A, Cheng JD, Kang SP, Shankaran V, et al. (2017). IFN-gamma-related mRNA profile predicts clinical response to PD-1 blockade. J Clin Invest 127, 2930–2940. 10.1172/JCI91190. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Cabrita R, Lauss M, Sanna A, Donia M, Skaarup Larsen M, Mitra S, Johansson I, Phung B, Harbst K, Vallon-Christersson J, et al. (2020). Tertiary lymphoid structures improve immunotherapy and survival in melanoma. Nature 577, 561–565. 10.1038/s41586-019-1914-8. [DOI] [PubMed] [Google Scholar]
- 56.Cristescu R, Nebozhyn M, Zhang C, Albright A, Kobie J, Huang L, Zhao Q, Wang A, Ma H, Alexander Cao Z, et al. (2022). Transcriptomic Determinants of Response to Pembrolizumab Monotherapy across Solid Tumor Types. Clin Cancer Res 28, 1680–1689. 10.1158/1078-0432.CCR-21-3329. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.McGrail DJ, Pilie PG, Rashid NU, Voorwerk L, Slagter M, Kok M, Jonasch E, Khasraw M, Heimberger AB, Lim B, et al. (2021). High tumor mutation burden fails to predict immune checkpoint blockade response across all cancer types. Ann Oncol 32, 661–672. 10.1016/j.annonc.2021.02.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Jardim DL, Goodman A, de Melo Gagliato D, and Kurzrock R (2021). The Challenges of Tumor Mutational Burden as an Immunotherapy Biomarker. Cancer Cell 39, 154–173. 10.1016/j.ccell.2020.10.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Huang Q, Li Y, Huang Y, Wu J, Bao W, Xue C, Li X, Dong S, Dong Z, and Hu S (2025). Advances in molecular pathology and therapy of non-small cell lung cancer. Signal Transduct Target Ther 10, 186. 10.1038/s41392-025-02243-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Greenwald NF, Nederlof I, Sowers C, Ding DY, Park S, Kong A, Houlahan KE, Varra SR, de Graaf M, Geurts V, et al. (2025). Temporal and spatial composition of the tumor microenvironment predicts response to immune checkpoint inhibition. bioRxiv. 10.1101/2025.01.26.634557. [DOI] [Google Scholar]
- 61.Benimam MM, Meas-Yedid V, Mukherjee S, Frafjord A, Corthay A, Lagache T, and Olivo-Marin JC (2025). Statistical analysis of spatial patterns in tumor microenvironment images. Nat Commun 16, 3090. 10.1038/s41467-025-57943-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Mo CK, Liu J, Chen S, Storrs E, Targino da Costa ALN, Houston A, Wendl MC, Jayasinghe RG, Iglesia MD, Ma C, et al. (2024). Tumour evolution and microenvironment interactions in 2D and 3D space. Nature 634, 1178–1186. 10.1038/s41586-024-08087-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63.Tavukcuoglu E, and Esendagli G (2025). IL-8 contributes to functional diversity of tumor-infiltrating neutrophils: A new target for cancer immunotherapy. Dev Cell 60, 339–341. 10.1016/j.devcel.2025.01.003. [DOI] [PubMed] [Google Scholar]
- 64.Peyraud F, Guegan JP, Rey C, Lara O, Odin O, Del Castillo M, Vanhersecke L, Coindre JM, Clot E, Brunet M, et al. (2025). Spatially resolved transcriptomics reveal the determinants of primary resistance to immunotherapy in NSCLC with mature tertiary lymphoid structures. Cell Rep Med 6, 101934. 10.1016/j.xcrm.2025.101934. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65.Maia A, Schollhorn A, Schuhmacher J, and Gouttefangeas C (2023). CAF-immune cell crosstalk and its impact in immunotherapy. Semin Immunopathol 45, 203–214. 10.1007/s00281-022-00977-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66.Helmink BA, Reddy SM, Gao J, Zhang S, Basar R, Thakur R, Yizhak K, Sade-Feldman M, Blando J, Han G, et al. (2020). B cells and tertiary lymphoid structures promote immunotherapy response. Nature 577, 549–555. 10.1038/s41586-019-1922-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67.Zhou Y, Shen G, Zhou X, and Li J (2025). Therapeutic potential of tumor-associated neutrophils: dual role and phenotypic plasticity. Signal Transduct Target Ther 10, 178. 10.1038/s41392-025-02242-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Zhou Z, Xu J, Liu S, Lv Y, Zhang R, Zhou X, Zhang Y, Weng S, Xu H, Ba Y, et al. (2024). Infiltrating treg reprogramming in the tumor immune microenvironment and its optimization for immunotherapy. Biomark Res 12, 97. 10.1186/s40364-024-00630-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69.Laumont CM, and Nelson BH (2023). B cells in the tumor microenvironment: Multi-faceted organizers, regulators, and effectors of anti-tumor immunity. Cancer Cell 41, 466–489. 10.1016/j.ccell.2023.02.017. [DOI] [PubMed] [Google Scholar]
- 70.Wang S, Wang J, Chen Z, Luo J, Guo W, Sun L, and Lin L (2024). Targeting M2-like tumor-associated macrophages is a potential therapeutic approach to overcome antitumor drug resistance. NPJ Precis Oncol 8, 31. 10.1038/s41698-024-00522-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 71.Xiang X, Wang J, Lu D, and Xu X (2021). Targeting tumor-associated macrophages to synergize tumor immunotherapy. Signal Transduct Target Ther 6, 75. 10.1038/s41392-021-00484-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 72.Meyer ML, Fitzgerald BG, Paz-Ares L, Cappuzzo F, Janne PA, Peters S, and Hirsch FR (2024). New promises and challenges in the treatment of advanced non-small-cell lung cancer. Lancet 404, 803–822. 10.1016/S0140-6736(24)01029-8. [DOI] [PubMed] [Google Scholar]
- 73.Molina-Arcas M, and Downward J (2024). Exploiting the therapeutic implications of KRAS inhibition on tumor immunity. Cancer Cell 42, 338–357. 10.1016/j.ccell.2024.02.012. [DOI] [PubMed] [Google Scholar]
- 74.Kwak JW, and Houghton AM (2025). Targeting neutrophils for cancer therapy. Nat Rev Drug Discov. 10.1038/s41573-025-01210-8. [DOI] [Google Scholar]
- 75.Fayette J, Thomas G, Daste A, Rotarski M, Castelo B, Rullan A, Levine A, Philipson RS, and Harrington KJ (2024). 853MO Setanaxib plus pembrolizumab for the treatment of recurrent or metastatic squamous cell carcinoma of the head & neck: Results of a randomized, double-blind phase II trial. Annals of Oncology 35, S615–S616. 10.1016/j.annonc.2024.08.914. [DOI] [Google Scholar]
- 76.Aggarwal V, Workman CJ, and Vignali DAA (2023). LAG-3 as the third checkpoint inhibitor. Nat Immunol 24, 1415–1422. 10.1038/s41590-023-01569-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 77.ElTanbouly MA, Zhao Y, Nowak E, Li J, Schaafsma E, Le Mercier I, Ceeraz S, Lines JL, Peng C, Carriere C, et al. (2020). VISTA is a checkpoint regulator for naive T cell quiescence and peripheral tolerance. Science 367. 10.1126/science.aay0524. [DOI] [Google Scholar]
- 78.Schuler M, Cuppens K, Plones T, Wiesweg M, Du Pont B, Hegedus B, Koster J, Mairinger F, Darwiche K, Paschen A, et al. (2024). Neoadjuvant nivolumab with or without relatlimab in resectable non-small-cell lung cancer: a randomized phase 2 trial. Nat Med 30, 1602–1611. 10.1038/s41591-024-02965-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 79.Xiang J, Wang X, Zhang X, Xi Y, Eweje F, Chen Y, Li Y, Bergstrom C, Gopaulchan M, Kim T, et al. (2025). A vision-language foundation model for precision oncology. Nature 638, 769–778. 10.1038/s41586-024-08378-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 80.Liu Z, Yang Z, Wu J, Zhang W, Sun Y, Zhang C, Bai G, Yang L, Fan H, Chen Y, et al. (2025). A single-cell atlas reveals immune heterogeneity in anti-PD-1-treated non-small cell lung cancer. Cell 188, 3081–3096 e3019. 10.1016/j.cell.2025.03.018. [DOI] [PubMed] [Google Scholar]
- 81.Herzog BH, Baer JM, Borcherding N, Kingston NL, Belle JI, Knolhoff BL, Hogg GD, Ahmad F, Kang LI, Petrone J, et al. (2023). Tumor-associated fibrosis impairs immune surveillance and response to immune checkpoint blockade in non-small cell lung cancer. Sci Transl Med 15, eadh8005. 10.1126/scitranslmed.adh8005. [DOI] [PubMed] [Google Scholar]
- 82.Gungabeesoon J, Gort-Freitas NA, Kiss M, Bolli E, Messemaker M, Siwicki M, Hicham M, Bill R, Koch P, Cianciaruso C, et al. (2023). A neutrophil response linked to tumor control in immunotherapy. Cell 186, 1448–1464 e1420. 10.1016/j.cell.2023.02.032. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 83.Gulati GS, D'Silva JP, Liu Y, Wang L, and Newman AM (2025). Profiling cell identity and tissue architecture with single-cell and spatial transcriptomics. Nat Rev Mol Cell Biol 26, 11–31. 10.1038/s41580-024-00768-2. [DOI] [PubMed] [Google Scholar]
- 84.Jia G, He P, Dai T, Goh D, Wang J, Sun M, Wee F, Li F, Lim JCT, Hao S, et al. (2025). Spatial immune scoring system predicts hepatocellular carcinoma recurrence. Nature 640, 1031–1041. 10.1038/s41586-025-08668-x. [DOI] [PubMed] [Google Scholar]
- 85.Schapiro D, Sokolov A, Yapp C, Chen YA, Muhlich JL, Hess J, Creason AL, Nirmal AJ, Baker GJ, Nariya MK, et al. (2022). MCMICRO: a scalable, modular image-processing pipeline for multiplexed tissue imaging. Nat Methods 19, 311–315. 10.1038/s41592-021-01308-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 86.Hao Y, Stuart T, Kowalski MH, Choudhary S, Hoffman P, Hartman A, Srivastava A, Molla G, Madad S, Fernandez-Granda C, and Satija R (2024). Dictionary learning for integrative, multimodal and scalable single-cell analysis. Nat Biotechnol 42, 293–304. 10.1038/s41587-023-01767-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 87.Scrucca L, Fraley C, Murphy TB, and Raftery AE (2023). Model-Based Clustering, Classification, and Density Estimation Using mclust in R (Chapman and Hall/CRC; ). 10.1201/9781003277965. [DOI] [Google Scholar]
- 88.Schapiro D, Jackson HW, Raghuraman S, Fischer JR, Zanotelli VRT, Schulz D, Giesen C, Catena R, Varga Z, and Bodenmiller B (2017). histoCAT: analysis of cell phenotypes and interactions in multiplex image cytometry data. Nat Methods 14, 873–876. 10.1038/nmeth.4391. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 89.Nirmal AJ, and Sorger PK (2024). SCIMAP: A Python Toolkit for Integrated Spatial Analysis of Multiplexed Imaging Data. J Open Source Softw 9. 10.21105/joss.06604. [DOI] [Google Scholar]
- 90.Chen Z, Soifer I, Hilton H, Keren L, and Jojic V (2020). Modeling Multiplexed Images with Spatial-LDA Reveals Novel Tissue Microenvironments. J Comput Biol 27, 1204–1218. 10.1089/cmb.2019.0340. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 91.Dhainaut M, Rose SA, Akturk G, Wroblewska A, Nielsen SR, Park ES, Buckup M, Roudko V, Pia L, Sweeney R, et al. (2022). Spatial CRISPR genomics identifies regulators of the tumor microenvironment. Cell 185, 1223–1239 e1220. 10.1016/j.cell.2022.02.015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 92.Pentimalli TM, Schallenberg S, Leon-Perinan D, Legnini I, Theurillat I, Thomas G, Boltengagen A, Fritzsche S, Nimo J, Ruff L, et al. (2025). Combining spatial transcriptomics and ECM imaging in 3D for mapping cellular interactions in the tumor microenvironment. Cell Syst 16, 101261. 10.1016/j.cels.2025.101261. [DOI] [PubMed] [Google Scholar]
- 93.Kipf TN, and Welling M (2017). Semi-Supervised Classification with Graph Convolutional Networks. International Conference on Learning Representations. [Google Scholar]
- 94.Colling R, Pitman H, Oien K, Rajpoot N, Macklin P, Group C.M.-P.A.i.H.W., Snead D, Sackville T, and Verrill C (2019). Artificial intelligence in digital pathology: a roadmap to routine use in clinical practice. J Pathol 249, 143–150. 10.1002/path.5310. [DOI] [PubMed] [Google Scholar]
- 95.Lu MY, Williamson DFK, Chen TY, Chen RJ, Barbieri M, and Mahmood F (2021). Data-efficient and weakly supervised computational pathology on whole-slide images. Nat Biomed Eng 5, 555–570. 10.1038/s41551-020-00682-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 96.Borkowski AA, Bui MM, Thomas LB, Wilson CP, DeLand LA, and Mastorides SM (2019). Lung and Colon Cancer Histopathological Image Dataset (LC25000). arXiv arXiv:1912.12142. [Google Scholar]
- 97.Filiot A, Ghermi R, Olivier A, Jacob P, Fidon L, Mac Kain A, Saillard C, and Schiratti J-B (2023). Scaling Self-Supervised Learning for Histopathology with Masked Image Modeling. medRxiv, 2023.2007.2021.23292757. 10.1101/2023.07.21.23292757. [DOI] [Google Scholar]
- 98.Horst F, Rempe M, Heine L, Seibold C, Keyl J, Baldini G, Ugurel S, Siveke J, Grunwald B, Egger J, and Kleesiek J (2024). CellViT: Vision Transformers for precise cell segmentation and classification. Med Image Anal 94, 103143. 10.1016/j.media.2024.103143. [DOI] [PubMed] [Google Scholar]
- 99.Lin TY, Goyal P, Girshick R, He K, and Dollar P (2020). Focal Loss for Dense Object Detection. IEEE Trans Pattern Anal Mach Intell 42, 318–327. 10.1109/TPAMI.2018.2858826. [DOI] [PubMed] [Google Scholar]
- 100.Chen RJ, Ding T, Lu MY, Williamson DFK, Jaume G, Song AH, Chen B, Zhang A, Shao D, Shaban M, et al. (2024). Towards a general-purpose foundation model for computational pathology. Nat Med 30, 850–862. 10.1038/s41591-024-02857-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 101.Vorontsov E, Bozkurt A, Casson A, Shaikovski G, Zelechowski M, Severson K, Zimmermann E, Hall J, Tenenholtz N, Fusi N, et al. (2024). A foundation model for clinical-grade computational pathology and rare cancers detection. Nat Med 30, 2924–2935. 10.1038/s41591-024-03141-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 102.Wilkerson MD, and Hayes DN (2010). ConsensusClusterPlus: a class discovery tool with confidence assessments and item tracking. Bioinformatics 26, 1572–1573. 10.1093/bioinformatics/btq170. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 103.Yoshihara K, Shahmoradgoli M, Martinez E, Vegesna R, Kim H, Torres-Garcia W, Trevino V, Shen H, Laird PW, Levine DA, et al. (2013). Inferring tumour purity and stromal and immune cell admixture from expression data. Nat Commun 4, 2612. 10.1038/ncomms3612. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 104.Newman AM, Liu CL, Green MR, Gentles AJ, Feng W, Xu Y, Hoang CD, Diehn M, and Alizadeh AA (2015). Robust enumeration of cell subsets from tissue expression profiles. Nat Methods 12, 453–457. 10.1038/nmeth.3337. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 105.Newman AM, Steen CB, Liu CL, Gentles AJ, Chaudhuri AA, Scherer F, Khodadoust MS, Esfahani MS, Luca BA, Steiner D, et al. (2019). Determining cell type abundance and expression from bulk tissues with digital cytometry. Nat Biotechnol 37, 773–782. 10.1038/s41587-019-0114-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 106.Aran D, Hu Z, and Butte AJ (2017). xCell: digitally portraying the tissue cellular heterogeneity landscape. Genome Biol 18, 220. 10.1186/s13059-017-1349-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 107.Hanzelmann S, Castelo R, and Guinney J (2013). GSVA: gene set variation analysis for microarray and RNA-seq data. BMC Bioinformatics 14, 7. 10.1186/1471-2105-14-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 108.Ritchie ME, Phipson B, Wu D, Hu Y, Law CW, Shi W, and Smyth GK (2015). limma powers differential expression analyses for RNA-sequencing and microarray studies. Nucleic Acids Res 43, e47. 10.1093/nar/gkv007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 109.Fox J, and Weisberg S (2019). An R companion to applied regression, Third edition / Edition (SAGE; ). [Google Scholar]
- 110.Sanchez-Vega F, Mina M, Armenia J, Chatila WK, Luna A, La KC, Dimitriadoy S, Liu DL, Kantheti HS, Saghafinia S, et al. (2018). Oncogenic Signaling Pathways in The Cancer Genome Atlas. Cell 173, 321–337 e310. 10.1016/j.cell.2018.03.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 111.Bailey MH, Tokheim C, Porta-Pardo E, Sengupta S, Bertrand D, Weerasinghe A, Colaprico A, Wendl MC, Kim J, Reardon B, et al. (2018). Comprehensive Characterization of Cancer Driver Genes and Mutations. Cell 173, 371–385 e318. 10.1016/j.cell.2018.02.060. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 112.Csardi G, and Nepusz T (2006). The igraph software package for complex network research. InterJournal Complex Systems, 1695. [Google Scholar]
- 113.Simon N, Friedman J, Hastie T, and Tibshirani R (2011). Regularization Paths for Cox's Proportional Hazards Model via Coordinate Descent. Journal of Statistical Software 39, 1–13. 10.18637/jss.v039.i05. [DOI] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Table S1. Antibody panel used for CODEX spatial proteomics, related to STAR Methods.
Table S2. Clinical characteristics of patient cohorts used in this study, related to Figure 1 and STAR Methods.
Table S3. Cell phenotype definitions with marker annotations and major lineage categories, related to Figure 3.
Table S4. Differential distribution of immunogenomic signatures and immune checkpoint markers across spatial ecotypes in TCGA-LUAD, related to Figure 4.
Table S5. Spatial features and feature categories used for immunotherapy biomarker analysis in CANVAS, related to Figure 5 and STAR Methods.
Data Availability Statement
Publicly available histopathology, multi-omics and clinical datasets were obtained from multiple sources. TCGA histology slides and clinical annotations were downloaded from the National Cancer Institute Genomic Data Commons Portal (https://portal.gdc.cancer.gov) and cBioPortal (https://www.cbioportal.org). Whole-slide images from the National Lung Screening Trial (NLST) cohort were acquired via The Cancer Imaging Archive (TCIA; https://wiki.cancerimagingarchive.net). PLCO datasets were accessed through the Cancer Data Access System (CDAS; https://cdas.cancer.gov/learn/plco) following appropriate data request approvals. The CODEX data and matched H&E images generated in this study are deposited in Zenodo (https://zenodo.org/records/20263843). The CANVAS pipeline, software, and downstream analysis scripts are publicly available at GitHub (https://github.com/lilabstanford/CANVAS).
