Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Oct 13.
Published in final edited form as: Science. 2026 May 28;392(6801):eadz2742. doi: 10.1126/science.adz2742

Pan-Cancer Spatial Atlas of Tertiary Lymphoid Structures

Kyung Serk Cho 1, Yunhe Liu 1, Guangsheng Pei 1, Jianfeng Chen 2, Yibo Dai 1,3, Yang Liu 1, Tieling Zhou 4, Antoine Bougouin 5, Alejandra Serrano 4, Khalida Wani 4, Akshaya Jadhav 4, Jimin Min 6,7, Sharia Hernandez 4, Wei Lu 4, Daiwei Zhang 8,9, Jiahui Jiang 1, Diana Shamsutdinova 4, Enyu Dai 1, Fuduan Peng 1, Ansam Sinjab 10, Paola A Guerrero 4, Idania Carolina Lubo Julio 4, Kai Yu 1, Helen Clark 11, Dipen Maru 4,12, Mingyao Li 13, Andrew Futreal 1, Sanghoon Lee 11, Luisa Maren Solis Soto 4, Lulu Shang 14, Pavlos Msaouel 2,3, Jaffer A Ajani 15, Hannah Beird 1, Amir A Jazaeri 11, Alexander J Lazar 1,3,4,12, Catherine Sautes-Fridman 5,*, Wolf H Fridman 5,*, Anirban Maitra 6,7,*, Humam Kadara 3,4,*, Jianjun Gao 2,*,#, Padmanee Sharma 2,16,17,19,*,#, Linghua Wang 1,3,17,18,19,*,#
PMCID: PMC13656019  NIHMSID: NIHMS2211024  PMID: 42207882

Abstract

Tertiary lymphoid structures (TLSs) are critical regulators of anti-tumor immunity, yet their spatial organization, maturation, and clinical relevance remain incompletely defined across cancers. We analyzed spatial transcriptomics across 12 cancer types to construct a pan-cancer TLS atlas and characterized TLS spatial architecture and maturation. TLS maturation is accompanied by coordinated remodeling of distinct niche cell populations and distance-dependent gradients in tumor programs, orthogonally supported by ultrahigh-plex single-cell spatial profiling. To enable large-scale TLS profiling, we trained an AI framework that detects TLSs and predicts maturation states directly from H&E images and evaluated it across TCGA and independent therapy cohorts. We further derived a maturation-aware composite score capturing within-tumor TLS state composition, which robustly stratifies patients across cancer and treatment contexts, outperforming conventional TLS metrics. Together, this study advances TLS biology and establishes frameworks that enable scalable TLS profiling and support TLS state composition as a translational biomarker for precision immuno-oncology.

Keywords: Tertiary lymphoid structure (TLS), Spatial transcriptomics (ST), Pan-cancer, Tumor microenvironment (TME), Early TLS (E-TLS), Primary follicle-like TLS (P-TLS), Secondary follicle-like TLS (S-TLS), Maturation state, Artificial intelligence (AI)

Graphical Abstract

graphic file with name nihms-2211024-f0001.webp


Effective anti-tumor immunity in solid tumors depends on orchestrated local immune microenvironments that support lymphocyte activation. Tertiary lymphoid structures (TLSs) are ectopic lymphoid aggregates that arise in non-lymphoid tissues under chronic inflammatory conditions, including cancer (1). TLSs frequently develop within the tumor microenvironment (TME) and have been observed across a broad range of human solid tumors, where they contribute to lymphocyte activation, B cell immunity, and regulation of anti-tumor immune responses (2, 3). Intratumoral TLSs support B cell maturation and antibody production (3) and are associated with increased tumor-infiltrating lymphocytes, particularly effector memory CD8+ T cells (4). The presence of TLSs has been linked to favorable responses to immune checkpoint blockade (ICB) and prolonged survival across multiple cancer types (4–11), fueling interest in TLSs as predictive biomarkers, prognostic indicators, and potential therapeutic targets (11–13).

Resembling secondary lymphoid organs, TLSs typically contain segregated B cell follicles and T cell zones, antigen-presenting cells, and specialized stromal components, including fibroblasts (14) and high endothelial venules (HEVs), which facilitate immune cell recruitment and spatial organization (3). Mature TLSs containing germinal centers (GCs) are generally associated with enhanced anti-tumor immunity and improved ICB efficacy (10, 15). However, accumulating evidence indicates that TLSs are highly heterogeneous in their spatial distribution, cellular composition, organization, and maturation state, both within and across anatomical sites and tumor types (16). TLSs can range from early lymphocyte aggregates to fully developed secondary follicle-like structures with GCs (16, 17), and their formation and maturation appear to be influenced by tumor antigenicity and local TME dynamics (2, 16). Tumor-intrinsic factors, including metabolic reprogramming, have also been implicated in constraining TLS maturation in specific cancer contexts (18).

Despite these advances, a systematic characterization of TLS phenotypic and functional heterogeneity in large tissue sections across cancer types remains lacking. Moreover, how TLS profiles relate to tumor molecular features and clinical outcomes across large cohorts and treatment contexts remains incompletely defined. Addressing these gaps is essential for understanding context-dependent mechanisms of TLS formation and function, laying a foundation for TLS-based biomarker development and informing therapeutic strategies aimed at modulating TLSs. Spatial profiling technologies provide new opportunities to study TLSs. For example, spatially resolved transcriptomics (ST) now enables transcriptome-wide profiling across entire tissue sections, typically paired with high-resolution H&E images (19, 20), allowing detailed examination of TLSs within large tissue samples. However, scalable, integrated computational frameworks for automated TLS detection and phenotyping from spatial omics and histology data are currently lacking. Additionally, current approaches for TLS-based patient stratification are suboptimal. Most studies categorize patients based on the presence or absence of TLSs (21–23) or use broad groupings such as mature versus immature TLSs (21, 24), which may not be sufficiently robust, because they do not capture intratumoral heterogeneity in TLS states. There is a need to establish robust, scalable metrics to enable more precise patient stratification across diverse clinical settings and enhance the utility and impact of TLS-based biomarkers.

In this study, we developed a robust computational framework to automatically identify, segment, and phenotype TLSs across cancer types, and applied it to a pan-cancer analysis. By integrating transcriptomic, spatial, histopathological, and clinical data, we systematically characterized TLS abundance, spatial distribution, size, maturation states, and transcriptomic programs in 340 ST samples across 12 cancer types and examined their interactions with tumor cells and the surrounding TME. Building on insights from paired spatial omics and histology, we trained a deep learning model to classify TLSs using hematoxylin and eosin (H&E)-stained whole-slide images (WSIs) alone and applied it to classify 25,088 TLSs from 3,071 WSIs across 10 independent cohorts. Finally, we developed a data-driven, unsupervised TLS-based patient stratification framework that outperformed existing approaches in prognostic evaluation. Together, this work provides a comprehensive landscape of TLS heterogeneity across cancers and establishes spatially defined TLS features and AI-driven TLS classification as scalable tools for precision immuno-oncology.

Spatial transcriptomics reveals the landscape of TLSs across tissues

To systematically characterize the spatial and molecular heterogeneity of TLSs in cancer, we analyzed ST data from 340 tumor samples collected from 255 patients across 12 cancer types, incorporating both publicly available and in-house datasets (Fig. 1A, tables S1 and S2). All datasets were processed uniformly using our established computational framework (Fig. 1B; Materials and Methods). TLS-enriched regions were identified based on high TLS signature scores derived from a curated TLS gene set (25) (table S3), followed by unsupervised clustering, segmentation, and filtering. Each segmented TLS was automatically assigned a unique identifier, yielding 695 TLSs for downstream analyses, including assessment of maturation state, spatial location, and transcriptomic profiling (Fig. 1B).

Fig. 1. Study design and workflow for TLS detection and analysis.

Fig. 1.

(A) Schematic of the study design. TCGA cancer type abbreviations are used. (B) Overview of the analysis workflow (see Materials and Methods). Data is input into iStar (103) and TLS signature score are calculated based on our previously reported TLS signature (103). Unsupervised clustering is performed to extract TLS regions, followed by TLS segmentation. Gene expression data is extracted simultaneously for each TLS and TLS IDs are automatically assigned, followed by maturation inference, spatial location identification, and downstream analyses. Intra-Tumor (IT): TLS within tumor tissue. Peri-Tumor (PT): TLS within two spots (200 μm) of tumor. Distal-Tumor (DT): TLS greater than two spots from tumor. (C) (Left) Fractions of samples with/without TLS. (Right) Number of TLS+ samples across 12 cancer types. (D) (Left) Average TLS size. (Right) Number of TLS per sample by cancer type. (E) (Left) Proportion of TLSs by spatial location. (Right): Relative fractions of TLS locations across cancer types. ***p < 0.001, **p < 0.1, *p < 0.05; p-values calculated using Pearson’s Chi-squared Test. In (D, E) right panels, Cancer types with > 5 TLS+ samples were included.

The proportion of samples containing TLSs varied substantially across cancer types (Fig. 1C). TLSs were most prevalent in lung adenocarcinoma (LUAD), kidney renal clear cell carcinoma (KIRC), stomach adenocarcinoma (STAD), breast cancer (BRCA), liver hepatocellular carcinoma (LIHC), and bladder carcinoma (BLCA), whereas pancreatic adenocarcinoma (PAAD), oral squamous cell carcinoma (OSCC), ovarian carcinoma (OVCA), and glioblastoma multiforme (GBM) exhibited few or no detectable TLSs. TLS size and frequency within individual tumors also differed markedly across cancer types (Fig. 1D and table S4). LUAD samples exhibited the highest number of TLSs per sample whereas no TLSs were detected in the 36 GBM samples analyzed, despite prior evidence that TLSs can form in gliomas (26). The absence may reflect limited ST dataset availability and sampling depth for GBM.

We further classified TLSs into three spatial categories-intra-tumoral (IT), peri-tumoral (PT), and distal-tumoral (DT), based on their spatial proximity to tumor regions (see Materials and Methods). TLSs were distributed relatively evenly across the three categories, with 214 IT, 231 PT, and 250 DT TLSs identified, although their relative proportions varied by cancer type (Fig. 1E; table S4). LUAD and CSCC showed higher fractions of IT TLSs, whereas BRCA was enriched for PT TLSs, and LIHC, CRC, BLCA, KIRC, and PAAD exhibited higher fractions of DT TLSs. Together, these analyses reveal pronounced heterogeneity in TLS prevalence, size, and spatial organization across cancers, underscoring the diverse architectural patterns of TLSs within the TME.

TLS maturation states differ across cancer types

To characterize TLS maturation, we classified TLSs into three maturation states-early TLS (E-TLS), primary follicle-like TLS (P-TLS), and secondary follicle-like TLS (S-TLS)-using unsupervised clustering based on canonical markers of follicular dendritic cells (FDCs) and germinal center (GC) B cells (Fig. 2A, table S4; Materials and Methods), consistent with established models of TLS development (16, 27). This analysis identified 379 E-TLSs (54.5%), 215 P-TLSs (31%), and 101 S-TLSs (14.5%). E-TLSs represent early lymphoid aggregates lacking organized follicular structure, P-TLSs exhibit segregated B- and T-cell zones with FDC presence but without a fully developed GC, and S-TLSs are characterized by well-organized B- and T-cell zones with established FDC networks and a localized GC (Fig. 2B; fig. S1). Consistent with progressive maturation, TLS signature scores increased stepwise from E-TLS to S-TLS, accompanied by elevated expression of markers for T cells, B cells, FDCs (e.g., CR2, FCER2) and GC B cells (GCB; e.g., BCL6, MKI67) (Fig. 2C). To validate these assignments, we generated paired ST (Visium, 10x Genomics) and spatial proteomics (SP, Lunaphore COMET or Akoya IO60) on the same or adjacent tissue sections (table S5; Materials and Methods). ST-defined TLS architecture closely concorded with protein-level staining of key immune and stromal components (Fig. 2D; fig. S2), including B-cell follicles, T-cell zones, FDC networks (fig. S2A), and GC features, as well as additional TLS components such as T follicular helper (Tfh) cells and fibroblasts (fig. S2B). Notably, in P-TLSs and S-TLSs, we consistently observe a CD21+ reticular/mesh-like pattern localized to the B-cell follicular region, characteristic of FDC networks (Fig. 2D; fig. S2). These features were reproducibly detected across spatial omics platforms and independently reviewed by board-certified pathologists, providing orthogonal histologic support for the robustness and biological validity of our TLS maturation assignments.

Fig. 2. Systematic classification and spatial profiling of TLS maturation states.

Fig. 2.

(A) Workflow for TLS maturation classification. TLSs are first divided into early (E-TLS) and mature TLSs (mTLS) based on the presence of follicular dendritic cells (FDC). FDC+ TLSs are further categorized as primary follicle-like (P-TLS) or secondary follicle-like TLS (S-TLS) depending on germinal center (GC) presence. Pie chart displays the proportions and counts of each maturation state. GCB, germinal center B cell; PC, plasma cell; DC, dendritic cell, FDC, follicular dendritic cell. (B) Representative examples of E-TLS, P-TLS, and S-TLS, each with an H&E image and corresponding heatmaps showing differential expression of TLS score and six marker genes used for maturation classification. Scale bar, 100 μm. (C) Differential expression of TLS score and six marker genes across three TLS maturation states. All TLSs are included. P-values from Wilcoxon rank-sum tests are shown. (D) Cross-platform validation of TLS maturation state assignments using spatial transcriptomics (Visium ST) and spatial proteomics (COMET seqIF). Representative E-TLS, P-TLS, and S-TLS examples are shown from adjacent tissue sections of the same tumors. Top row (Visium ST), left to right, H&E image, TLS signature score, cell co-localization map, and cell-type signature scores for B cells, T cells, FDCs, and germinal center B cells. Bottom row (COMET): left to right, merged immunofluorescence composite and single-channel images for CD20 (B cells), CD3ε (T cells), CD21 (FDCs), and BCL6/Ki67 (GC), highlighting a CD21+ reticular pattern in mTLS. Scale bar: 100 μm. (E, H, I) Relative fractions of TLS maturation states across spatial locations (E), cancer types (H), and combined characterization of TLSs by maturation state and spatial location (I). (F) Boxplots comparing the TLS size across maturation states. P-values from Wilcoxon rank-sum tests are shown. (G) TLS counts by maturation state across cancer types. Bar plots and pie charts illustrate the distributions. Cancer types with >1 TLS were included. ***p < 0.001, **p < 0.1, *p < 0.05; p-values by Pearson’s Chi-squared Test.

We next examined the spatial distribution of TLS maturation states across IT, PT, and DT regions (Fig. 2E). P-TLSs were preferentially enriched in DT regions, whereas E-TLSs were more frequently observed within IT regions (Fig. 2E). TLS size increased progressively with maturation state, with S-TLSs significantly larger than P-TLSs and E-TLSs (Fig. 2F; fig. S2C). Analysis across cancer types revealed marked heterogeneity in TLS maturation states (Fig. 2, G and H). S-TLSs were enriched in STAD, P-TLSs in LIHC and CRC, and E-TLSs in BRCA and OVCA (Fig. 2H). Integrating maturation state with spatial location further delineated nine TLS subtypes, revealing additional layers of heterogeneity across tumor types. For instance, distal-tumoral (DT) P-TLSs predominated in LIHC, CRC, and BLCA, peri-tumoral (PT) E-TLSs in OVCA, BRCA, and LUAD, and DT E-TLSs in PAAD and KIRC (Fig. 2I). Together, these results demonstrate that TLS maturation and spatial organization vary substantially across cancers, highlighting the context-dependent nature of TLS development.

Transcriptional programs associated with TLS maturation

We then investigated transcriptional differences across TLS maturation states by comparing the expression of markers and gene signatures across key cellular components of TLS, as well as cytokines/chemokines and related signaling programs, in E-TLS, P-TLS, and S-TLS (Fig. 3A; fig. S3). These analyses revealed coordinated and stage-dependent remodeling of the immune and stromal components of TLSs as they progress toward functional maturation.

Fig. 3. Differential cellular composition and gene programs across TLS maturation states.

Fig. 3.

(A) Heatmaps showing differential expression of key lineage markers, cell states, signaling pathways, and cytokines/chemokines across E-TLS, P-TLS, and S-TLS. Shown are markers for major TLS components, including B-cell and T-cell subsets, proliferative programs, and immunoregulatory cytokines and chemokines. Bn, naïve B cell; Breg, regulatory B cell; Bm, memory B cell; GCB, germinal center B cell; PC, plasma cell; Tn, naïve T cell; Tcm, central memory T cell; Teff, effector T cell; Tfh, T follicular helper cell; Treg, regulatory T cell. (B) Plasma cell dissemination and antibody isotype distribution across TLS maturation states in ccRCC. TLSs were identified by PNAd, CD20, CD23, and BCL6 and outlined with yellow dashed lines. White squares indicate regions shown at higher magnification in E-TLS (top row), P-TLS (middle row), and S-TLS (bottom row). Scale bar, 100 μm. (C) Spatial mapping of IL10+ B cells (Breg-like) within TLSs using Xenium 5K in lung adenocarcinoma. Two representative Xenium 5K spatial transcriptomics fields are shown. From left to right: whole-TLS single-cell maps with annotated cell types. Corresponding zoomed-in regions highlighting Breg-like cells within mature TLSs; maps showing IL10 co-expression with CD24 and/or CD1D within individual B cells; and higher-magnification views highlighting transcripts of IL10, CD1D, and CD24 within Breg-like cells. Scale bars, 100 μm (left); 10 μm (middle).

B cell programs evolved progressively with TLS maturation, reflecting enhanced B cell recruitment, organization, activation, and differentiation. P-TLSs exhibited elevated expression of canonical B cell markers and genes associated with B cell activation and early differentiation (e.g., BANK1, CD40), along with plasma cell (PC)-related markers (e.g., IGHA1, IGHG1, MZB1, JCHAIN). In contrast, S-TLSs were characterized by enrichment of GCB cell, memory B cell (Bm), and PC differentiation programs (e.g., PRDM1, XBP1, SDC1, CD38), consistent with advanced B cell maturation, class switching, and antibody production (28) (Fig. 3A). The lower abundance of PC-associated transcripts within S-TLS cores likely reflects dissemination of terminally differentiated antibody-secreting cells (ASCs) from mature TLSs.

To directly assess ASC abundance and isotype distribution, we performed multiplex immunofluorescence (mIF) in clear cell renal cell carcinoma (ccRCC), a non-mucosal context chosen to minimize tissue-of-origin IgA skewing (table S6; Materials and Methods). The panel combined PNAd, CD20, CD23, and BCL6 to define TLS architecture and maturation, together with MUM1 (IRF4), IgA, and IgG to assess ASC identity and isotype distribution (Fig. 3B). In E-TLSs, ASCs were sparse, largely confined within TLS boundaries, and predominantly IgG+ (Fig. 3B, top). In contrast, P-TLSs and S-TLSs exhibited increased ASC density, with both IgG+ and IgA+ populations frequently intermingled within follicular regions and disseminated into peri-TLS and adjacent tumor areas (Fig. 3B, middle and bottom). These findings support a functional link between TLS maturation and antibody output.

In parallel, TLS maturation was accompanied by increased lymphoid recruitment and niche-organization signals, including CCR7-axis chemokines (e.g., CCL19) that support lymphocyte trafficking and positioning, CXCL13 associated with B-cell recruitment and follicular organization, and immune-activating cues (e.g., CXCL10, IL7, IL33) that were most elevated in S-TLSs (Fig. 3A; fig. S3A) (11, 29, 30). S-TLSs also showed increased expression of proliferation-associated genes (e.g., MKI67, BIRC5, STMN1), consistent with active cellular expansion within mature TLS niches.

Notably, regulatory B cell (Breg)-associated genes (IL10, TGFB1, CD24, CD5, CD1D) peaked in S-TLSs, indicating engagement of immunoregulatory programs alongside adaptive immune activation (28). To define the cellular sources of immunoregulatory cytokines within TLSs, we analyzed in-house Xenium Prime 5K ST data from LUAD samples, which provides single-cell and subcellular resolution for in situ mapping of cytokine transcripts within defined B-cell populations (see Materials and Methods). We identified a subset of B cells co-expressing IL10 and CD24 and/or CD1D, referred to here as Breg-like cells (Fig. 3C; fig. S3B). These cells were spatially enriched within S-TLSs, providing direct spatial evidence that IL10-expressing B cells localize to mature TLSs. Importantly, IL10 and TGFB1 expression in S-TLSs may not be restricted to B cells, as these cytokines can also be produced by myeloid or stromal cells within or adjacent to TLSs.

As TLSs mature, T cell programs diversified into distinct functional states. E-TLSs showed limited T cell activation, whereas mature TLSs, particularly S-TLSs, were enriched for memory, effector, and cytotoxic T cell signatures (Fig. 3A; fig. S3A). S-TLSs also showed enrichment of follicular helper T cells (Tfh), supported by co-expression of CD4, ICOS, and PD-1 proteins detected by high-plex imaging (IO60 panel; fig. S2B), together with increased expression of canonical Tfh markers (Fig. 3A) and a Tfh gene signature (31)(fig. S3C). These states were accompanied by elevated recruitment cues (Fig. 3A; fig. S3C) and increased interferon activity, reflected by elevated interferon-stimulated genes and key regulators of interferon signaling such as STAT1 (32) (fig. S3D). In parallel, S-TLSs showed increased expression of regulatory T cell and immune checkpoints/exhaustion programs (e.g., FOXP3, IL2RA, PDCD1, CTLA4, TIGIT, LAG3, HAVCR2), indicating that mature TLSs couple immune activation with regulatory restraint. Upregulation of stress-response genes (e.g., HSPA1A/B, HSPA6/8, HSPD1, BAG3, DNAJB1/4) in S-TLSs further suggests metabolic adaptation accompanying sustained immune activation (21, 29, 32, 33) (fig. S3D).

Beyond lymphocytes, TLS maturation was accompanied by coordinated remodeling of antigen-presenting, stromal, and vascular compartments. As TLSs progressed from E-TLSs to S-TLSs, we observed increased expression of DC-associated markers (e.g., CD1C, CD86, LAMP3), DC-recruitment cues (CCL19, CCL21, CCR7) and cytokines (IL12A, IL27), together with enrichment of macrophage activation programs and macrophage-attracting chemokines (CCL2, CCL4, CXCL16) and cytokines (IL10, IL6), along with stronger antigen-presentation signals (Fig. 3A; fig. S3D) (30, 34–37). In parallel, vascular and stromal remodeling intensified with TLS maturation, reflected by increased expression of vascular and lymphatic endothelial markers (LYVE1, CD34), angiogenic factors (VEGFA, KDR, TXNDC5), and associated signaling molecules (e.g., CXCL12, CXCR4, IL6, IL11, OSM). Consistently, high endothelial venules (HEVs) were observed in histology and spatial proteomics images. Together, these coordinated changes support the view that mature TLSs couple antigen presentation and innate immunity with stromal and vascular support that collectively sustain highly organized functional immune niches in the TME (38).

TLS proximity associates with spatial gradients of tumor signaling

To investigate spatial associations between tumor programs and TLS characteristics, we correlated tumor-pathway activity in tumor-enriched spots with sample-level TLS features, including E/P/S-TLS proportions and TLS location metrics, as well as location-stratified maturation measures (see Materials and Methods). These analyses were designed to characterize spatial associations between TLS features and tumor signaling rather than infer causal effects of TLSs on tumor programs. Across cancers, TLS maturation state and spatial location were associated with distinct tumor pathway profiles (fig. S4A). E-TLSs generally showed positive correlations with proliferative and inflammatory pathways and negative correlations with metabolic and stress-adaptive programs in tumor spots. In contrast, more mature TLSs, particularly PT P-TLSs and S-TLSs, exhibited attenuated associations with proliferative and inflammatory tumor programs relative to E-TLSs, and instead showed positive associations with immune-related pathways, including complement activation and IFN-g and IFN-a responses. In addition, IT S-TLSs showed negative associations with tumor-related programs, such as proliferation, epithelial-mesenchymal transition (EMT), angiogenesis, and MYC signaling. P-TLSs displayed location-dependent patterns, with PT P-TLSs more closely resembling S-TLS-associated profiles. Together, these results indicate that TLS maturation and spatial context are linked to distinct tumor signaling environments, highlighting maturation-and location-dependent heterogeneity in TLS-associated tumor-microenvironment interactions.

We then examined how TLS proximity shape tumor signaling by modeling pathway activity as a function of spatial distance from intra-tumoral (IT) TLSs (Fig. 4A). Two dominant spatial gradients emerged across cancers (Figs. 4B–D). Immune-related pathways, including IFN-α and IFN-γ responses, MHC-II antigen presentation, and inflammatory signaling, were highest in tumor regions proximal to TLSs and progressively decreased with distance (“high-to-low” gradients). In contrast, tumor-intrinsic programs associated with proliferation and invasion, such as MYC signaling, G2/M checkpoint, EMT, and KRAS signaling, were lowest near TLSs and increased with distance (“low-to-high” gradients) (Fig. 4C). These spatial patterns were conserved across multiple cancer types (Fig. 4C–D). When applying the same distance-based framework to TLSs located in histologically normal tissues, immune-related pathways retained similar proximity-dependent gradients, whereas tumor-intrinsic proliferative and invasive gradients were absent (fig. S4B). This contrast indicates that TLS-associated immune activation represents a conserved spatial feature of TLS niches, whereas distance-dependent tumor-associated pathway gradients are specific to malignant tissue contexts.

Fig. 4. Spatial dynamics of tumor pathway activity relative to TLS proximity.

Fig. 4.

(A) Schematic illustrating an IT TLS (left) and how the distance between its center and nearby tumor regions is measured. (B) Bar plots showing correlations between the top 10 enriched pathways in tumor regions and their distance from IT TLS. “High-to-Low” pathways exhibit high expression near TLS that decreases with distance, while “Low-to-High” pathways show the opposite trend. Pie charts indicate cancer types associated with each enrichment trend. (C) Heatmaps displaying spatial expression dynamics of pathway scores across tumor regions ordered by proximity to IT TLS (left = proximal; right = distal) in four representative cancer types. Pathways are hierarchically clustered into “High-to-Low” (top) and “Low-to-High” (bottom) groups. Numbered and color-coded annotations indicate the top 10 pathways. (D) Line plots showing expression dynamics of the top 10 pathways (from C) across tumor distance from IT TLS in eight cancer types. Each line represents a different cancer type. (E) Representative examples of distance-dependent expression changes for TLS-associated cytokines and chemokines (TNFSF14, CXCL11, CXCL16, CXCL10) across eight cancer types. (F) Representative spatial maps from a Xenium tumor sample (left to right): whole-slide H&E image, IT TLS map, and zoomed-in spatial cell type maps for four representative TLSs (#1–4), showing distinct immune and stromal compartments with major cell types annotated. (G) Representative Xenium spatial transcriptomics map highlighting selected TLS-1 (left) and TLS-2 (right) from panel F and higher-magnification views of boxed regions from each TLS (middle), displaying cell boundaries overlaid with transcript expression for TLS-associated chemokines (TNFSF14, CXCL16, CXCR6, CXCL10, CXCL11, CXCR3). For panels (D) and (E), X-axis: distance from IT TLS (proximal to distal); Y-axis: normalized signature score (z-score).

To explore potential signaling interactions at the TLS–tumor interface, we analyzed ligand–receptor pairs enriched within IT TLSs boundaries by comparing gene expression within IT TLS cores to their immediate 50-μm margins (see Materials and Methods) (fig. S4C). Several immune signaling genes, including TNFSF14, CXCR3, and CXCR6, were preferentially expressed within TLS cores, whereas their cognate receptor or ligands (TNFRSF14, CXCL10/11, and CXCL16) exhibited pronounced distance-dependent “high-to-low” gradients in surrounding tumor regions, peaking TLS-proximal tumor spots and progressively decreasing with increasing distance across multiple cancer types (Fig. 4E). These patterns are consistent with the presence of short-range cytokine and chemokine signaling fields associated with TLSs.

We further validated these spatial relationships at single-cell resolution using paired Visium and Xenium Prime 5K datasets from our in-house LUAD cohort (Fig. 4F; fig. S4D; Materials and Methods) (39). TLS cores were enriched for TNFSF14, CXCR3, and CXCR6 transcripts, whereas TNFRSF14, CXCL10/11, and CXCL16 localized predominantly to tumor or stromal cells immediately adjacent to TLSs (Fig. 4G). This complementary spatial organization, mapped at single-cell and subcellular resolution, supports localized inflammatory signaling patterns centered on TLSs and engagement of cognate signaling partners within TLS-proximal tumor regions. Together, these results indicate that TLSs are embedded within short-range cytokine and chemokine signaling fields characterized by spatially coordinated expression of ligands and receptors across immune, tumor, and stromal compartments at TLS–tumor interfaces.

Association between TLS maturation and tumor genomic and molecular subtypes

We next evaluated TLS maturation states in three cancer types-CRC, LIHC, and BLCA-with rich clinical and molecular annotations (Fig. 5). In the CRC cohort (36 samples from 23 patients) from Heiser et al. (40) (Fig. 5A), TLSs were more prevalent in right-sided tumors (Fig. 5B), consistent with a more immunogenic microenvironment (41). E-TLS appeared more frequent in adenoma regions, whereas S-TLSs were predominantly observed within carcinoma regions (Fig. 5, C–D). S-TLSs showed a trend toward enrichment in higher-grade tumors, with their proportions progressively increasing from G1 to G3 (p = 0.058, Pearson’s Chi-square test) (Fig. 5E), were exclusively observed in KRAS wild-type (WT) tumors (Fig. 5F, left), and were more frequent in patients with metastatic disease (Fig. 5F, right).

Fig. 5. Association between TLS maturation states, tumor features, and driver mutation status across cancer cohorts.

Fig. 5.

(A-F) Colorectal cancer cohort (Heiser et al.) (40). (A) Cohort overview. (B) TLS count and maturation states across patient samples (column), annotated with clinical and molecular features. MSS: microsatellite stable; MSI-H: microsatellite instability high; SSL: sessile serrated lesion; HP: hyperplastic polyp; TA: tubular adenoma; TVA: tubulovillous adenoma; Mets: Metastasis; No Mets: No metastasis. (C) Pathology annotation of tissue compartments from the original study (40). Bar plot shows the fractions of tissue compartments co-localized with TLSs by maturation state. (D) Heatmap depicting the relative enrichment of tissue compartments across TLS maturation states (Ro/e values). (E) Stacked bar plot showing the relative fractions of E-TLS, P-TLS, and S-TLS by tumor grade (G1-G3). (F) Enrichment of TLS maturation states by metastases (left) and KRAS mutation status (right). (G-I), the primary liver cancer cohort (Wu et al.) (42). (G) Cohort overview. (H) TLS count and maturation states across patient samples (column), annotated with clinical and molecular features. HBV, hepatitis B virus. (I) Tissue region annotations (tumor bed, boundary, non-tumor; see Materials and Methods) and TLS distribution across regions by maturation state, shown in bar plots (I, bottom) and Ro/e enrichment plot (J). (K) TLS maturation state distribution by HBV status. (L) Enrichment of TLS states by HBV infection status (left) and tumor stage (right). (M-Q), the in-house bladder cancer cohort. (M) Cohort overview. (N) TLS count and maturation state distribution across samples (column), annotated with clinical and molecular features, including tumor stage (cStage pre), MTAP status, and treatment response. R: Responder; NR: Nonresponder. (O) Tissue compartments annotated by board-certified pathologists. TILs, tumor infiltrating lymphocytes. TLS distribution between tumor and stroma by maturation state, shown in bar plot (O, bottom) and Ro/e enrichment plot (P). (Q) Enrichment of TLS maturation states by status of MTAP (left) and chemotherapy response (right). MTAP+: MTAP wildtype; MTAP−: MTAP loss. In panels (C), (I), and (O), TLSs were annotated using our own workflow. For panels (D), (J), and (P), relative enrichment was calculated using Ro/e (see Materials and Methods). For panels (F), (L), and (Q), proportion tests did not show significant differences in TLS maturation state distributions across groups.

In the LIHC cohort (21 samples from 7 patients) from Wu et al. (42) (Fig. 5G), TLSs were most prevalent at the tumor leading edge compared to tumor cores (Fig. 5H). E-TLSs and S-TLSs were more common at the tumor boundaries, whereas P-TLSs appeared to be enriched within the tumor (Fig. 5, I and J). Notably, S-TLSs were observed predominantly in HBV-positive patients (Fig. 5, H, K and L), consistent with prior report that chronic inflammation associated with HBV infection may facilitate TLS maturation within the liver (43). More advanced disease stages (BCLC B/C) also tended to show higher prevalence of mature TLSs (Fig. 5L).

In our in-house BLCA cohort (10 patients: 5 MTAP-positive and 5 MTAP-loss) (Figs. 5M–N), S-TLSs were not detected. P-TLSs were more frequently located to stromal regions, whereas E-TLS predominated within tumor regions (Fig. 5, O–P), a pattern distinct from CRC and LIHC cohorts. Consistent with prior reports linking MTAP loss to an immune-cold TME (44), MTAP-loss tumors showed a trend toward a higher prevalence of TLS absence and fewer P-TLSs compared to MTAP-positive tumors (Fig. 5Q). E-TLSs also tended to be enriched in chemotherapy non-responders (Fig. 5Q).

Overall, across cohorts we observed consistent but not statistically powered trends linking TLS maturation states with tumor pathological grade, genomic context, and chronic inflammatory etiologies. Across cohorts, mature TLSs were often localized to peri-tumoral or stromal regions rather than tumor cores. The observation of mature TLSs in more aggressive or advanced-stage tumors may be consistent with an immune response emerging alongside tumor progression, rather than indicating a uniformly protective role. Collectively, TLS maturation state and spatial context may serve as indicators of immune engagement or dysfunction across clinical settings; however, current ST cohorts remain small and heterogeneous, limiting statistical power, and larger, subtype-resolved cohorts will be needed for definitive pan-cancer inference.

Scalable AI framework for TLS detection and maturation classification from H&E images

Given the limited size of available ST cohorts, we developed an AI-enabled framework for automatic TLS detection and maturation classification using H&E-stained WSIs alone. We curated a total of 3,071 WSIs from ten cohorts, including 6 TCGA cohorts-lung squamous cell carcinoma (LUSC, n=374), BLCA (n=345), KIRC (n=299), LUAD (n=540), STAD (n=442), and COAD (n=458)-and four independent therapy cohorts, including ovarian clear cell carcinoma (OCCC, n=39), high-grade serous ovarian carcinoma (HGSOC, n=286), and BRCA (Sammut et al., n=203; Farahmand et al., n=85) (Fig. 6A, left). To achieve this, we first applied HookNet-TLS (45) to detect TLSs in WSIs, followed by segmentation and TLS image extraction, yielding a total of 25,088 labeled TLSs across the 10 cohorts (Fig. 6A, middle). We then leveraged YOLOv8 (46), an advanced convolutional neural network for object detection and classification, to train a two-step classifier that first distinguishes E-TLSs from mTLSs, followed by subclassification of mTLSs into P-TLSs and S-TLSs.

Fig. 6. AI-driven TLS classification and its prognostic relevance in TCGA cohorts.

Fig. 6.

(A) Schematic overview of the AI-based TLS detection and classification frameworks applied to 3,071 whole slide images (WSIs) from 10 patient cohorts (TCGA: LUSC, KIRC, BLCA, LUAD, STAD, COAD; therapy cohorts: OCCC, HGSOC, BRCA (Sammut et al.) (50), BRCA (Farahmand et al.) (51)). Each WSI was tiled at multiple resolutions for analysis. TLSs were detected using a deep learning model (Hooknet-TLS) (45), then segmented and automatically labeled using our custom workflow, yielding 25,088 individual TLS images. An AI model (YOLOv8) (46) was trained and then applied to classify TLSs into three maturation states: E-TLS, P-TLS and S-TLS (see Materials and Methods) (46). Bar graph displaying the relative fractions of TLS maturation states across the six cancer types (B), and stratified by AJCC tumor stages across STAD, COAD (MSI-L, MSS), and KIRC (C). (D) Distributions of E-TLS, P-TLS, and S-TLS fractions across tumor stages. (E) Kaplan-Meier curves for overall survival stratified by a conventional TLS classification based on presence versus absence of TLSs (left), dominant TLS maturation state stratified into four groups (middle), or three groups (right). mTLS, mature TLSs (F) Schematic of the TLS composite score derived from log1p-transformed counts of E-TLS, P-TLS, and S-TLS per sample. Z-score–normalized TLS counts were subjected to PCA, and a weighted sum of PC1 and PC2 (proportional to explained variance) was used as the composite score, capturing TLS abundance and maturation composition. Patients were stratified into C1 and C2 groups based on the median TLS composite score. (G) Kaplan-Meier survival curves comparing overall survival between two patient groups stratified by our new approach (C1 and C2). (H) Cohort overview (Dai et al.) (48). (I) Top row (stratified by PPP2R1A mutation status): from left to right, violin plots comparing per-patient TLS counts by maturation state, comparisons of TLS maturation-state composition. Bottom row (stratified by overall survival group): from left to right, violin plots comparing per-patient TLS counts by maturation state, comparisons of TLS maturation-state composition. Short survival was defined as death before the Kaplan–Meier 75th-percentile time, whereas long survival was defined as survival at or beyond that threshold. Twenty-five patients had pre-treatment samples and fourteen had on-treatment samples; analyses in the left panel were performed using the pre-treatment samples. (J-K) HGSOC cohort (Wang et al.) (49). (L-M) Breast cancer cohort (Sammut et al.). (N-O) Invasive breast carcinoma cohort (Farahmand et al.). (J, L, N left) Cohort overview. (J, L, N right) Boxplots of per-patient counts of E-TLS, P-TLS, and S-TLS stratified by response status (NR, non-responder; R, responder). (K, M, N left) Fraction of TLS maturation states stratified by response status. (K, M, N right) Heatmap of relative enrichment (Ro/e) of TLS groups (C1/C2) by response status. Ro/e, observed/expected enrichment. P-values from log-rank tests (E, G), two-sided Wilcoxon rank-sum tests (I left, J, L, N) and Chi-square tests (C, D, I right, K, M, O).

Training data were derived from 3 TCGA cohorts (LUSC, BLCA, KIRC), comprising 10,125 TLS images automatically segmented from H&E WSIs. TLS images were split into 80% training and 20% held-out test sets, stratified by cancer type, with manual annotations from experienced pathologists used as ground truth (fig. S5A; Materials and Methods). To mitigate batch effects arising from variability in staining, scanning, and tissue preparation, YOLOv8 was trained with extensive data augmentation (e.g., flips, rotations, scaling, cutout, mix-up, brightness and contrast shifts, hue and saturation jitter, and Gaussian blur and noise). This augmentation strategy was designed to improve robustness to inter-site and inter-platform variability, enabling reliable TLS classification across heterogeneous histopathology datasets. The classifiers demonstrated robust performance across cancer types, with E-TLS versus mTLS and P-TLS versus S-TLS classification accuracies of 95.1% and 85.0% in BLCA, 90.0% and 95.6% in LUSC, and 84.0% and 89.5% in KIRC, respectively (figs. S5, B–E).

To assess cross-cancer generalizability, we applied the trained classifier directly to the 695 segmented TLS images extracted from H&E WSIs in our spatial discovery cohorts (Fig. 1A), using TLS maturation states derived from matched ST data as the reference standard (Fig. 1B). The model recapitulated the overall TLS-state distribution (fig. S6A) and achieved high accuracy for both the E-TLS versus mTLS step and the P-TLS versus S-TLS subclassification step (fig. S6, B–C). Specifically, the model correctly identified 92.3% of E-TLSs and 90.2% of mTLSs (overall accuracy 91.4%, 95% CI 89.0–93.3; ROC AUC 0.908; fig. S6B). For subclassification of mTLSs, the model correctly identified 98.0% of P-TLSs and 87.5% of S-TLSs (fig. S6C), with an overall accuracy of 94.7% (95% CI 91.4–97.0) and an ROC AUC of 0.928, despite class imbalance. Importantly, this performance was achieved in multi-cancer ST cohorts not represented during training, without any retraining or parameter adjustment. Together, these results demonstrate that the YOLOv8-based classifier generalizes robustly across cancer types and tissue contexts.

TLS maturation varies with tumor stage and tumor-immune genomic context

Next, we applied the AI-enabled TLS detection and maturation framework to H&E WSIs from all 6 TCGA cohorts (Figs. 6, A and B) to evaluate whether the stage-associated TLS maturation trends observed in our spatial discovery cohorts (Fig. 5) were reproducible at scale. Across STAD, COAD (MSI-L/MSS), and KIRC, we observed a stage-associated shift in TLS composition, with increased proportions of P-TLSs and S-TLSs in more advanced-stage tumors relative to early-disease (Fig. 6C). In contrast, LUSC, LUAD, BLCA, and COAD (MSI-H) did not exhibit a consistent pattern (fig. S7A). When cohorts were combined, TLS maturation-state distributions shifted significantly across stages I–III, whereas stage IV tumors showed substantial overlap and no further separation (Fig. 6D). Overall, TLS maturation frequently—but not uniformly—tracks with tumor stage, with the association most evident in early-to-intermediate stages.

We further assessed how TLS maturation states relate to established immune and genomic features defined in prior TCGA analyses (fig. S7B) (47). We observed a progressive increase from E-TLSs to P-TLSs and then to S-TLSs in their associations with tumor mutation burden (including SNV and indel neoantigens), homologous recombination deficiency (HRD), intratumoral heterogeneity (ITH), lymphocyte infiltration, leukocyte fraction, IFN-γ response, and wound-healing signals (fig. S7B). These patterns are consistent with a maturation-associated trajectory in which mature TLSs occur in tumors with more genomically altered and immune-active microenvironments. We note that these associations may be influences by limitations inherent in bulk transcriptomic deconvolution and therefore warrant cautious interpretation.

TLS maturation-aware composite scoring enables robust patient stratification

We next evaluated the prognostic performance of TLS maturation using commonly employed patient classification strategies (21–24), including TLS presence versus absence (Fig. 6E, left; fig. S7C), dominant TLS maturation state (Fig. 6E, middle; fig. S7D), and broader groupings of immature (i.e., E-TLS) versus mature TLSs (Fig. 6E, right; fig. S7E). Across six cancer types, these approaches failed to provide consistent prognostic separation. Binary classification based on TLS presence alone did not reliably stratify overall survival (OS) in Kaplan–Meier (KM) analyses, regardless of TLS maturation state. Similarly, classification by dominant TLS state-using fine-grained or grouped categories-did not yield robust survival differences across cohorts. Only KIRC showed a significant association with S-TLS dominance, underscoring the cancer-type specificity of TLS–outcome relationships rather than a universal rule (Fig. 6E; figs. S7C–E). Together, these results highlight fundamental limitations of existing TLS-based stratification strategies.

Building on insights from spatial TLS profiling, we sought to develop a patient stratification framework that captures both TLS abundance and maturation state heterogeneity within a tumor, rather than collapsing tumors into a single dominant state. To this end, we derived a data-driven composite TLS score using principal component analysis (PCA) on log-transformed, z-score-normalized counts of E-TLSs, P-TLSs, and S-TLSs (Fig. 6F; see Materials and Methods). This unsupervised approach captures the dominant axes of variation in TLS state composition across tumors, yielding a continuous score that reflects both TLS abundance and maturation state diversity within individual tumors. Applying a median-based threshold, we stratified TLS-positive tumors into two groups, C1 and C2 (Fig. 6F; table s7). Among TLS+ samples, the C1 group was enriched for P-TLSs and S-TLSs, whereas the C2 group was dominated by E-TLSs (fig. S8A; table s8), explicitly accounting for intratumoral TLS heterogeneity.

We then assessed the prognostic significance of this TLS maturation-aware composite scoring approach (Figs. 6F–G). Notably, patients in the C1 group exhibited significantly improved OS compared with the C2 group, and this association was consistently observed across all 6 cohorts, and the C1/C2 framework outperformed conventional stratification methods in every cohort examined (Fig. 6G; fig. S7, C–E). Importantly, multivariable Cox proportional hazards models adjusting for tumor stage confirmed the independent prognostic value of the C1 group (fig. S8B), indicating that integrating TLS maturation composition yields prognostic information beyond maturation state alone. Together, these results support TLS maturation-aware compositional profiling as a robust prognostic stratifier beyond conventional TLS metrics and tumor stage.

To examine whether TLS maturation is associated with therapeutic response, we first analyzed an independent in-house cohort of OCCC patients treated with ICB (Fig. 6H) (48). Consistent with prior observations linking PPP2R1A loss-of-function mutations to improved OS following immunotherapy in OCCC patients, PPP2R1A-mutant tumors exhibited significantly higher counts of P-TLSs and S-TLSs compared with PPP2R1A–WT tumors (Fig. 6I, top). TLS maturation state composition prior to treatment also differed significantly between short- and long-survival groups, with enrichment of mature TLS states in long-survival cases (Fig. 6I, bottom). Notably, these differences were not significant at the on-treatment timepoint, suggesting that baseline TLS composite score may be more informative of therapeutic outcome than on-treatment changes. Similar directional trends were observed when stratifying patients by treatment response, although statistical power was limited (fig. S7F).

Finally, we evaluated whether associations between TLS maturation and therapeutic response extend to non-immunotherapy treatment settings, including chemotherapy and targeted therapy, where treatment exposure is much more common clinically. Across three independent cohorts spanning combination chemotherapy plus anti-angiogenic therapy (HGSOC, Fig. 6J) (49), neoadjuvant combination chemotherapy (breast cancer, Fig. 6L) (50), and anti-HER2 targeted therapy (breast cancer, Fig. 6N) (51), enrichment of mature TLS states—particularly P-TLSs—was consistently associated with favorable treatment response. In each cohort, responders exhibited higher P-TLS and/or S-TLS abundance, increased fractions of mature TLS states, and preferential classification into the C1 group (Fig. 6J–O). Despite differences in tumor type and treatment modality, these results were directionally concordant, supporting the general relevance of TLS maturation composition to therapeutic response across diverse clinical contexts.

Discussion

TLSs represent specialized immune niches that can shape anti-tumor immunity across solid tumors (42, 52–55). Yet their spatial organization, maturation states, relationships to tumor cells and the surrounding TME, and clinical relevance have not been systematically characterized at scale across cancer types. Here, we used spatial transcriptomics to build a pan-cancer atlas of TLSs across 12 cancer types, with ultrahigh-plex imaging and single-cell spatial profiling providing orthogonal validation in selected cohorts/samples, and integrated these findings with histopathology and clinical data. By developing a scalable AI-enabled framework to detect and classify TLSs directly from routine H&E WSIs, we extend TLS analysis from limited spatial datasets to thousands of tumors. Leveraging this scalability, we introduce a TLS maturation-aware composite scoring strategy that captures within-tumor TLS state composition and enables robust patient stratification across cancers and treatment contexts. Together, this work establishes generalizable and clinically scalable frameworks for TLS profiling and highlights TLS state composition as a key dimension of tumor immune organization with translational relevance. It also provides a foundation for prospective evaluation of TLS-informed biomarkers in clinical settings.

Across cancer types, TLSs were neither spatially uniform nor immunologically equivalent. TLS localization and maturation states varied substantially by tumor type and tissue context, with TLS distributed across intra-tumoral, peri-tumoral, and distal-tumoral regions in tumor-type-specific patterns. Consistent with this view, in ST cohorts with richer clinical annotations, TLS prevalence and maturation also showed associations with tumor-intrinsic and etiologic contexts (e.g., KRAS status in CRC, HBV status in LIHC, and MTAP loss in BLCA)(40, 42, 44), suggesting that tumor genetics, tissue context, and inflammatory milieu can differentially support or constrain TLS formation and maturation. Although these observations are based on relatively small cohorts, they motivate larger, subtype-resolved studies to more definitively link TLS evolution to tumor biology. Applying the AI framework at scale further revealed that TLS maturation frequently—but not uniformly—tracked with tumor stage, with progressive enrichment of more mature TLS states in early-to-intermediate stages and attenuation of this association in advanced stages. Together, these patterns suggest that TLS maturation reflects dynamic interactions between tumor progression and local immune organization rather than a fixed protective phenotype.

Our analyses reveal that TLS maturation is accompanied by coordinated multi-compartment niche remodeling within the TME. TLSs follow a progressive trajectory from E-TLSs to P-TLSs and ultimately S-TLSs (16, 27), marked by coordinated enrichment of immune and stromal programs. As TLSs mature, we observed increased representation of activated T and B cell populations, specialized effector and regulatory subsets (e.g., Breg-like cells), and chemokine/cytokine networks that support structured B–T cell interactions (29, 56). These changes likely facilitate compartmentalized immune activation while concurrently engaging immunoregulatory programs that contribute to local immune homeostasis (28, 36, 37, 57–60). In parallel, TLS maturation involves progressive engagement of antigen-presenting cells (61–63), shifts in macrophage phenotypes (64–67), and increasing specialization of endothelial cells and fibroblasts (68–71), together with vascular remodeling that facilitates immune cell recruitment, retention, and spatial organization. These multi-compartmental changes are further reinforced by stress-adaptive transcriptional programs, including heat-shock and interferon-stimulated responses, which may help maintain TLS integrity and function under inflammatory and metabolic stress. Collectively, these features suggest that mature TLSs are not simply ‘more immune’, but represent stabilized, self-supporting niches that can sustain local immune organization under inflammatory and metabolic stress (72–74).

While prior studies have implicated TLSs in regulating local immune responses (9, 16, 27, 75–77), our pan-cancer analysis provides a systematic view that links TLSs to the spatial logic of immune-tumor patterning within the TME. Rather than passive byproducts of immune infiltration, TLSs appear to both mark (and potentially help maintain) spatially compartmentalized immune activation at tumor interfaces. We found that TLS proximity was associated with consistent spatial gradients across cancers, with immune activation enriched in TLS-proximal tumor regions and proliferative/invasive programs enriched distally (23). We further identified ligand–receptor axes with established immunological roles that align with these pro-inflammatory gradients. The TNFSF14–TNFRSF14 (LIGHT–HVEM) axis regulates local immune activation and has been shown to enhance antitumor immunity (78). The CXCL10/11–CXCR3 axis is a canonical pathway for effector-cell recruitment, consistent with inflammatory signaling observed in TLS-proximal tumor regions (79, 80), while the CXCL16–CXCR6 axis has been implicated in chronic inflammation and effector-cell retention (81). Collectively, these findings support a model in which TLSs are embedded within short-range cytokine and chemokine fields that promote immune-cell recruitment, retention and reinforce inflammatory signaling at TLS-tumor interfaces. The distance-dependent immune gradients we observed around IT TLSs may reflect multiple, non-mutually exclusive processes, including (i) localized cytokine/chemokine fields produced by TLS-associated immune cells, (ii) composition shifts driven by immune-cell redistribution or retention near TLS borders, and (iii) localized transcriptional reprogramming of adjacent tumor/stromal cells, consistent with the spatially coordinated ligand-receptor patterns mapped at single-cell/subcellular resolution. These spatial associations are correlative; establishing causality will require functional perturbation and longitudinal, higher-resolution spatial profiling.

To evaluate clinical relevance, we applied our AI-based TLS framework at scale and introduced a stratification strategy based on TLS compositional maturation profiles. By summarizing within-tumor TLS state composition into a continuous score, this approach consistently outperformed conventional TLS metrics (21–24) in prognostic prediction across cancer types. Importantly, the C1 group was associated with significantly improved OS independent of tumor stage, indicating that TLS composition provides prognostic information beyond maturation state alone. These findings highlight a key limitation of existing TLS stratification strategies, which often collapse complex intratumoral TLS heterogeneity into binary or single-label classifications. In practice, individual tumors often harbor multiple TLSs spanning distinct maturation states, a feature that is lost when tumors are reduced to a single dominant category. Conceptually, these results argue that TLS ‘quality’ is not captured by presence or a single dominant state, but by the mixture and abundance of co-existing TLS states within a tumor—an axis of intratumoral immune organization that prior binary schemes erase. To our knowledge, this represents the first AI-enabled, proportion-aware TLS stratification framework that enables large-scale TLS phenotyping and prognostic stratification directly from routine H&E images alone. Using this maturation-aware composite score, we demonstrate robust and reproducible associations with OS across independent cohorts.

Extending these survival associations, enrichment of mature TLS states in responders across immunotherapy, chemotherapy, and targeted therapy cohorts suggests that TLS maturation may reflect a broader immune-competent tissue state, not one restricted to ICB or immunotherapy alone. Although chemotherapy, targeted therapy, and anti-angiogenic agents do not directly target immune checkpoints, they can reshape the tumor immune microenvironment through immunogenic tumor cell death, antigen release, Fc-mediated effector mechanisms, and vascular or stromal remodeling. Mature TLSs are also associated with plasma cell differentiation and antibody production, potentially supporting antibody-mediated effector functions (e.g., ADCC and complement activation). In addition, their frequent co-localization with specialized vasculature (e.g., HEVs) may facilitate effector recruitment and local immune amplification. Together, these observations provide a plausible basis linking mature TLS enrichment to improved response and survival, although direct mechanistic testing is needed.

Collectively, these findings position TLS compositional maturation as a clinically scalable spatial phenotype and provide an AI-enabled path to quantify it from routine histology. Prospective studies should test whether TLS composition improves risk and response modeling beyond established clinicopathologic and molecular predictors, and whether TLS-informed stratification can guide clinical trial design or therapeutic modulation strategies.

Limitations of the study

This study has several limitations. First, most ST datasets were generated using earlier spot-level platforms. We applied resolution-enhancement approaches, orthogonal validation using single-cell ST/SP technologies, and spatial multimodal integration. However, current ST/SP platforms still lack validated reagents for isotype- and subclass-resolved plasma-cell profiling. As spatial technologies advance, systematic cross-cancer dissection of TLS-associated antibody output, including antibody isotypes/subclasses and their clinical associations, will be an important direction for future work. Second, longitudinal spatial profiling will be essential to define how TLS maturation and compositional states evolve during tumor progression and in response to therapy. Third, available ST cohorts remain small and heterogeneous with variable clinical annotation; large, subtype-resolved datasets will be needed for definitive pan-cancer inference. Finally, our analyses are correlative, and causal mechanisms governing TLS formation, maturation arrest, and immune function will require experimental perturbation in appropriate model systems. More broadly, TLSs are three-dimensional structures, and section-level sampling remains a limitation of current ST approaches; future studies integrating serial sections and non-disruptive 3D spatial profiling will be important to resolve TLS architecture in situ.

Materials and Methods

Human Specimens

All human data presented in this study are de-identified to protect patient privacy. All human tumor tissues collected at The University of Texas MD Anderson Cancer Center were obtained from patients who provided signed informed consent and were under institutional review board (IRB)-approved protocols.

Pancreatic adenocarcinoma (PAAD)

We collected Visium spatially resolved transcriptomics (ST) datasets from two cohorts of PAAD samples. The first cohort comprises 13 patients who were initially diagnosed with pancreatic ductal adenocarcinoma (PDAC) and underwent a “warm” research autopsy within four hours postmortem, conducted under the University of Nebraska Medical Center (UNMC) Rapid Autopsy Program under a protocol approved by their institutional review board (IRB #091–01). In total, 13 snap-frozen primary tumor tissue samples were obtained from these rapid autopsies. Written informed consent was obtained from all patients. Details of tissue collection, processing, and ST data generation have been described in our recent study by Pei at al. (82). The second cohort comprises 10 patients who were initially diagnosed with PDAC and were treatment-naïve at the time of sample collection and details of tissue collection, processing, and ST data generation have been described in our recent study by Liu at al. (14). Written informed consent was obtained from all patients. Treatment-naïve tissues were collected under an IRB-approved protocol (PA15–0014) at The University of Texas MD Anderson Cancer Center.

Bladder carcinoma (BLCA)

Ten patients with primary muscle-invasive bladder carcinoma (T2–T4) were evaluated at The University of Texas MD Anderson Cancer Center and underwent transurethral resection of bladder tumor (TURBT). Two patients received systematic treatments prior to surgery, while eight patients were treatment naive. Formalin-fixed paraffin embedded (FFPE) BLCA tumor tissues in this study were obtained from the Department of Pathology at The University of Texas MD Anderson Cancer Center under institutional IRB-approved research protocol PA17–0577. Details of tissue collection, processing, and ST data generation have been described in our recent study by Jiang et al (83).

Lung adenocarcinoma (LUAD)

Study participants were evaluated at Juntendo University (Juntendo, Japan). Specimens were approved for study by Institutional Review Boards and according to the international ethical guidelines for biomedical research involving human subjects (Council for International Organizations of Medical Sciences). Informed written consents were received from all subjects as required. In total, 3 LUAD samples were analyzed by spatial transcriptomics. Following surgery, resected tissues were processed by an experienced pathologist assistant and for formalin-fixation and paraffin-embedding (FFPE), followed by sectioning and staining by hematoxylin and eosin (H&E).

Collection of ST datasets

Spatial transcriptomic data for the discovery cohort consisted of 340 samples from 255 individuals across 12 cancer types (Fig. 1A; table S1; table S2) were collected from both in-house and public sources. In-house data consisted of 74 samples (21.8%) generated at the Advanced Technology Genomics Core (ATGC) facility at the University of Texas MD Anderson Cancer Center, spanning PAAD, BLCA, STAD, and LUAD. Public data comprised the remaining 266 samples (78.2%), obtained from previously published studies and from the 10x Genomics website (40, 42, 53, 55, 84–100). Dataset origins and accession numbers are summarized in table S1, with in-house samples labeled as “in-house” in the Data Type column. Table S2 further details sample type (Visium/ST), tissue preparation (FFPE or Fresh Frozen), and TLS presence. All datasets, regardless of origin, were processed and analyzed using the same standardized pipelines in downstream analyses.

Visium ST data generation

ST was performed using the 10x Genomics Visium platform following manufacturer protocols tailored to tissue preservation type. Fresh frozen (FF) PAAD and FFPE (BLCA, LUAD, STAD) samples were sectioned (10 μm for FF tissues; 5 μm for FFPE tissues), methanol-fixed (PAAD only), H&E-stained, and imaged at high resolution prior to library preparation. RNA quality was assessed using the Agilent TapeStation to determine RNA Integrity Number (RIN) for FF tissues (extracted with the RNeasy Mini Kit, Qiagen), or the Agilent RNA 6000 Pico Kit to determine DV200 for FFPE tissues (extracted with the RNeasy FFPE Kit, Qiagen). Libraries were prepared using Visium kits, direct slide capture for FF samples and CytAssist-enabled workflows for FFPE tissues and sequenced on Illumina NovaSeq platforms.

Details of tissue-specific protocols are summarized below: PAAD samples were processed on standard Visium slides (6.5 × 6.5 mm), with RNA quality assessed via TapeStation RIN, methanol fixation prior to staining, and a 15-minute permeabilization step. BLCA, LUAD, and STAD samples were processed using the Visium CytAssist system with DV200 > 30%, 11 × 11 mm regions of interest (ROIs). Libraries were sequenced to ≥50,000 read pairs per spot. Details regarding tissue collection, processing, and spatial transcriptomics (ST) data generation are provided in our recent studies (14, 82, 100).

Automated seqIF-based spatial proteomics and imaging on COMET

Sequential immunofluorescence (seqIF) was performed using the COMET platform (Lunaphore Technologies) FFPE tissue sections. Sections underwent baking, deparaffinization, and rehydration, followed by autofluorescence quenching and antigen retrieval (pH9 EZ AR 2 Elegance, Biogenex), following optimized in-house protocols. Slides were then processed on the COMET Stainer following the manufacturer’s guidelines. Iterative cycles of immunostaining were conducted, each consisting of primary and secondary antibody incubation, image acquisition, and antibody elution, as previously described (101, 102). Antibody panels were customized for the tissue types analyzed and are listed in table S5, ncluding antibody clone, species, dilution, acquisition channel, and staining cycle. Primary antibody incubations were performed for 8 minutes per round. At the completion of the staining cycles, multi-layer OME-TIFF images from each round were automatically stitched and aligned. Background fluorescence was computationally subtracted, and the images were visualized and analyzed using Lunaphore Viewer and QuPath software.

Multiplex immunofluorescence with Akoya PhenoCycler-Fusion IO60 panel

FFPE tissue sections (thickness typically 4–5 μm) were mounted onto poly-L-lysine–coated or charged glass slides and baked to ensure adhesion prior to staining. Multiplexed cyclic immunofluorescence was performed using the Akoya PhenoCycler-Fusion (formerly CODEX) platform with the IO60 immune-oncology antibody panel. All procedures followed the manufacturer’s recommended workflow for automated barcoded antibody staining and iterative imaging. Tissue sections underwent deparaffinization and antigen retrieval (citrate- or Tris-based buffer, heat-induced), followed by blocking to minimize nonspecific binding. A cocktail of DNA-barcoded primary antibodies corresponding to the IO60 panel was applied to the sections. After incubation and washing, the samples were loaded onto the PhenoCycler-Fusion system, which performs sequential hybridization and cleavage cycles. During each imaging cycle, complementary fluorescent reporters were hybridized, imaged, and stripped to enable visualization of the next set of markers. High-resolution imaging was acquired under standardized exposure settings with automated Z-stack or focal-plane optimization, as defined by the Akoya protocol. Raw images were aligned and unmixed using the PhenoCycler-Fusion software suite to correct for background and spectral overlap. Processed images were reviewed and quantified using QuPath software.

Immunofluorescence and immunohistochemistry labelling assays

FFPE human ccRCC (clear cell renal cell carcinoma) tumor and control specimens were cut into 3–4μm-thick sections. Human FFPE tonsil sections and/or ccRCC test tumor sections (France Tissue Bank) were used as positive controls for BCL6, CD3, CD20, CD23, MUM1 (irf4), IgA and IgG. Antigen retrieval was carried out on a PT-link (Dako) using the EnVision FLEX Target Retrieval Solutions at High pH (Dako, K8004) or Low pH (Dako, K8005). Endogenous peroxidase activity and non-specific Fc receptor binding were blocked with H2O2 3% (Gifrer, 10603051) and Protein Block (Dako, X0909) respectively. The primary and secondary antibodies used for IHC and IF are summarized in table S6. All images were independently analyzed blindly by 3 reviewers. Necrotic and serous areas were excluded from image analyses.

Multiplex immunofluorescence assay

The PNAd/CD20/CD23/BCL6 4-plex and the IgA/IgG/MUM1 3-plex-stainings were performed manually on FFPE tumor sections using a tyramide system amplification (TSA) and a conventional fluorescent-dye conjugated secondary antibody system (all secondary antibodies were diluted at 1:100). The panel combined PNAd, CD20, CD23, and BCL6 to define TLS architecture and maturation, together with MUM1 (IRF4), IgA, and IgG to assess ASC identity and isotype distribution. MUM1 (IRF4) was used as a nuclear marker of terminally differentiated ASCs and interpreted in conjunction with IgA/IgG expression and B-lineage context to ensure specificity. Nuclei were stained with DAPI Solution (Thermofisher, 62248) at 2μg/ml for 10 minutes. After mounting with ProLong™ Gold Antifade Mountant (Thermofisher, P36934), the slides were scanned at 20X magnification using a Zeiss Axio scan Z1 device. Antibodies and TSA used are listed in table S6. Images were analyzed using Halo10 software (Indica labs) with the fitting counting algorithms. TLS area was identified by CD3 (green) and CD20 (red) chromogenic staining on a consecutive slide.

TLS identification by enzymatic immunohistochemistry

The stainings were performed manually. Chromogenic detection of TLS was performed using HighDef red IHC chromogen (AP) (Enzo, ADI-950–140-0030) for CD20, Permanent HRP Green (Zytomed Systems, ZUC070–100) for CD3. The nuclei were counterstained with hematoxylin (Dako, S3301). After mounting with EcoMount (Biocare Medical, EM897L), the slides were scanned with a NanoZoomer (Hamamatsu). TLS were identified using the registration module to fit one slide on the other (Halo10 software, Indica labs). Tumors were considered TLS-positive when a CD3 aggregate with CD20 staining was found with surface above 7,000 μm2, containing at least 100 cells, as quantified with Halo10 software (Indica labs).

Xenium data generation

For each tissue block, H&E-stained sections were first reviewed to ensure suitable morphology, section integrity, stain uniformity, and image resolution. Criteria included the absence of folding, tearing, or detachment; appropriate stain intensity; and sufficient clarity without blurring or contrast loss. Only samples passing all quality checks proceeded to Xenium processing. For whole-tissue experiments, 11 × 11 mm regions corresponding to areas previously profiled by Visium were selected and paired on Xenium slides. Tissues were processed on the Xenium Analyzer (10x Genomics, model 1000481) according to the Xenium Prime 5K in situ gene expression protocol (CG000760). All hybridization, imaging, and decoding steps were conducted as instructed in the manufacturer’s workflow.

Visium Data Processing and Quality Control

The detailed Visium data processing and quality control (QC) have been previously described in our recent studies (14, 82, 100). Briefly, the demultiplexed raw sequencing data were aligned to the human reference genome build GRCh38 (hg38) using the Space Ranger analysis pipeline (v3.0.2) from 10x Genomics with default settings to generate gene-level unique molecular identifier (UMI) count matrices. For basic filtering, spots with low-complexity libraries (e.g., nUMI < 500 or nFeature < 200) were excluded. Additionally, non-informative spots corresponding to technical artifacts, or background (e.g., spots without tissue) were removed based on manual inspection using the Loupe Browser.

Gene expression enhancement

To enhance the resolution of tissue architecture, we used iSTAR (103), an integrative approach that combines spatial transcriptomics with histological features. For each sample, the input data included the H&E image, spot-level gene count matrix, spatial coordinates, physical pixel size (in μm), number of pixels per spot radius, and a binary tissue mask. The H&E image was rescaled to 0.5 × 0.5 μm2 per pixel to align its spatial resolution with the transcriptomics data. Histological features were then extracted from image patches (16 × 16 pixels, corresponding to 8 × 8 μm2) centered on each spatial transcriptomics spot. A four-layer feedforward neural network was trained to map these histological features to the corresponding spot-level gene expression using mean squared error loss. The model was trained for 400 epochs with a batch size of 128 and a learning rate of 1e–4 using the Adam optimizer. After training, the model was applied across the entire tissue section to predict gene expression at the pixel level. The resulting enhanced gene expression values were normalized using min–max scaling to the [0,1] range. By achieving high-resolution mapping, iSTAR facilitates detailed insights into the cellular and molecular architecture of the tissue, supporting advanced analyses in tissue segmentation and TME characterization.

TLS detection, segmentation, extraction and labeling

We applied a standardized procedure for detecting, segmenting, extracting, and labeling TLSs across all ST samples. First, we calculated the TLS score for each imputed pixel by averaging the expressions levels of TLS signature genes, as detailed in table S3 and previously reported (103). This TLS score provided a quantitative measure of TLS intensity at each pixel, enabling accurate identification and spatial localization of TLS (103). To minimize false positives, we also carefully checked the TLS scores by cross-referencing them with spot-level expression of T cell marker (CD3D) and B cell marker (MS4A1) without imputation and the identified TLSs were further carefully reviewed by our experienced pathologists for accuracy.

Unsupervised TLS clustering was then performed based on calculated TLS scores. Prior to clustering, TLS scores were smoothed using a moving average over consecutive windows of 32 × 32 pixels to reduce noise and highlight local trends in the ST data. The smoothed scores were then clustered using the k-means algorithm, with k = 5 selected as the optimal number of clusters based on manual inspection. Clusters containing fewer than 20 pixels were subsequently discarded to enhance robustness and minimize the influence of noise. Following clustering, segmented TLS regions of the corresponding H&E image were carefully reviewed and confirmed by our experienced pathologists to ensure that each segmented area captured a TLS. To segment individual TLSs, we applied connected component labeling using the ‘label’ function from the scipy.ndimage module in SciPy (v1.10.1) (104) with default settings in Python. Each TLS was then assigned a unique ID, along with its corresponding ST data and paired H&E image, facilitating consistent tracking of individual TLSs across samples and downstream analyses. Lastly, TLS size was calculated by measuring the number of pixels within each segmented region. Given that each pixel corresponds to an area of 0.5 × 0.5 μm2, the total area of each TLS was computed by multiplying the pixel count by 0.25 μm2.

TLS classification and transcriptomic profiling

To characterize TLSs at different maturation states based on their transcriptomics profile, we applied log2-transformation followed by z-score normalized across all TLSs on a per-gene basis. This approach stabilized variance and enabled cross-sample comparability while preserving the relative expression dynamics essential for downstream clustering and TLS maturation classification. Following normalization, TLSs were stratified by maturation state based on the spatial expression patterns of key follicular and germinal center (GC) markers. For each TLS, we quantified the expression of follicular dendritic cell (FDC) markers CR2 and FCER2 by computing the 95th percentile of their expression values across all pixels within the TLS. These marker values were then used as input for k-means clustering (k=2) to classify TLSs into early TLSs (E-TLSs), which lack FDC presence, and mature TLSs (mTLSs), which show strong FDC marker expression. To further resolve the maturation states of mTLSs, we applied a similar strategy using GC-associated markers MKI67 and BCL6, again computing the 95th percentile expression values within each TLS. A second round of k-means clustering (k=2) was performed, further classifying mTLSs into primary follicle-like TLSs (P-TLSs), which lack GC-related marker expression (e.g., BCL6, MKI67), and secondary follicle-like TLSs (S-TLSs), which are showed high GC-related marker expression.

To characterize cellular and signaling changes across TLSs at different maturation states, we analyzed the expression of curated canonical markers and gene signatures corresponding to B cells, T cells, and their phenotypic/functional subsets, as well as dendritic cells (DCs), macrophages, endothelial cells, and fibroblasts. We also assessed the expression changes in cytokines, chemokines, and genes involved in signaling pathways relevant to TLS formation and maintenance. Marker sets were curated from prior studies (105–109) and refined through manual review to ensure accurate representation of immune and stromal populations. To highlight key differences across TLS maturation states, we selected 26 genes showing significant expression changes among the three maturation states for detailed visualization. Heatmaps were generated using the ‘Heatmap’ function from the ComplexHeatmap R package(110), and boxplots were constructed using the ‘ggplot’ function from the ggplot2 package (111) in R.

Pseudo-Visium spot synthesis from Xenium data

To simulate Visium-style data from Xenium outputs, Pseudo Visium H&E images were first cropped out from Xenium H&E images. Pixel coordinates were converted to micrometers using a calibrated scale of 0.85 μm per pixel. A hexagonal spot lattice emulating the geometry of Visium v1/v2 (55 μm spot diameter; 27.5 μm radius) was then tiled across the ROI. Grid centers were generated in image coordinates with half-row staggering, and the grid was initiated half a spot beyond the image boundaries to ensure full peripheral coverage. Only spots whose circular bounding areas intersected the ROI were retained. For each spot, array row and column indices, center coordinates in both pixels and micrometers, spot diameter, and nominal spacing were recorded in a CSV file. Xenium per-molecule transcript coordinates were then assigned to pseudo-Visium spots by mapping each transcript to the nearest spot center within a 27.5 μm radius. Spot-level gene expression matrices were generated by summing transcript counts per gene within each spot. Unless specified otherwise, no molecule weighting or deconvolution was applied beyond this in-radius assignment. Quality control steps removed spots with low total transcript counts (e.g., <200 UMIs), and non-tissue areas were optionally excluded using an H&E-derived tissue mask prior to counting. The resulting outputs included: (i) a spot-location file containing pixel and micrometer coordinates for all synthesized spots; (ii) a spot-by-gene count matrix formatted for downstream Visium-style analysis; and (iii) Pseudo Visium H&E images.

Xenium cell type and state identification

Output data from Xenium 5K assays, including gene count matrices, metadata, cellular centroid and boundary coordinates, and transcript coordinates, were processed for transcriptomic and spatial analyses. Initial quality control removed cells with fewer than 30 detected genes as well as cells lacking expression of canonical lineage markers. Data were normalized using the ‘SCTransform’ function in Seurat (v5.1.0) (112). Principal component analysis (PCA) was performed on highly variable genes, and elbow plots were used to determine the number of dimensions for downstream analysis. A nearest-neighbor graph was constructed with ‘FindNeighbors’, followed by Louvain clustering using ‘FindClusters’. UMAP was applied for non-linear dimensional reduction and visualization (112, 113).

Differentially expressed genes (DEGs) for each cluster were identified with ‘FindAllMarkers’, and top DEGs were reviewed alongside canonical lineage markers as reported previously (106, 107, 114, 115). Major cell compartments were annotated, including T cells (e.g., CD3D, CD2), B and plasma cells (MS4A1, CD79A for B cells; MZB1, XBP1 for plasma cells), myeloid cells (CD68, CD163 for macrophages; CSF3R for neutrophils; KIT, MS4A2 for mast cells; CD1A, CD1C, LAMP3 for DCs), stromal cells (COL5A1, PDGFRA for cancer-associated fibroblast (CAFs); VWF, PECAM1, CD34 for endothelial cells; MYH11 for smooth muscle cells), epithelial cells (EPCAM, CDH1), and tumor cells (CDK1 and MKI67). In addition, Regulatory B cells (Bregs) were further identified based on IL10 gene expression (116). Cell type annotations were mapped back to tissue images in Xenium Explorer for visualization and validation against cellular morphology.

Xenium TLS identification

TLS identification in Xenium samples followed a two-stage strategy depending on the availability of an adjacent Visium spatial transcriptomics (ST) section. When an adjacent Visium ST section was available, TLSs were first identified using our ST-based TLS detection framework and manually verified on the corresponding Xenium slide. Otherwise, TLSs were delineated on the H&E image using H&E based TLS detection algorithm described below. The H&E section was then co-registered to the Xenium morphology image in Xenium Explorer. We exported the affine transformation matrix from Xenium Explorer and used it to map TLS segmentation coordinates from the H&E image space into the Xenium single-cell coordinate space. Formally, for a point in H&E pixel coordinates, the transformed Xenium coordinates were computed using a homogeneous-coordinate affine transformation:

xXeniumyXenium1=a11a12txa21a22ty001xH&EyH&E1

TLS labels were then assigned at single-cell resolution by determining whether each Xenium cell boundary, or alternatively its centroid, fell within the transformed TLS polygons.

Tumor spot identification

To identify tumor spots from Visium ST data, we applied SpatialInferCNV (117) (https://aerickso.github.io/SpatialInferCNV/) in R , based on the InferCNV framework (117), as we previous described (82). The analysis was performed using the following parameters: cutoff = 0.1, cluster_by_groups = FALSE, HMM = FALSE, and denoise = TRUE. Specifically, we followed a multi-step approach as outlined in our recent study (82, 118). To ensure reliable results, we employed an integrative approach imvolving multiple rounds of selection to identify suitable non-tumor reference spots for CNV calling. Reference spots were selected based on two criteria: (1) histological annotation as “non-tumor” and (2) transcriptional distinctiveness from tumor spots, as indicated by UMAP embedding (i.e., topographically distant from tumor cell clusters). To ensure that we select true “non-tumor” spots without contamination of tumor cells, we further excluded any reference spots that displayed evidence of CNV events despite being histologically labelled as “non-tumor”. For CNV benchmarking, we selected at least two independent reference populations and performed Pearson correlation coefficient (PCC) analysis to evaluate their concordance at the chromosomal band level across subclones. To ensure data quality, samples with weak or ambiguous inferCNV signals were excluded, and only those with reliable CNV profiles were retained for downstream analysis. For samples with lacking CNV signals or identified as chromosomally stable tumors, tumor regions were manually annotated by our experienced pathologists using their corresponding H&E images.

TLS location identification

To categorize the spatial relationship between TLSs and tumor areas, we overlaid TLS coordinates with tumor spot annotations. TLSs located entirely within tumor spots were annotated as intra-tumor TLS (IT TLSs). TLSs positioned outside tumor spots but within 200 μm of the tumor-stromal interface (defined by the nearest tumor spots) were labeled as peri-tumor TLSs (PT TLSs). TLSs situated beyond this proximity threshold were classified as distal-tumor TLSs (DT TLSs). TLS location categories were further confirmed by our experienced pathologists. For samples with no or weak inferred CNV signals (i.e., chromosomally stable tumors), the spatial relationship between TLSs and tumor regions was determined based on pathology annotations of the corresponding H&E images. Pathology annotations for BRCA samples were obtained from the original study (53).

Quantifying distance from an intra-tumor/distal-tumor TLS to surrounding tissue spots

To quantify the spatial relationship between TLSs and their surrounding microenvironment, TLS pixel coordinates were first converted to ST spots. Radial distances from the center of each TLS to all the spots were then calculated using the ‘RadialDistance’ function from the Semla (v1.2.1) package (119). For intra-tumor TLSs (IT TLSs), only tumor spots were retained, while for distal-tumor TLSs (DT TLSs) located in histologically normal regions, only non-tumor spots were retained. In both cases, distance values were rescaled to a 0–1 range to enable comparative distance analysis across samples. This standardized distance metric enabled us to investigate TLS proximity to tumor regions and assess potential associations between TLS location and TME characteristics.

Pathway analysis

To investigate tumor-TLS interactions, we quantified the activity of tumor-associated pathways in tumor-enriched spots using curated gene sets. These included Hallmark gene sets from the Molecular Signature Database (MSigDB), which represent key biological processes such as cell cycle, oncogenic pathways, metabolic related pathways, and antigen presentation (120). We also calculated scores for tumor meta-programs that define key transcriptional states in tumors, including cell cycle regulation, stress response, epithelial-mesenchymal transition (EMT), antigen presentation, oncogenic signaling, metabolism, and lineage-specific differentiation (121). Additionally, we evaluated gene modules representing recurrent cancer cell states across tumor types, such as interferon response, hypoxia, oxidative phosphorylation, metal response, and EMT (84). Signature scores were computed using the ‘AUCell_run’ function from the AUCell package (122), which ranks genes by expression within each spot and calculates the Area Under the Curve (AUC) for recovery of each gene set within the top-ranked genes. Scores were calculated separately for each sample using log-normalized expression matrices, without additional scaling or centering, as AUCell relies on gene rankings rather than raw expression values.

To investigate spatial changes in pathway activity, we modeled pathway scores in relation to TLS proximity using the ‘differentialGeneTest’ function from the Monocle (v2.34.0) package in R (123). Using the function’s default settings, we employed a natural spline with three degrees of freedom to fit pathway scores as a function of spatial distance from TLS. This approach allowed us to identify pathways exhibiting significant expression variation across TLS proximity gradients.

For pathways identified as significantly associated with TLS proximity, we generated smoothed expression curves using the ‘geneSmoothCurves’ function from the Monocle package to discern expression trends with respect to TLS proximity. Similar to the ‘differentialGeneTest’ function, we employed a natural spline with three degrees of freedom. Pathway scores were smoothed across spatial distance from IT TLSs and z-score normalized for each pathway. Scores from spots nearest to the TLS (distance = 0), and the farthest spots (distance = 1), were used to classify expression trends. A score was considered low if the z-score was less than or equal to zero and high if it was greater than or equal to zero, relative to the pathway’s mean across all tumor-enriched spots distributed along the entire spatial gradient from the TLS. Based on the resulting profiles, we identified two major trends: High-to-Low, where expression was elevated near a TLS and declined with distance, and Low-to-High, where expression increased with distance from a TLS.

To identify spatially enriched pathways that were consistently observed across cancer types, we first aggregated samples by cancer type. We then identified pathways showing significant High-to-Low or Low-to-High trends within each type based on our differential analysis. For each pathway, we computed an enrichment proportion, defined as the fraction of cancer types in which the pathway showed significant spatial enrichment. We selected the five pathways with the highest enrichment proportions from each trend category (High-to-Low and Low-to-High), yielding the top 10 pathways with the most consistent spatial expression patterns in relation to TLS proximity. To visualize these patterns, we generated heatmaps using the ‘plot_pseudotime_heatmap’ function in Monocle (v2.34.0) (123) and overlaid line plots using ‘ggplot’ function in ggplot2 in R to display the smoothed pathway scores along the IT TLS distance gradient (111).

Identifying ligands and receptors enriched within intra-tumor TLSs

To quantify cytokines and chemokines enriched inside intra-tumoral TLSs (IT TLSs) relative to their immediate tumor margins, we first computed spot-wise radial distances to each TLS using the ‘RadialDistance’ function in Semla (v1.2.1) (119). Spots with distance < 0 were classified as TLS core (inside), while the TLS margin was defined as spots located within 0–50 μm from the TLS boundary. When no spots were present in this window, a fallback margin of 0–100 μm was applied, and all analyses were restricted to tumor-annotated spots. For each intra-tumoral TLS, we compared gene expression between TLS core and TLS margin spots across cytokine and chemokine ligands and receptors. For every gene, we calculated the mean expression, the proportion of expressing spots, and the difference in mean expression (core – margin). Paired Wilcoxon signed-rank tests were then performed across TLSs to assess whether expression was significantly higher inside TLSs compared with their margins.

Gene-level analysis of spatial gradients relative to TLS proximity

To investigate spatial expression gradients of individual cytokine and chemokine ligands and receptors with respect to intra-tumoral TLSs, we applied the same procedure used for modeling pathway scores in relation to TLS proximity. Spot-wise distances from TLSs were first computed using the ‘RadialDistance’ function in Semla (v1.2.1) (119). Gene expression trends were then modeled with the ‘geneSmoothCurves’ function in Monocle (v2.34.0) using a natural spline with three degrees of freedom, followed by z-score normalization per gene. Smoothed values across the TLS–tumor distance gradient were used to classify spatial profiles: expression that declined from TLS core (distance = 0) to distal tumor regions (distance = 0.75) was labeled “High-to-Low” (123). To identify robust signals, results were aggregated across eight cancer types, and genes showing concordant trends in multiple types were prioritized.

Tissue annotation, TLS spatial distribution and Tissue enrichment analysis

Spot-level pathologist annotations for tumor samples in the CRC cohort were obtained from the original study (40). For the BLCA cohort, spot-level histology annotation was performed by our board-certified pathologists. For the LIHC cohort, we examined the region-specific distribution of immune cells, stromal cells, and tumor cells by categorizing all spatial transcriptomics spots into three groups based on their proximity to the tumor region: (1) Tumor region spots, which are entirely or predominantly composed of neoplastic cells; (2) Tumor boundary spots, located within the stroma immediately adjacent to the tumor region (typically the first one or two layers of spots, approximately within 200 μm of the tumor-normal interface); and (3) Non-tumor spots, which are topographically distal from the tumor region and do not fall into either the tumor region or tumor boundary category, as recently described (118). To determine the spatial distribution of TLSs within tissue compartments annotated by pathologists, we overlaid TLS coordinates onto the pathologist-defined annotations. This allowed us to systematically determine the tissue compartment in which each TLS was located.

To evaluate the enrichment or depletion of TLSs in specific tissue compartments, we applied the Ro/e (Ratio of observed to expected) approach, as previously described (107, 124). In short, we computed the ratio of the observed TLS count to its random expectation, using a X2 test for each TLS maturation state across different tissue compartments. A Ro/e value greater than 1 indicates enrichment, whereas a Ro/e value less than 1 suggests depletion of TLSs in a given tissue compartment.

Sample classification and correlative analysis with TLS features

To investigate associations between TLS maturation and clinical or molecular characteristics, we first quantified TLS features, including total TLS count and the relative abundance of each maturation state. Each sample was then classified into one of three categories, E-TLS, P-TLS, or S-TLS, based on which maturation state was most prevalent within the sample. Clinical variables evaluated across cohorts included tumor grade, tumor stage, KRAS and MTAP mutation status, hepatitis B virus (HBV) infection status, presence of metastasis, and chemotherapy response. Associations involving total TLS count and relative abundance were assessed using the Chi-square test, while relationships between TLS maturation-based sample classification and clinical features were evaluated using proportion tests.

Whole Slide Image (WSI) analysis, TLS detection and TLS maturation classification

LUSC, KIRC, BRCA, LUAD, STAD, and COAD WSIs were obtained from the Genomic Data Commons (GDC) portal (125) (https://portal.gdc.cancer.gov/) and processed to identify and classify TLS maturation states. TLS detection was performed using HookNet-TLS (45), a deep learning-based segmentation model designed to detect TLSs in histopathological images. The model takes as input WSIs at two resolutions, high (0.5 μm/pixel) and low (2.0 μm/pixel), along with binary tissue masks indicating valid tissue areas. Default parameters were used, including a patch size of 512 × 512 pixels, a stride of 256 pixels, and class-specific probability thresholds optimized via grid search to maximize F1-score. The model identifies multiple tissue categories, including TLS, germinal center, tumor, lymph node, inflammation, and others; for downstream analyses, only regions predicted as TLS were retained. To distinguish individual TLSs, clusters of connected TLS-positive pixels were extracted from the binary prediction mask using ‘findContours’ function from the OpenCV package in Python. Each region was assigned a unique identifier based on its order of detection, and the corresponding spatial coordinates were stored for downstream analysis. In total, 21,955 TLSs were identified across all samples (LUSC, n=6,688; BLCA, n=2,538; KIRC, n=899; LUAD, n=6,049; STAD, n=3,484; COAD, n=2,297). To ensure accurate visualization and morphological assessment, spatial coordinates were mapped to WSIs at 40x magnification and manually reviewed. For each TLS, the coordinates were retrieved and rasterized into a binary mask using ‘fillPoly’ function from the OpenCV package. This mask was then used to extract the corresponding area from the whole-slide image, and the bounding rectangle was computed using ‘boundingRect’ function in OpenCV to segment the TLSs. As with TLSs identified in ST data, TLS size in WSIs was calculated by determining the number of pixels in each segmented H&E image, where each pixel corresponds to an area of 0.25 × 0.25 μm2. The total area of each TLS was then computed by multiplying the pixel count by 0.0625 μm2.

Following TLS detection, a two-step YOLO v8-based classification pipeline (46), was developed to categorize TLSs by maturation states. The model was trained on data from three TCGA cohorts (LUSC, BLCA, and KIRC), comprising 10,125 TLS images. To reduce batch effects due to differences in staining, slide scanning, and tissue processing, YOLOv8 was trained using the default data augmentation parameters, including flips, rotations, scaling, cutout, mix-up, brightness and contrast shifts, hue and saturation jitter, and Gaussian blur and noise. We selected stratified subsets from this TLS pool to maintain computational feasibility while preserving balanced representation across cancer types. In the first step, TLSs were classified as early TLSs (E-TLS) or mature TLSs (mTLS). In the second step, mTLSs were further sub-classified into P-TLSs and S-TLSs. Two separate classifiers were trained, one for E-TLS vs. mTLS and another for P-TLS vs. S-TLS. For each cancer type, TLS images were manually annotated, stratified by cancer type, and randomly split into 80% training and 20% test sets. Models were trained using image-based features extracted from the segmented TLSs. Both classifiers were trained for 200 epochs using stochastic gradient descent with momentum and cosine learning-rate scheduling. Performance was evaluated on the held-out 20% test sets using accuracy, precision, recall, and F1-score, with training and test loss and accuracy monitored across epochs to confirm stable convergence. Specifically, precision measured the proportion of correctly predicted positive instances out of all predicted positives, recall measured the proportion of correctly predicted positives out of all actual positives, and F1-score represented the harmonic mean of precision and recall. The numbers of training and testing images for each cancer type, along with a summary of classification metrics, is provided in fig. S5, A, B and D.

To directly evaluate the cross-cancer generalizability of the YOLOv8-based TLS maturation classifier, we applied the trained YOLO model to matched H&E images from our combined ST cohorts (340 images from 340 samples). Importantly, none of these H&E images were included in model training and were therefore entirely unseen by YOLO. Model predictions were evaluated against ST–based TLS annotations (a total of 695 annotated TLSs for validation). No retraining, fine-tuning, or threshold recalibration was performed; the model was applied as-is using the same preprocessing steps, parameter values, and operating thresholds learned during training, ensuring a stringent and unbiased assessment of generalizability. Following the same two-step workflow used throughout the manuscript, E-TLSs were first distinguished from mature TLSs (mTLSs), after which mTLSs were further subclassified into P-TLSs and S-TLSs. Model performance was quantified using accuracy, precision, recall, and F1 score, with receiver operating characteristic (ROC) and precision–recall analyses used to assess discriminative performance under class imbalance.

Therapy-associated WSI cohorts

To characterize TLS maturation in therapy-associated settings, four independent clinical cohorts spanning immunotherapy, targeted therapy, chemotherapy, and combined chemo-targeted regimens were analyzed (48–51). An independent in-house ovarian clear cell carcinoma (OCCC) cohort included 34 platinum-resistant patients treated with combined anti–CTLA-4 and anti–PD-1/PD-L1 immunotherapy, with high-resolution H&E images available for 26 patients (25 pre-treatment and 14 on-treatment samples) (48). The two breast cancer cohorts consisted of pre-treatment diagnostic biopsy H&E slides collected before initiation of neoadjuvant systemic therapy. The HER2-targeted therapy cohort included 85 HER2+ invasive breast carcinoma cases confirmed by ASCO/CAP IHC/ISH criteria, with treatment response defined as pathological complete response versus residual invasive disease. Patients received neoadjuvant trastuzumab ± pertuzumab, resulting in 37 responders and 48 non-responders (51). The neoadjuvant chemotherapy cohort comprised 197 patients prospectively enrolled into the TransNEO study and treated with block-sequential taxane plus anthracycline for a median of 18 weeks, with response evaluated using the Residual Cancer Burden (RCB) system, yielding 57 responders and 140 non-responders (50). The ovarian cancer cohort consisted of post-treatment surgical resection H&E slides from 78 high-grade serous ovarian cancer (HGSOC) patients treated with carboplatin/paclitaxel plus bevacizumab. Response was determined by post-treatment CA-125 kinetics and measurable tumor regression, identifying 26 responders and 52 non-responders (49). H&E images were analyzed using the TLS classifier described above. All H&E images were analyzed using the TLS classifier described above. Across these cohorts, we identified 3,133 TLSs (OCCC, n=91; HGSOC, n=2,236; BRCA [Sammut et al.], n=503; BRCA [Farahmand et al.], n=303), comprising 1,346 E-TLSs (OCCC, n=70; HGSOC, n=799; BRCA [Sammut et al.], n=267; BRCA [Farahmand et al.], n=210), 1,627 P-TLSs (OCCC, n=18; HGSOC, n=1,326; BRCA [Sammut et al.], n=201; BRCA [Farahmand et al.], n=82), and 160 S-TLSs (OCCC, n=3; HGSOC, n=111; BRCA [Sammut et al.], n=35; BRCA [Farahmand et al.], n=11).

TLS group stratification

To assess the prognostic value of TLS maturation states, we computed a composite TLS score that integrates the relative contributions of each TLS state, E-TLS, P-TLS, and S-TLS, for each sample. Absolute counts of each TLS state were first quantified per sample, resulting in a distribution of TLS maturation states. To mitigate skewness and address overdispersion in the raw counts, we applied a log1p transformation to each state count. Samples lacking TLSs were assigned a composite score of zero to reflect the absence of TLS formation. For TLS+ samples, we performed principal component analysis (PCA) on z-score normalized, log-transformed TLS state counts within each cancer cohort to identify dominant axes of variation. Each TLS⁺ sample was then projected into this PCA space, and a composite score was calculated as a weighted sum of the first two principal components (PC1 and PC2), with weights proportional to the variance explained by each component (i.e., composite TLS composite score = Var1×PC1 + Var2×PC2). This data-driven approach captures both the abundance and compositional diversity of TLS maturation in an orthogonal and continuous manner. For downstream survival analysis, all samples were stratified into C1 and C2 groups based on the median value of the composite TLS score.

Survival Analyses

Survival analysis was performed to assess the association between TLS maturation states and overall survival (OS) across different cancer types. Kaplan-Meier survival curves were generated using the ‘Surv’ and ‘survfit’ functions from the survival package (126) in R, and statistical differences between groups were assessed via the log-rank test. For TCGA cohorts, clinical annotations and OS times were obtained from the PanCanAtlas study (127). To estimate the impact of TLS maturation on survival while adjusting for potential confounders, including tumor stage, multivariable Cox proportional hazards models were fit using the ‘coxph’ function from the survival package (126), from which hazard ratios (HRs) and 95% confidence intervals (CIs) were computed.

Additional Statistical Analyses

In addition to the algorithms described above, all other basic statistical analyses were performed in the R statistical environment (v4.3.0, v4.4.1). Enrichment across various conditions was assessed using a chi-square test on observed counts, followed by calculation of standardized and adjusted residuals to quantify deviations from expected values. Adjusted residuals were used to highlight significant patterns, with corresponding p-values indicating statistically significant enrichment or depletion across different conditions within the dataset. Pairwise comparisons of gene expressions were conducted using the Wilcoxon rank-sum test to assess statistical significance between TLS maturation states. Spearman’s correlation coefficient was used to evaluate the associations between two continuous variables, such as distance from TLSs and pathway scores in tumor spots. The correlation matrix was generated using the ‘cor’ function with the ‘spearman’ method in R. Proportion tests were conducted separately for each TLS maturation state to examine its relationship with clinical features. All statistical tests in this study were two-sided. To account for multiple hypothesis testing, p-values were adjusted using the Benjamini-Hochberg method to calculate false discovery rates (FDR q-values). Results were considered statistically significant at a p-value or FDR q-value threshold of < 0.05.

Supplementary Material

Tables S1 to S8

Table S1. Summary of all spatial transcriptomics datasets included in this study.

Table S2. Detailed information for each spatial transcriptomics dataset by sample.

Table S3. List of TLS markers used to calculate the TLS signature score.

Table S4. Summary of maturation state, spatial location, and size of the 695 TLSs analyzed in this study.

Table S5. Validated antibody panels for the COMET assay.

Table S6. Antibodies used for the immuno-fluorescence assays.

Table S7. List of TCGA samples stratified by C1 TLS and C2 TLS classification.

Table S8. Summary statistics for C1 TLS and C2 TLS group across six TCGA cohorts.

Supplementary Materials

Fig. S1. Spatial organization and size of TLSs across maturation states.

(A) Differential cellular composition and spatial organization across TLS states. Representative H&E images and corresponding spatial gene expression maps of key cell lineage markers for T cells (CD3D), B cells (MS4A1), follicular dendritic cells (CR2, FCER2), and germinal center B cells (MKI67, BCL6) across E-TLS, P-TLS, and S-TLS. NA denotes genes not available in a given sample.

Fig. S2. Multimodal spatial validation of TLS cellular composition and organization.

(A) Histologic demonstration of FDC presence within TLS by spatial proteomics (first row to fourth row): H&E images of six TLS (TLS-1 to TLS-6) with TLS boundaries outlined in cyan. Corresponding CD21 channels from COMET (TLS-1 to TLS-4) or PhenoCycler-Fusion IO60 (TLS-5 to TLS-6), showing a CD21+ reticular/mesh-like pattern consistent with FDC presence. Overlay of CD21 signal onto the H&E images to illustrate anatomic concordance within the follicular region. Zoom-in views from the red boxed regions in third row highlighting high-resolution CD21+ areas and the underlying histology. Scale bars: 100 μm in first to third row; 10 μm in fourth row. (B) Cross-platform validation of key TLS cell types using matched spatial transcriptomics (ST) and spatial proteomics (SP) from the same tumor tissue section. Representative examples of two TLSs are shown. Top row (Pseudo-visium ST derived from Xenium 5K data): from left to right, H&E image, TLS signature score, and cell-type signature scores for B cells, Tfh cells, DCs, FDCs, and fibroblasts. Bottom row (Akoya PhenoCode IO60 SP): from left to right, merged immunofluorescence composite and single-channel images highlighting CD20+ cells B cells, CD4+PD-1+ICOS+ Tfh cells, CD11c+ cDCs, CD21+ FDCs, and αSMA+/Collagen-IV+ Fibroblasts. (C) TLS size stratified by cancer type. P-values from two-sided Wilcoxon rank-sum tests are shown.

Fig. S3. Maturation-associated expression patterns of stromal, myeloid, and signaling pathway programs across TLS states.

(A) Heatmaps depicting differential expression of genes associated with stromal, myeloid, and endothelial programs, as well as signaling pathways related to antigen presentation, TCR signaling, interferon response, and cellular stress, across TLS maturation states. Genes were selected to represent programmatic enrichment. DC, dendritic cell; FDC, follicular dendritic cell; CAF, cancer-associated fibroblast; myCAF, myofibroblastic CAF. (B) Boxplots showing scaled expression levels of 26 selected markers (from Fig. 3A and panel A) across TLS maturation states. Pairwise Wilcoxon rank-sum tests were performed to assess statistical significance, with p-values indicated above for relevant comparisons. (C) Heatmap of established TLS-related signatures across E-TLS, P-TLS, and S-TLS.

Fig. S4. Spatial variation in tumor-associated signaling in relation to TLS proximity.

(A) Heatmap showing Spearman correlations between cancer Hallmark pathway scores in tumor spots and TLS subtypes, stratified by TLS maturation state and spatial location relative to tumor regions, both individually and combined. (B) Line plots showing expression dynamics of the same pathways as a function of distance from distal TLSs (DT TLSs) within histologically normal regions. Top: immune-related pathways. Bottom: proliferative and invasive programs. Each line represents a different cancer type. X-axis: distance from TLS (proximal to distal); Y-axis: normalized signature score (z-score). (C) Line plots showing gene expression levels of TNFSF14 (pink), CXCR3 (green), and CXCR6 (turquoise) in TLS cores versus adjacent tumor margin regions (50 μm). Paired Wilcoxon tests revealed significant enrichment of TNFSF14 (p = 7.75×10–6), CXCR3 (p = 3.99×10–10), and CXCR6 (p = 8.81×10–4) within TLSs. (D) Representative whole-slide spatial maps from a Visium tumor sample (left to right): H&E image, tumor region mask, TLS signature score heatmap, full cell type map, and intra-tumoral TLSs (IT TLS) map.

Fig. S5. Training statistics of the AI-based TLS classification method.

(A) Overview of TLS dataset composition and model training. TLS regions were segmented and automatically labeled using a multi-step AI workflow, yielding 10,125 TLS images across TCGA LUSC, BLCA, and KIRC cohorts. Two separate classifiers were developed: one to distinguish E-TLSs from mTLSs and another to distinguish P-TLSs from S-TLSs. For each task, TLS images were randomly split into 80% training and 20% test sets, stratified by cancer type, with image-based features used for model training. From left to right: (i) Pie chart showing the number of TLS identified from each cohort; (ii) Bar plot showing the number of TLS used in the training and test sets for the E-TLS vs. mTLS classification, stratified by cancer type; (iii) Bar plot showing the number of TLS used in the training and test sets for the P-TLS vs. S-TLS classification, stratified by cancer type; (iv) Bar plot displaying the final predicted numbers of each TLS maturation state (E-TLS, P-TLS, S-TLS) across the three cancer types. (B) Line plots showing training loss, test loss, and test accuracy across epochs for the E-TLS vs. mTLS classification task. (C) Representative segmented H&E images showing predicted E-TLSs and mTLSs. (D) Line plots showing training loss, test loss, and test accuracy across epochs for the P-TLS vs. S-TLS classification task. (E) Representative segmented H&E images showing predicted P-TLSs and S-TLSs.

Fig. S6. External validation of the YOLOv8 TLS maturation classifier on the spatial transcriptomics cohort. A total of 340 matched H&E images from our combined spatial transcriptomics (ST) cohorts (340 samples) were included. (A) Distribution of TLS maturation states by ST-based annotation (left) and YOLO classification (right). (B) Performance of E-TLS versus mTLS classification, including normalized confusion matrix, quantitative performance metrics with 95% confidence intervals, ROC curve, and precision-recall curve (left to right). (C) Performance of P-TLS versus S-TLS classification.

Fig. S7. Prognostic value of TLS-based stratification methods.

(A) Heatmap depicting Spearman correlations between the proportion of TLS maturation states and immune/genomic features from a TCGA immune landscape study (128). SNV, single-nucleotide variant; HRD, homologous recombination defects; Lymph Inf Sig Score, lymphocyte infiltration signature score; CTA score, cancer-testis antigens score. (B) Bar graphs displaying the relative fractions of TLS maturation states stratified by AJCC tumor stages across LUSC, LUAD, BLCA, and COAD (MSI-H). (C-E) Kaplan-Meier curves for overall survival stratified by (C) a conventional TLS classification based on presence versus absence of TLSs, (D) dominant TLS maturation state stratified into four groups, or (E) three groups. P-values were calculated using the log-rank test. (F) Violin plots comparing per-patient TLS counts by maturation state, stratified by therapy response status.

Fig. S8. TLS maturation distribution across TLS groups and their multivariable prognostic impact.

(A) Boxplots comparing the proportions of different TLS maturation states between C1 and C2 groups. (B) Forest plot summarizing multivariable Cox regression analysis for overall survival across the six TCGA cohorts. Hazard ratios (HRs) and 95% confidence intervals (CIs) are shown for TLS-based and tumor stage-based groups. Reference groups: C2 TLS and early-stage tumors (Stage I or Stage I/II).

ACKNOWLEDGMENTS

We acknowledge and thank all members of the L.W. laboratory for helpful discussion and feedback on the manuscript.

Funding:

This research was supported in part by the National Cancer Institute (NCI) grants R01CA266280 and U01CA294518 (L.W.), R01CA254988 (J.G. and L.W.), R01CA269489 (J.G.), R01CA282282 (J.G.), U01CA264583 (H.K. and L.W.), U24CA274274 (A.M. and L.W.), U54CA274371 (A.M.), the Cancer Prevention Research Institute of Texas (CPRIT) grants RP200385 (L.W.) and RP220101 (H.K. and L.W.), Break Through Cancer (L.W., A.A.J., and A.M.), the University of Texas MD Anderson Cancer Center Office of Strategic Research Priorities (H.K. and G.P.), and The Translational Molecular Pathology Immunoprofiling Platform (TMP-IL) at the Department Translational Molecular Pathology, the University of Texas MD Anderson Cancer Center. P.S. is a member of James P. Allison Institute and receives research funding from the institute. L.W. is a member of James P. Allison Institute and the Institute for Data Science in Oncology at The University of Texas MD Anderson Cancer Center and receives research funding from both institutes. H.K., L.W. and J.G. are Andrew Sabin Family Foundation fellows. J.G. was also supported by the Khalifa Physician Scientist Award, the David H. Koch Center for Applied Research of Genitourinary Cancers, Joan and Herb Kelleher Charitable Foundation, KCA Advanced Discovery Award, the Williams TNT Fund, the V Foundation Translational Award, and the DOD KCRP Translational Research Partnership Award. J.M. was supported by a Pilot/Feasibility Award from the Texas Medical Center Digestive Disease Center (P30DK056338) and a Seed Grant from the Hirshberg Foundation for Pancreatic Cancer Research. A.S. was supported by the NCI training grant T32CA217789. MD Anderson’s Advanced Technology Genomics Core (ATGC) and Institutional Tissue Bank were supported by the Cancer Center Support Grant P30CA016672. The ATGC core was also supported by the National Institutes of Health instrument grant 1S10OD024977.

Footnotes

Competing interests: L.W. serves as a member of the Scientific Advisory Board for SELLAS Life Sciences and receives compensation outside the scope of this submitted work. A.M. receives royalties from Thrive Earlier Detection and serves as a consultant for Tezcat Biotechnology, and H.K. reports research support from Johnson & Johnson, none of these activities are related to the content of this manuscript. P.M. has received honoraria for service on a Scientific Advisory Board for Mirati Therapeutics, Bristol Myers Squibb, and Exelixis; consulting for Axiom Healthcare Strategies; non-branded educational programs supported by DAVA Oncology, Exelixis and Pfizer; and research funding for clinical trials from Regeneron Pharmaceuticals, Summit Therapeutics, Merck, Takeda, Bristol Myers Squibb, Mirati Therapeutics, Gateway for Cancer Research, and the University of Texas MD Anderson Cancer Center, outside the scope of this work. P.S. is a scientific advisory committee member of Achelois, Affini-T, Akoya Biosciences, Apricity, Asher Bio, BioAtla LLC, Candel Therapeutics, Catalio, C-Reveal Therapeutics, Dragonfly Therapeutics, Earli Inc, Enable Medicine, Glympse, Henlius/Hengenix, Hummingbird, ImaginAb, InterVenn Biosciences, LAVA Therapeutics, Lytix Biopharma, Marker Therapeutics, Matrisome, NTx, Oncolytics, Osteologic, PBM Capital, Phenomic AI, Polaris Pharma, Soley Therpeutics, Spotlight, Trained Therapeutix Discovery, Two Bear Capital, Vironexis, and Xilis Inc.; private investment in Adaptive Biotechnologies, Time Bioventures, JSL Health, BioNTech, and Sporos. W.H.F. is a consultant for Mestag, Oxford Biotherapeutics, IGI immunotherapeutics, Anaveon, Genenta, OSE immunotherapeutics and C.S-F. is a consultant for Mestag. J.G. serves as a consultant for AstraZeneca, Aveo Pharmaceuticals, Infinity Pharmaceuticals, Janssen, and Pfizer. All these consulting activities are outside the scope of this work. J.G. has also received research funding from Delta Therapeutics, Mirati Therapeutics, and Ikena Oncology. L.M.S.S. reports research support from Theolytics and travel support from 10x Genomics, also outside the scope of this work. A.A.J. reports nonfinancial and other support from Natera; grant funding from Break Through Cancer; and nonfinancial support from Personalis, Saga, and Imunon, as well as other support from Merck, all outside the submitted work. The remaining authors declare no competing interests.

Data and materials availability:

All data needed to evaluate the conclusions in the paper are provided in the main text or the Supplementary Materials. Details on data and code availability, along with metadata associated with each cohort, are provided in Table S1, Table S2, and the Materials and Methods section. No new unique reagents, algorithm, or software were developed for this study. All computational codes used in the analysis will be made publicly available upon acceptance of the paper. Any additional information required to reanalyze the data reported in this paper is available from the lead contact, Linghua Wang (LWang22@mdanderson.org), upon request.

REFERENCES AND NOTES

  • 1.Fridman WH et al. , Tertiary lymphoid structures and B cells: An intratumoral immunity cycle. Immunity 56, 2254–2269 (2023). [DOI] [PubMed] [Google Scholar]
  • 2.MacFawn IP et al. , The activity of tertiary lymphoid structures in high grade serous ovarian cancer is governed by site, stroma, and cellular interactions. Cancer Cell 42, 1864–1881 e1865 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Meylan M et al. , Tertiary lymphoid structures generate and propagate anti-tumor antibody-producing plasma cells in renal cell cancer. Immunity 55, 527–541 e525 (2022). [DOI] [PubMed] [Google Scholar]
  • 4.Kim HM, Bruno TC, An Introduction to Tertiary Lymphoid Structures in Cancer. Methods Mol Biol 2864, 1–19 (2025). [DOI] [PubMed] [Google Scholar]
  • 5.Helmink BA et al. , B cells and tertiary lymphoid structures promote immunotherapy response. Nature 577, 549–555 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Petitprez F et al. , B cells are associated with survival and immunotherapy response in sarcoma. Nature 577, 556–560 (2020). [DOI] [PubMed] [Google Scholar]
  • 7.Cabrita R et al. , Tertiary lymphoid structures improve immunotherapy and survival in melanoma. Nature 577, 561–565 (2020). [DOI] [PubMed] [Google Scholar]
  • 8.Zhang Q, Wu S, Tertiary lymphoid structures are critical for cancer prognosis and therapeutic response. Frontiers in immunology 13, 1063711 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Fridman WH et al. , B cells and tertiary lymphoid structures as determinants of tumour immune contexture and clinical outcome. Nat Rev Clin Oncol 19, 441–457 (2022). [DOI] [PubMed] [Google Scholar]
  • 10.Gao J et al. , Neoadjuvant PD-L1 plus CTLA-4 blockade in patients with cisplatin-ineligible operable high-risk urothelial carcinoma. Nat Med 26, 1845–1851 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Amisaki M et al. , IL-33-activated ILC2s induce tertiary lymphoid structures in pancreatic cancer. Nature 638, 1076–1084 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Bruno TC, New predictors for immunotherapy responses sharpen our view of the tumour microenvironment. Nature 577, 474–476 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Engelhard V et al. , B cells and cancer. Cancer Cell 39, 1293–1296 (2021). [DOI] [PubMed] [Google Scholar]
  • 14.Liu Y et al. , Conserved spatial subtypes and cellular neighborhoods of cancer-associated fibroblasts revealed by single-cell spatial multi-omics. Cancer Cell, (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Vanhersecke L et al. , Mature tertiary lymphoid structures predict immune checkpoint inhibitor efficacy in solid tumors independently of PD-L1 expression. Nature Cancer 2, 794–802 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Schumacher TN, Thommen DS, Tertiary lymphoid structures in cancer. Science 375, eabf9419 (2022). [DOI] [PubMed] [Google Scholar]
  • 17.Dieu-Nosjean M-C, Goc J, Giraldo NA, Sautès-Fridman C, Fridman WH, Tertiary lymphoid structures in cancer and beyond. Trends in immunology 35, 571–580 (2014). [DOI] [PubMed] [Google Scholar]
  • 18.Tang Z et al. , Spatial transcriptomics reveals tryptophan metabolism restricting maturation of intratumoral tertiary lymphoid structures. Cancer Cell, (2025). [DOI] [PubMed] [Google Scholar]
  • 19.Marx V, Method of the Year: spatially resolved transcriptomics. Nature methods 18, 9–14 (2021). [DOI] [PubMed] [Google Scholar]
  • 20.Larsson L, Frisén J, Lundeberg J, Spatially resolved transcriptomics adds a new dimension to genomics. Nature methods 18, 15–18 (2021). [DOI] [PubMed] [Google Scholar]
  • 21.Gunderson AJ et al. , Germinal center reactions in tertiary lymphoid structures associate with neoantigen burden, humoral immunity and long-term survivorship in pancreatic cancer. Oncoimmunology 10, 1900635 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Zhang W-H et al. , Infiltrating pattern and prognostic value of tertiary lymphoid structures in resected non-functional pancreatic neuroendocrine tumors. Journal for ImmunoTherapy of Cancer 8, e001188 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Calderaro J et al. , Intra-tumoral tertiary lymphoid structures are associated with a low risk of early recurrence of hepatocellular carcinoma. Journal of hepatology 70, 58–65 (2019). [DOI] [PubMed] [Google Scholar]
  • 24.Wang Q et al. , Tertiary lymphoid structures predict survival and response to neoadjuvant therapy in locally advanced rectal cancer. NPJ Precision Oncology 8, 61 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Zhang D et al. , Inferring super-resolution tissue architecture by integrating spatial transcriptomics with histology. Nat Biotechnol 42, 1372–1377 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.van Hooren L et al. , Agonistic CD40 therapy induces tertiary lymphoid structures but impairs responses to checkpoint blockade in glioma. Nat Commun 12, 4127 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Fridman WH et al. , Tertiary lymphoid structures and B cells: An intratumoral immunity cycle. Immunity 56, 2254–2269 (2023). [DOI] [PubMed] [Google Scholar]
  • 28.Playoust E, Remark R, Vivier E, Milpied P, Germinal center-dependent and -independent immune responses of tumor-infiltrating B cells in human cancers. Cellular & Molecular Immunology 20, 1040–1050 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Zhao L et al. , Tertiary lymphoid structures in diseases: immune mechanisms and therapeutic advances. Signal Transduction and Targeted Therapy 9, 225 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Dieu-Nosjean MC et al. , Tertiary lymphoid structures, drivers of the anti-tumor responses in human cancers. Immunological reviews 271, 260–275 (2016). [DOI] [PubMed] [Google Scholar]
  • 31.Gu-Trantien C et al. , CD4(+) follicular helper T cell infiltration predicts breast cancer survival. J Clin Invest 123, 2873–2892 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Cui A et al. , Dictionary of immune responses to cytokines at single-cell resolution. Nature 625, 377–384 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Ruffin AT et al. , B cell signatures and tertiary lymphoid structures contribute to outcome in head and neck squamous cell carcinoma. Nature communications 12, 3349 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.de Chaisemartin L et al. , Characterization of chemokines and adhesion molecules associated with T cell presence in tertiary lymphoid structures in human lung cancer. Cancer research 71, 6391–6399 (2011). [DOI] [PubMed] [Google Scholar]
  • 35.Sautès-Fridman C et al. , Tertiary lymphoid structures in cancers: prognostic value, regulation, and manipulation for therapeutic intervention. Frontiers in immunology 7, 407 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Lauss M, Donia M, Svane IM, Jönsson G, B cells and tertiary lymphoid structures: friends or foes in cancer immunotherapy? Clinical cancer research 28, 1751–1758 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Sautès-Fridman C, Petitprez F, Calderaro J, Fridman WH, Tertiary lymphoid structures in the era of cancer immunotherapy. Nature Reviews Cancer 19, 307–325 (2019). [DOI] [PubMed] [Google Scholar]
  • 38.Liu Y et al. , Conserved spatial subtypes and cellular neighborhoods of cancer-associated fibroblasts revealed by single-cell spatial multi-omics. Cancer Cell, (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Peng F et al. , Multimodal spatial-omics reveal co-evolution of alveolar progenitors and proinflammatory niches in progression of lung precursor lesions. Cancer Cell, (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Heiser CN et al. , Molecular cartography uncovers evolutionary and microenvironmental dynamics in sporadic colorectal tumors. Cell 186, 5620–5637. e5616 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Baran B et al. , Difference between left-sided and right-sided colorectal cancer: a focused review of literature. Gastroenterology research 11, 264 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Wu R et al. , Comprehensive analysis of spatial architecture in primary liver cancer. Science Advances 7, eabg3750 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Jia W et al. , Tertiary lymphatic structures in primary hepatic carcinoma: controversy cannot overshadow hope. Frontiers in Immunology 13, 870458 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Han G et al. , 9p21 loss confers a cold tumor immune microenvironment and primary resistance to immune checkpoint therapy. Nat Commun 12, 5606 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.van Rijthoven M et al. , Multi-resolution deep learning characterizes tertiary lymphoid structures and their prognostic relevance in solid tumors. Communications Medicine 4, 5 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Wang C-Y, Bochkovskiy A, Liao H-YM, in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. (2023), pp. 7464–7475. [Google Scholar]
  • 47.Thorsson V et al. , The Immune Landscape of Cancer. Immunity 48, 812–830 e814 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Dai Y et al. , PPP2R1A mutations portend improved survival after cancer immunotherapy. Nature, 1–10 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Wang C-W et al. , Weakly supervised deep learning for prediction of treatment effectiveness on ovarian cancer from histopathology images. Computerized Medical Imaging and Graphics 99, 102093 (2022). [DOI] [PubMed] [Google Scholar]
  • 50.Sammut S-J et al. , Multi-omic machine learning predictor of breast cancer therapy response. Nature 601, 623–629 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Farahmand S et al. , Deep learning trained on hematoxylin and eosin tumor region of Interest predicts HER2 status and trastuzumab treatment response in HER2+ breast cancer. Modern Pathology 35, 44–51 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Liu Y et al. , Single-cell and spatial transcriptome analyses reveal tertiary lymphoid structures linked to tumour progression and immunotherapy response in nasopharyngeal carcinoma. Nature Communications 15, 7713 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Andersson A et al. , Spatial deconvolution of HER2-positive breast cancer delineates tumor-associated cell type interactions. Nature communications 12, 6012 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Wang X et al. , Spatial transcriptomics reveals substantial heterogeneity in triple-negative breast cancer with potential clinical implications. Nature communications 15, 10232 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Meylan M et al. , Tertiary lymphoid structures generate and propagate anti-tumor antibody-producing plasma cells in renal cell cancer. Immunity 55, 527–541. e525 (2022). [DOI] [PubMed] [Google Scholar]
  • 56.Fridman WH et al. , B cells and tertiary lymphoid structures as determinants of tumour immune contexture and clinical outcome. Nature reviews Clinical oncology 19, 441–457 (2022). [DOI] [PubMed] [Google Scholar]
  • 57.Mollavelioglu B et al. , High co-expression of immune checkpoint receptors PD-1, CTLA-4, LAG-3, TIM-3, and TIGIT on tumor-infiltrating lymphocytes in early-stage breast cancer. World Journal of Surgical Oncology 20, 349 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Lin W-P, Li H, Sun Z-J, T cell exhaustion initiates tertiary lymphoid structures and turbocharges cancer-immunity cycle. EBioMedicine 104, (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Chiang EY, Mellman I, TIGIT-CD226-PVR axis: advancing immune checkpoint blockade for cancer immunotherapy. Journal for immunotherapy of cancer 10, e004711 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Luther SA, Cyster JG, Chemokines as regulators of T cell differentiation. Nature immunology 2, 102–107 (2001). [DOI] [PubMed] [Google Scholar]
  • 61.Marsland BJ et al. , CCL19 and CCL21 induce a potent proinflammatory differentiation program in licensed dendritic cells. Immunity 22, 493–505 (2005). [DOI] [PubMed] [Google Scholar]
  • 62.Heesters BA, Myers RC, Carroll MC, Follicular dendritic cells: dynamic antigen libraries. Nature Reviews Immunology 14, 495–504 (2014). [DOI] [PubMed] [Google Scholar]
  • 63.Ma J et al. , Mechanisms by which dendritic cells present tumor microparticle antigens to CD8+ T cells. Cancer Immunology Research 6, 1057–1068 (2018). [DOI] [PubMed] [Google Scholar]
  • 64.Sierra-Filardi E et al. , CCL2 shapes macrophage polarization by GM-CSF and M-CSF: identification of CCL2/CCR2-dependent gene expression profile. The Journal of Immunology 192, 3858–3867 (2014). [DOI] [PubMed] [Google Scholar]
  • 65.Ruytinx P, Proost P, Van Damme J, Struyf S, Chemokine-induced macrophage polarization in inflammatory conditions. Frontiers in immunology 9, 1930 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Fiorentino DF, Zlotnik A, Mosmann TR, Howard M, O’Garra A, IL-10 inhibits cytokine production by activated macrophages. Journal of immunology (Baltimore, Md.: 1950) 147, 3815–3822 (1991). [PubMed] [Google Scholar]
  • 67.Fernando MR, Reyes JL, Iannuzzi J, Leung G, McKay DM, The pro-inflammatory cytokine, interleukin-6, enhances the polarization of alternatively activated macrophages. PloS one 9, e94188 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Bhat AA et al. , Cytokine-and chemokine-induced inflammatory colorectal tumor microenvironment: Emerging avenue for targeted therapy. Cancer Communications 42, 689–715 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Mahboubi K, Biedermann BC, Carroll JM, Pober JS, IL-11 activates human endothelial cells to resist immune-mediated injury. The Journal of Immunology 164, 3837–3846 (2000). [DOI] [PubMed] [Google Scholar]
  • 70.Salcedo R, Oppenheim JJ, Role of chemokines in angiogenesis: CXCL12/SDF-1 and CXCR4 interaction, a key regulator of endothelial cell responses. Microcirculation 10, 359–370 (2003). [DOI] [PubMed] [Google Scholar]
  • 71.Geindreau M, Bruchard M, Vegran F, Role of cytokines and chemokines in angiogenesis in a tumor context. Cancers 14, 2446 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 72.Maia A, Schöllhorn A, Schuhmacher J, Gouttefangeas C, in Seminars in immunopathology. (Springer, 2023), vol. 45, pp. 203–214. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73.Thorlacius-Ussing J et al. , The collagen landscape in cancer: profiling collagens in tumors and in circulation reveals novel markers of cancer-associated fibroblast subtypes. The Journal of pathology 262, 22–36 (2024). [DOI] [PubMed] [Google Scholar]
  • 74.Mao X et al. , Crosstalk between cancer-associated fibroblasts and immune cells in the tumor microenvironment: new findings and future perspectives. Molecular cancer 20, 1–30 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Helmink BA et al. , B cells and tertiary lymphoid structures promote immunotherapy response. Nature 577, 549–555 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 76.Dieu-Nosjean MC et al. , Tertiary lymphoid structures, drivers of the anti-tumor responses in human cancers. Immunol Rev 271, 260–275 (2016). [DOI] [PubMed] [Google Scholar]
  • 77.Sautes-Fridman C, Petitprez F, Calderaro J, Fridman WH, Tertiary lymphoid structures in the era of cancer immunotherapy. Nature reviews. Cancer 19, 307–325 (2019). [DOI] [PubMed] [Google Scholar]
  • 78.Dai S et al. , Oncolytic adenovirus encoding LIGHT (TNFSF14) inhibits tumor growth via activating anti-tumor immune responses in 4T1 mouse mammary tumor model in immune competent syngeneic mice. Cancer Gene Therapy 27, 923–933 (2020). [DOI] [PubMed] [Google Scholar]
  • 79.Tokunaga R et al. , CXCL9, CXCL10, CXCL11/CXCR3 axis for immune activation–a target for novel cancer therapy. Cancer treatment reviews 63, 40–47 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Kim M, Choi HY, Woo JW, Chung YR, Park SY, Role of CXCL10 in the progression of in situ to invasive carcinoma of the breast. Scientific reports 11, 18007 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Darash-Yahana M et al. , The chemokine CXCL16 and its receptor, CXCR6, as markers and promoters of inflammation-associated cancers. PloS one 4, e6695 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Pei G et al. , Spatial mapping of transcriptomic plasticity in metastatic pancreatic cancer. Nature, (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.Jiang J et al. , METI: deep profiling of tumor ecosystems by integrating cell morphology and spatial transcriptomics. Nat Commun 15, 7312 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.Barkley D et al. , Cancer cell states recur across tumor types and form specific interactions with the tumor microenvironment. Nature genetics 54, 1192–1201 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85.Moncada R et al. , Integrating microarray-based spatial transcriptomics and single-cell RNA-seq reveals tissue architecture in pancreatic ductal adenocarcinomas. Nature biotechnology 38, 333–342 (2020). [DOI] [PubMed] [Google Scholar]
  • 86.Davidson G et al. , Mesenchymal-like tumor cells and myofibroblastic cancer-associated fibroblasts are associated with progression and immunotherapy response of clear cell renal cell carcinoma. Cancer Research 83, 2952–2969 (2023). [DOI] [PubMed] [Google Scholar]
  • 87.Ji AL et al. , Multimodal analysis of composition and spatial architecture in human squamous cell carcinoma. cell 182, 497–514. e422 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 88.Gouin III KH et al. , An N-Cadherin 2 expressing epithelial cell subpopulation predicts response to surgery, chemotherapy and immunotherapy in bladder cancer. Nature communications 12, 4906 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Xue M et al. , Schwann cells regulate tumor cells and cancer-associated fibroblasts in the pancreatic ductal adenocarcinoma microenvironment. Nature communications 14, 4600 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 90.Mei Y et al. , Siglec-9 acts as an immune-checkpoint molecule on macrophages in glioblastoma, restricting T-cell priming and immunotherapy response. Nature cancer 4, 1273–1291 (2023). [DOI] [PubMed] [Google Scholar]
  • 91.Qi J et al. , Single-cell and spatial analysis reveal interaction of FAP+ fibroblasts and SPP1+ macrophages in colorectal cancer. Nature communications 13, 1742 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Wang F et al. , Single-cell and spatial transcriptome analysis reveals the cellular heterogeneity of liver metastatic colorectal cancer. Science advances 9, eadf5464 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 93.Hao D et al. , The single-cell immunogenomic landscape of B and plasma cells in early-stage lung adenocarcinoma. Cancer discovery 12, 2626–2645 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 94.Sanders BE et al. , Small cell carcinoma of the ovary hypercalcemic type (SCCOHT): A review and novel case with dual germline SMARCA4 and BRCA2 mutations. Gynecologic Oncology Reports 44, 101077 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 95.Tashireva LA et al. , Spatial profile of tumor microenvironment in PD-L1-negative and PD-L1-positive triple-negative breast cancer. International Journal of Molecular Sciences 24, 1433 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 96.Denisenko E et al. , Spatial transcriptomics reveals discrete tumour microenvironments and autocrine loops within ovarian cancer subclones. Nature communications 15, 2860 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 97.Arora R et al. , Spatial transcriptomics reveals distinct and conserved tumor core and edge architectures that predict survival and targeted therapy response. Nature Communications 14, 5029 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 98.Ravi VM et al. , Spatially resolved multi-omics deciphers bidirectional tumor-host interdependence in glioblastoma. Cancer cell 40, 639–655. e613 (2022). [DOI] [PubMed] [Google Scholar]
  • 99.Wu Y et al. , Spatiotemporal immune landscape of colorectal cancer liver metastasis at single-cell level. Cancer discovery 12, 134–153 (2022). [DOI] [PubMed] [Google Scholar]
  • 100.Jiang J et al. , METI: deep profiling of tumor ecosystems by integrating cell morphology and spatial transcriptomics. Nature communications 15, 7312 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 101.Migliozzi D et al. , Microfluidics-assisted multiplexed biomarker detection for in situ mapping of immune cells in tumor sections. Microsystems & nanoengineering 5, 59 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Rivest F et al. , Fully automated sequential immunofluorescence (seqIF) for hyperplex spatial proteomics. Scientific Reports 13, 16994 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 103.Zhang D et al. , Inferring super-resolution tissue architecture by integrating spatial transcriptomics with histology. Nature biotechnology, 1–6 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 104.Virtanen P et al. , SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature methods 17, 261–272 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 105.Guo X et al. , Global characterization of T cells in non-small-cell lung cancer by single-cell sequencing. Nature medicine 24, 978–985 (2018). [DOI] [PubMed] [Google Scholar]
  • 106.Cheng S et al. , A pan-cancer single-cell transcriptional atlas of tumor infiltrating myeloid cells. Cell 184, 792–809. e723 (2021). [DOI] [PubMed] [Google Scholar]
  • 107.Chu Y et al. , Pan-cancer T cell atlas links a cellular stress response state to immunotherapy resistance. Nature medicine 29, 1550–1562 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 108.Sinjab A et al. , Resolving the spatial and cellular architecture of lung adenocarcinoma by multiregion single-cell sequencing. Cancer discovery 11, 2506–2523 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 109.Kieffer Y et al. , Single-cell analysis reveals fibroblast clusters linked to immunotherapy resistance in cancer. Cancer discovery 10, 1330–1351 (2020). [DOI] [PubMed] [Google Scholar]
  • 110.Gu Z, Complex heatmap visualization. Imeta 1, e43 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 111.Wickham H, ggplot2. Wiley interdisciplinary reviews: computational statistics 3, 180–185 (2011). [Google Scholar]
  • 112.Hao Y et al. , Dictionary learning for integrative, multimodal and scalable single-cell analysis. Nature biotechnology 42, 293–304 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 113.McInnes L, Healy J, Melville J, Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426, (2018). [Google Scholar]
  • 114.Wang R et al. , Evolution of immune and stromal cell states and ecotypes during gastric adenocarcinoma progression. Cancer cell 41, 1407–1426. e1409 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 115.Zheng L et al. , Pan-cancer single-cell landscape of tumor-infiltrating T cells. Science 374, abe6474 (2021). [DOI] [PubMed] [Google Scholar]
  • 116.Stanic B et al. , IL-10–overexpressing B cells regulate innate and adaptive immune responses. Journal of Allergy and Clinical Immunology 135, 771–780. e778 (2015). [DOI] [PubMed] [Google Scholar]
  • 117.Erickson A et al. , Spatially resolved clonal copy number alterations in benign and malignant tissue. Nature 608, 360–367 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 118.Pei G et al. , Spatial mapping of transcriptomic plasticity in metastatic pancreatic cancer. Nature, 1–10 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 119.Larsson L, Franzén L, Ståhl PL, Lundeberg J, Semla: a versatile toolkit for spatially resolved transcriptomics analysis and visualization. Bioinformatics 39, btad626 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 120.Liberzon A et al. , The molecular signatures database hallmark gene set collection. Cell systems 1, 417–425 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 121.Gavish A et al. , Hallmarks of transcriptional intratumour heterogeneity across a thousand tumours. Nature 618, 598–606 (2023). [DOI] [PubMed] [Google Scholar]
  • 122.Aibar S et al. , SCENIC: single-cell regulatory network inference and clustering. Nature methods 14, 1083–1086 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 123.Trapnell C et al. , The dynamics and regulators of cell fate decisions are revealed by pseudotemporal ordering of single cells. Nature biotechnology 32, 381–386 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 124.Zhang L et al. , Lineage tracking reveals dynamic relationships of T cells in colorectal cancer. Nature 564, 268–272 (2018). [DOI] [PubMed] [Google Scholar]
  • 125.Heath AP et al. , The NCI genomic data commons. Nature genetics 53, 257–262 (2021). [DOI] [PubMed] [Google Scholar]
  • 126.Therneau TM, Lumley T, Package ‘survival’. R Top Doc 128, 28–33 (2015). [Google Scholar]
  • 127.Weinstein JN et al. , The cancer genome atlas pan-cancer analysis project. Nature genetics 45, 1113–1120 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 128.Thorsson V et al. , The immune landscape of cancer. Immunity 48, 812–830. e814 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Tables S1 to S8

Table S1. Summary of all spatial transcriptomics datasets included in this study.

Table S2. Detailed information for each spatial transcriptomics dataset by sample.

Table S3. List of TLS markers used to calculate the TLS signature score.

Table S4. Summary of maturation state, spatial location, and size of the 695 TLSs analyzed in this study.

Table S5. Validated antibody panels for the COMET assay.

Table S6. Antibodies used for the immuno-fluorescence assays.

Table S7. List of TCGA samples stratified by C1 TLS and C2 TLS classification.

Table S8. Summary statistics for C1 TLS and C2 TLS group across six TCGA cohorts.

Supplementary Materials

Fig. S1. Spatial organization and size of TLSs across maturation states.

(A) Differential cellular composition and spatial organization across TLS states. Representative H&E images and corresponding spatial gene expression maps of key cell lineage markers for T cells (CD3D), B cells (MS4A1), follicular dendritic cells (CR2, FCER2), and germinal center B cells (MKI67, BCL6) across E-TLS, P-TLS, and S-TLS. NA denotes genes not available in a given sample.

Fig. S2. Multimodal spatial validation of TLS cellular composition and organization.

(A) Histologic demonstration of FDC presence within TLS by spatial proteomics (first row to fourth row): H&E images of six TLS (TLS-1 to TLS-6) with TLS boundaries outlined in cyan. Corresponding CD21 channels from COMET (TLS-1 to TLS-4) or PhenoCycler-Fusion IO60 (TLS-5 to TLS-6), showing a CD21+ reticular/mesh-like pattern consistent with FDC presence. Overlay of CD21 signal onto the H&E images to illustrate anatomic concordance within the follicular region. Zoom-in views from the red boxed regions in third row highlighting high-resolution CD21+ areas and the underlying histology. Scale bars: 100 μm in first to third row; 10 μm in fourth row. (B) Cross-platform validation of key TLS cell types using matched spatial transcriptomics (ST) and spatial proteomics (SP) from the same tumor tissue section. Representative examples of two TLSs are shown. Top row (Pseudo-visium ST derived from Xenium 5K data): from left to right, H&E image, TLS signature score, and cell-type signature scores for B cells, Tfh cells, DCs, FDCs, and fibroblasts. Bottom row (Akoya PhenoCode IO60 SP): from left to right, merged immunofluorescence composite and single-channel images highlighting CD20+ cells B cells, CD4+PD-1+ICOS+ Tfh cells, CD11c+ cDCs, CD21+ FDCs, and αSMA+/Collagen-IV+ Fibroblasts. (C) TLS size stratified by cancer type. P-values from two-sided Wilcoxon rank-sum tests are shown.

Fig. S3. Maturation-associated expression patterns of stromal, myeloid, and signaling pathway programs across TLS states.

(A) Heatmaps depicting differential expression of genes associated with stromal, myeloid, and endothelial programs, as well as signaling pathways related to antigen presentation, TCR signaling, interferon response, and cellular stress, across TLS maturation states. Genes were selected to represent programmatic enrichment. DC, dendritic cell; FDC, follicular dendritic cell; CAF, cancer-associated fibroblast; myCAF, myofibroblastic CAF. (B) Boxplots showing scaled expression levels of 26 selected markers (from Fig. 3A and panel A) across TLS maturation states. Pairwise Wilcoxon rank-sum tests were performed to assess statistical significance, with p-values indicated above for relevant comparisons. (C) Heatmap of established TLS-related signatures across E-TLS, P-TLS, and S-TLS.

Fig. S4. Spatial variation in tumor-associated signaling in relation to TLS proximity.

(A) Heatmap showing Spearman correlations between cancer Hallmark pathway scores in tumor spots and TLS subtypes, stratified by TLS maturation state and spatial location relative to tumor regions, both individually and combined. (B) Line plots showing expression dynamics of the same pathways as a function of distance from distal TLSs (DT TLSs) within histologically normal regions. Top: immune-related pathways. Bottom: proliferative and invasive programs. Each line represents a different cancer type. X-axis: distance from TLS (proximal to distal); Y-axis: normalized signature score (z-score). (C) Line plots showing gene expression levels of TNFSF14 (pink), CXCR3 (green), and CXCR6 (turquoise) in TLS cores versus adjacent tumor margin regions (50 μm). Paired Wilcoxon tests revealed significant enrichment of TNFSF14 (p = 7.75×10–6), CXCR3 (p = 3.99×10–10), and CXCR6 (p = 8.81×10–4) within TLSs. (D) Representative whole-slide spatial maps from a Visium tumor sample (left to right): H&E image, tumor region mask, TLS signature score heatmap, full cell type map, and intra-tumoral TLSs (IT TLS) map.

Fig. S5. Training statistics of the AI-based TLS classification method.

(A) Overview of TLS dataset composition and model training. TLS regions were segmented and automatically labeled using a multi-step AI workflow, yielding 10,125 TLS images across TCGA LUSC, BLCA, and KIRC cohorts. Two separate classifiers were developed: one to distinguish E-TLSs from mTLSs and another to distinguish P-TLSs from S-TLSs. For each task, TLS images were randomly split into 80% training and 20% test sets, stratified by cancer type, with image-based features used for model training. From left to right: (i) Pie chart showing the number of TLS identified from each cohort; (ii) Bar plot showing the number of TLS used in the training and test sets for the E-TLS vs. mTLS classification, stratified by cancer type; (iii) Bar plot showing the number of TLS used in the training and test sets for the P-TLS vs. S-TLS classification, stratified by cancer type; (iv) Bar plot displaying the final predicted numbers of each TLS maturation state (E-TLS, P-TLS, S-TLS) across the three cancer types. (B) Line plots showing training loss, test loss, and test accuracy across epochs for the E-TLS vs. mTLS classification task. (C) Representative segmented H&E images showing predicted E-TLSs and mTLSs. (D) Line plots showing training loss, test loss, and test accuracy across epochs for the P-TLS vs. S-TLS classification task. (E) Representative segmented H&E images showing predicted P-TLSs and S-TLSs.

Fig. S6. External validation of the YOLOv8 TLS maturation classifier on the spatial transcriptomics cohort. A total of 340 matched H&E images from our combined spatial transcriptomics (ST) cohorts (340 samples) were included. (A) Distribution of TLS maturation states by ST-based annotation (left) and YOLO classification (right). (B) Performance of E-TLS versus mTLS classification, including normalized confusion matrix, quantitative performance metrics with 95% confidence intervals, ROC curve, and precision-recall curve (left to right). (C) Performance of P-TLS versus S-TLS classification.

Fig. S7. Prognostic value of TLS-based stratification methods.

(A) Heatmap depicting Spearman correlations between the proportion of TLS maturation states and immune/genomic features from a TCGA immune landscape study (128). SNV, single-nucleotide variant; HRD, homologous recombination defects; Lymph Inf Sig Score, lymphocyte infiltration signature score; CTA score, cancer-testis antigens score. (B) Bar graphs displaying the relative fractions of TLS maturation states stratified by AJCC tumor stages across LUSC, LUAD, BLCA, and COAD (MSI-H). (C-E) Kaplan-Meier curves for overall survival stratified by (C) a conventional TLS classification based on presence versus absence of TLSs, (D) dominant TLS maturation state stratified into four groups, or (E) three groups. P-values were calculated using the log-rank test. (F) Violin plots comparing per-patient TLS counts by maturation state, stratified by therapy response status.

Fig. S8. TLS maturation distribution across TLS groups and their multivariable prognostic impact.

(A) Boxplots comparing the proportions of different TLS maturation states between C1 and C2 groups. (B) Forest plot summarizing multivariable Cox regression analysis for overall survival across the six TCGA cohorts. Hazard ratios (HRs) and 95% confidence intervals (CIs) are shown for TLS-based and tumor stage-based groups. Reference groups: C2 TLS and early-stage tumors (Stage I or Stage I/II).

Data Availability Statement

All data needed to evaluate the conclusions in the paper are provided in the main text or the Supplementary Materials. Details on data and code availability, along with metadata associated with each cohort, are provided in Table S1, Table S2, and the Materials and Methods section. No new unique reagents, algorithm, or software were developed for this study. All computational codes used in the analysis will be made publicly available upon acceptance of the paper. Any additional information required to reanalyze the data reported in this paper is available from the lead contact, Linghua Wang (LWang22@mdanderson.org), upon request.

RESOURCES