Abstract
The tumour microenvironment is a focal point in cancer immunotherapy: its cellular composition and spatial organisation can affect the clinical outcomes of cancer patients. By integrating single-cell and spatial transcriptomics, we identify four spatial regions and survey how cellular spatial distribution varies across them in gastric cancer. One region, the Lymphocyte Aggregated Region, consists of lymphocyte aggregates and tertiary lymphoid structures. Within it, we observe associations between naive T cell abundance and T cell activation-associated pathways, and correlations exist between distribution patterns of different lymphocytes and two transcriptomically distinct groups — more activated lymphocytes reside in the adjacent cancerous regions of Group A, while more resting lymphocytes settle in those of Group B. Within Group A, PD1+CD27+ CD8 T cells cluster in closer proximity to CD70+LAMP3+ dendritic cells. Our study unveils the gastric cancer tumour microenvironment at a spatial resolution and provides insights into the exploration of immunotherapy biomarkers.
Subject terms: Gastric cancer, Cancer genomics, Gene regulation in immune cells, Tumour immunology, T cells
The spatial organisation of the tumour microenvironment (TME) can affect immune responses that control tumour growth. Here, the authors use single-cell transcriptomics and spatial transcriptomics to identify a lymphocyte aggregated region (LAR) in gastric cancer and compare its cellular and molecular composition with the neighbouring TME.
Introduction
Deciphering the tumour microenvironment (TME) in detail is challenging due to its complex cellular makeup, including immune and non-immune cells, and especially the complicated and varied cellular spatial organisation within it. Previous studies have profiled the cellular composition of the immune compartment in multiple cancers by single-cell RNA sequencing (scRNA-seq), but the spatial distribution pattern of lymphocytes, particularly how critical tissue architecture like tertiary lymphoid structures (TLSs) affects their distribution, remains ambiguous1. As a hot hub of lymphocytes, the presence and density of TLSs are related to improved prognostics and survival predictions in various cancers2. Recently, growing evidence has revealed that the maturation status of TLSs ranges from mere lymphocyte aggregates to highly organised structures resembling lymphoid nodes3,4, obscuring the exact roles of TLSs over cancer progression. Hence, it is imperative to systematically depict the influence TLSs exert on the TME or vice versa, the anti-tumorigenic immune responses orchestrated by TLSs, and novel makers specifically expressed within TLSs that could potentially govern the anti-tumorigenic activities.
Furthermore, cell-cell interactions and the locations where they occur often modulate biological activities within the TME. Being mediated by ligands and receptors, these cellular communications can trigger anti-tumorigenic activities ranging from naive T cell priming to tumour cell killing by cytotoxic T cells and pro-tumour behaviours like immune evasion exploited by tumour cells. Notably, critical ligand-receptor pairs utilised by immune checkpoint blockade (ICB) therapy, such as CTLA4-CD86 and PD1-PDL1, can coordinate anti-tumorigenic immunity and thus shape the TME5–8. However, the expression variation of immune checkpoint molecules across different tumours cannot fully explain why the treatment response to these molecules varies considerably among patients. One hypothesis is that, aside from expression variation, spatial locations at which these molecules are expressed could influence the subsequent anti-tumorigenic activities9. However, prior studies employing scRNA-seq data to uncover cellular communications in the TME relied mainly on in silico inference based on gene expression rather than in situ exploration based on spatially resolved co-occurrence of ligands and receptors10. Thus, integrating scRNA-seq with spatial transcriptomics (ST) that can capture gene expression across distinct tissue architectures is a suitable approach to investigating cellular interactions in a spatial context. Moreover, despite completing T cell atlases in multiple cancers separately and jointly11–22, we have yet to thoroughly explore the spatial distribution of T cell subsets in the TME, especially for exhausted T cells that are pivotal indicators in prognostics and clinical responses to immunotherapy23–25. Utilising the ST platform26, we are now positioned to examine the spatial distribution pattern of these lymphocytes in detail.
In this work, we construct a fine-grained single-cell atlas from matched samples and use it as a reference to deduce the cellular proportion in each ST spot. By integrating the scRNA-seq and ST data of gastric cancer (GC), our study may pave the way to discover potential immunotherapeutic markers by unveiling the spatial organisation of cell subtypes, the fundamental roles of TLSs in coordinating anti-tumorigenic activities in the TME, and the spatial distribution of immune checkpoint molecules.
Results
Construction of a fine-grained single-cell atlas for GC
We first built a high-resolution single-cell transcriptomic atlas by sequencing cells derived from four different tissue sources, including surgically resected tumour (denoted as T), histologically normal adjacent tissue (N), lymphoid node (L), and peripheral blood (P), from a cohort of 27 treatment-naive donors with GC, covering two clinical phenotypes — subtype (diffuse, indeterminate, and intestinal) and stage (I, II, and III) (Fig. 1a, b, Supplementary Fig. 1a, and Supplementary Data 1, 2). In addition, 19 tumour samples were assayed by 33 ST sections, covering three categories of sampling locations in the tumour (core, in-between, and edge) (Supplementary Fig. 1b). Overall, we obtained transcriptomes for 470,609 single cells and 61,035 ST spots after stringent quality control.
Fig. 1. Spatial distribution of cell subtypes in the TME.
a Schematic overview of the study design. b Elements representing the four tissues were created in BioRender. tyt, y. (2026) https://BioRender.com/de45iro. c The UMAP projection of 470,609 single cells from 27 GC donors, colour-coded by each major cell type. d Integrating scRNA-seq data with ST data identified four distinct spatial regions. Heatmap displays the RCTD-derived enrichment score of each cell subtype across spatial regions, with each column normalised by z-score. The number after the ST region name indicates the number of tumour samples possessing that region. The stacked bar plot shows the proportion of ST spots across all 33 tumour samples. The box plots illustrate the RCTD-derived enrichment score of each cell subtype across 61,035 spots of 33 samples (centre lines denote median values; whiskers denote 1.5 × the interquartile range; the lower and upper hinges represent the 25th and 75th percentiles, respectively). e Heatmap shows differentially expressed genes across spatial regions, with selected genes featured. f The percentage of spatial regions across all ST samples. g The percentage of spatial regions in each ST sample, grouped by GC subtypes. h Forest plot reports cell subtypes enriched and depleted in the LAR region based on effect sizes and their 95% confidence intervals. Dashed lines indicate cutoff values (>0.8 and < −0.8). The size of the box represents the standard error. The centre line of the box denotes the median value, and the horizontal line denotes the 95% confidence interval. A total of 2705 spots across 26 samples were used for comparison. i, Forest plot delineates the association between the expression of FDCSP and sub-categories of clinical phenotypes (subtype and stage) based on effect sizes and their 95% confidence intervals. Heterogeneity: Tau2 = 0.38, df = 13, P value = 6.49e−16 (two-sided Chi-squared test). The size of the box represents the standard error. The centre line of the box denotes the median value, and the horizontal line denotes the 95% confidence interval. j, Dot plot shows distinct signalling pathways enriched in each spatial region. The Benjamini–Hochberg adjusted P value indicates the statistical significance of the enrichment score for each gene set by random permutation.
Eight major cell types spanning from immune cells (T cells, B cells, innate lymphoid cells, mast cells, and myeloid cells) to non-immune cells (endothelial cells, stromal cells, and epithelial cells) were identified (Fig. 1c), each validated by canonical gene markers (Supplementary Fig. 1c). The platform-induced batch effect (10×3’ versus 5’) was efficiently removed as the proportion of major cell types was comparable between these two platforms across all tissues sampled (Supplementary Fig. 1d). Each major cell type was identified across all tumour samples (Supplementary Fig. 1e), while the bona fide biological differences were preserved as each major cell type had a distinct gene expression pattern (Supplementary Fig. 1f and Supplementary Data 3). We further clustered the major cell types into a total of 53 subtypes, none was exclusively derived from or dominant in a single tumour sample (Supplementary Fig. 1g, h). Each cell subtype had a unique tissue distribution preference (Supplementary Fig. 1i).
Since immune populations are a prime player in most anti-tumorigenic activities in the TME, we next shifted our focus from the global cellular composition of GC to its immune compartment, with transcriptomic heterogeneity within T cells (CD8 and CD4 T cells) and myeloid cells observed (Supplementary Fig. 2a–d and Supplementary Data 4). Critical immune subtypes in the TME, including CD8-Tex-LAYN, CD4-Treg-FOXP3, and cDC-LAMP3, were abundant in the tumour, in line with previous research17,19 (Supplementary Fig. 1i). In addition, by scoring each T cell subset with gene programs derived from the TCR and proliferation signalling pathways separately19,24, we identified CD8-Tex-LAYN as potential tumour-reactive T cells that could participate in local immune responses in GC (Supplementary Fig. 2f). Briefly, we generated a fine-grained transcriptomic atlas composing a diverse group of cell subsets from four different tissues of GC donors, particularly for the immune compartment.
Enrichment preference of immune cells across tissues and clinical phenotypes
Since immune cells can migrate between different types of tissue, we next compared the tissue enrichment preference for each immune cell subset of T cells and myeloid cells in GC. Several cell subsets, including CD4-Tcm-ANXA1-P, CD4-Tn-CCR7-P, CD8-Temra-CX3CR1-P, CD8-MAIT-SLC4A10-P, Monocyte-CD14, and Monocyte-CD16, were enriched in the blood but were hardly detectable in solid tissues, suggesting a distinct immune cellular composition in the blood compared with other tissues (Supplementary Fig. 3a). Indeed, these cell subsets constituted the vast majority of immune cells in the blood. T cell subsets like CD8-Temra-CX3CR1-P and CD8-MAIT-SLC4A10-P, enriched in the blood had counterparts enriched in the tumour, respectively (Supplementary Fig. 1i, 2g, and 3a). Additionally, for both T cells and myeloid cells, the compositional diversity measured by the Shannon index27 was significantly higher in tumours than that in adjacent normal tissues and blood (P < 0.05), but no significant difference was detected between tumours and tumour-draining lymph nodes (TDLNs) (Supplementary Fig. 3b). A similar pattern was observed for myeloid subsets, but a significant difference was detected between tumours and TDLNs. Our results indicated that, despite a different cellular composition observed, the diversity of T cells in GC tumours was roughly equivalent to that in TDLNs.
Next, we investigated the cellular distribution preferences within each clinical phenotype, including subtype and stage. Unlike the findings in different types of tissue, few significant differences were identified across different subtypes and stages, except that when accounting for the number of patients for each GC group, the diversity of CD8 T cells in the intestinal subgroup was higher than that in subgroups of diffuse and indeterminate (P < 0.05), with the diffuse subgroup exhibiting the lowest diversity score (Supplementary Fig. 3b–d). We then performed the same analysis solely for tumour samples: when accounting for the number of patients for each GC group, the diversity of CD8T cells in the diffuse subgroup was not only significantly lower than that in the intestinal subgroup but also the indeterminate subgroup; minimal differences were observed between different stages across T cell and myeloid subtypes (Supplementary Fig. 3e–h). Such variation in the diversity of CD8T cells across GC subtypes could be associated with a lower survival rate in the diffuse subgroup28–30, but more supporting data and analyses should be appended in the future.
Construction of a spatially informed cellular atlas to reveal cell distribution
We noticed that the diversity of histological structures observed on an H&E (hematoxylin and eosin) image of an ST slide varied drastically: some were dominated by the cancerous area, like D07T2; some had TLSs mixed within cancerous regions, such as D21T2. The rest have a much more complex pattern; for example, smooth muscle and stromal region, TLSs, and cancerous region were observed all together in D02T2 (Supplementary Fig. 4a). We suspected that if a single histological pattern dominated a slide, ST spots from that slide could have similar transcriptomic profiles, which can be directly measured by the purity score — a higher purity score indicates more similarities were observed in the transcriptomic profiles of all spots within an ST section31. Indeed, we observed the highest purity score in D07T2, followed by D21T2 and D02T2. Furthermore, likely due to the invasive characteristics of cancer cells, each histological structure was tangled and mixed with others without clear boundaries, complicating the cellular composition of each tissue architecture. Thus, we categorized the 33 ST datasets into three groups based on the purity score generated from the above step and determined the resolution score for each group. After decomposing the TME of GC into various cell subtypes, we mapped them (excluding 11 cell subtypes specifically enriched in the peripheral blood) onto the ST slide to characterise their spatial distribution and explore their association with tissue architectures at the transcriptomic level (Supplementary Fig. 4b).
By integrating scRNA-seq and ST data using RCTD32, we clustered all ST spots into four spatial regions, each possessing a distinctive group of cell subtypes: one exhibited intense signals of CD45-positive cells, with the majority being lymphocytes, such as CD8-Tn-CCR7 and Bn-IGHD; one displayed strong signal of SmoothMuscle-MYH11; the rest were populated with Cancer-CEACAM6, with one exhibiting lower Cancer-CEACAM6 signals but higher immune cell signals, whereas the other displaying the opposite trends (Fig. 1d and Supplementary Data 5). Furthermore, we noticed that the distribution abundance of each cell subtype varied in two contrasting tendencies — most lymphocyte subtypes exhibited smaller deviations while non-lymphocyte cell subtypes demonstrated larger ones (Fig. 1d). Since the RCTD enrichment scores, to some degree, can reflect the cellular proportion regardless of the tissue morphology, smaller deviations observed in lymphocyte abundance across samples are probably associated with the migration characteristics of T cells and B cells even in solid tissue like tumours. Next, to validate the clustering results, we overlaid these ST groups onto H&E images and found that these groups mirrored the major histological patterns confirmed by pathological physicians — lymphoid regions that comprise TLSs, smooth muscle and stromal region, and cancer regions (Supplementary Fig. 4c). Such an alignment between the ST group and the histological pattern suggested the robust integrative approach adopted in our study. Therefore, we termed these groups derived from ST data “Lymphocyte Aggregated Region” (abbreviated as LAR), “Smooth Muscle and Stromal Region” (SMSR), “Immunogenic Cancer Region” (ICR), and “Negative-immunogenic Cancer Region” (NCR), respectively.
Each ST group was identified either in all samples (ICR and NCR) or most samples (LAR and SMSR), composed of spots distributed evenly across all samples, and possessed a unique transcriptional profile (Fig. 1e–g and Supplementary Data 6) — the expression of genes associated with lymphoid nodes (CXCL13, CCL19, CCL21, and FDCSP) was significantly higher in LAR, which occupied the least proportion of spots (Fig. 1f); smooth muscle associate genes (ACTA2 and ACTG2) were up-regulated in SMSR; and the expression of GC-associated genes, which were identified from bulk samples of GC tumours using GEPIA33, was significantly higher in NCR than ICR (Fig. 1e and Supplementary Fig. 4e).
Survival analysis using the TCGA (The Cancer Genome Atlas) database indicated that higher expression of LAR-enriched genes was associated with a better prognosis in multiple cancers, notably in sarcoma (SARC) and skin cutaneous melanoma (SKCM) (Supplementary Fig. 4f–h). In contrast, higher expression of SMSR-enriched, ICR-enriched, and NCR-enriched genes was associated with worse prognosis in multiple cancers (Supplementary Fig. 4g). By performing a meta-analysis on 13 ICB therapy cohorts, we observed a modest association between the higher expression of LAR-enriched genes and response to anti-PD-1 or anti-PD-L1 treatment (Supplementary Fig. 4i and Supplementary Data 7). Taken together, by combining the scRNA-seq and ST data, we constructed a spatially informed cellular atlas of GC whereby the distribution pattern of each cell subtype across numerous tumours was depicted and pinpointed the potential anti-tumorigenic roles of LAR in the TME.
The complexity and diversity of the TME are revealed in a spatial context
Next, we examined whether the spatially resolved TME constitution, defined as the four ST groups (LAR, SMSR, ICR, and NCR), correlates with clinical phenotypes such as subtypes and stages. We spotted that the share of LAR escalated across subtypes, following the order of diffuse, indeterminate, and intestinal. We further quantified these trends using the ratio of observed to expected spot numbers (Ro/e) and odds ratio (OR) (Supplementary Fig. 5a–c). Particularly, the proportion of LAR increased from early-stage to late-stage tumours. However, when comparing the ratio of ICR versus NCR across different stage groups, we observed insignificant differences among groups (P < 0.05, two-sided Wilcoxon test), largely due to the small sample size for each group. In addition, we examined if any enrichment preference for the ST groups exists in sub-categories of the above phenotypes by measuring the diversity index and found that the diversity index was roughly equal at both the sample and spot levels (Supplementary Fig. 5d, e).
By measuring effect size, we prioritised the abundance of all cell subtypes within each ST region. Weighted by stringent cutoff values (>0.8 and < −0.8), the LAR region was strongly enriched with immune cells, including GCB-LRMP, cDC-LAMP3, and CD4-Th17-IL17A but depleted with Cancer-CEACAM6 (Fig. 1h). We also observed a positive correlation between signals of the above immune cell types and that of LAR and a negative association between signals of cancer cells and that of LAR in GC tumours collected by TCGA (Supplementary Fig. 5f, g). Apart from SmoothMuscle-MYH11, SMSR was enriched with two types of fibroblasts — MyoFibroblast-ACTG2 and Fibroblast-PI16, and was depleted with Cancer-CEACAM6 using medium cutoff values (>0.5 and < −0.5) (Supplementary Fig. 5f).
Despite displaying stronger cancer cell signals than LAR and SMSR, ICR was mainly occupied by Mucous-MUC5AC, a cell subtype secreting mucus to protect the gastric mucosa from acid erosion34, indicating that a large proportion of ICR somehow still possessed normal stomach functions. Rather, Cancer-CEACAM was the dominant subtype in NCR, suggesting a terminal cancerous stage within this region. Compared with LAR and SMSR, a collection of cell subtypes was depleted in ICR and NCR when using relaxed thresholds (>0.2 and < −0.2). Quiescent states of immune cells such as Bm-GPR183, CD8-Tn-CCR7, and CD8-Tn-CCR7 were depleted in ICR, whereas functional states of immune cells like cDC-LAMP3, GCB-LRMP, CD4-Treg-FOXP3, and Plasma B cells were depleted in NCR (Supplementary Fig. 5h). In conclusion, as opposed to the cellular composition of LAR and SMSR, a transitional, complex cellular composition existed in ICR and NCR, indicated by a larger number of depleted cell subtypes and the less stringent cutoff values used to prioritize cell types in these spatial regions.
Next, we explored the association between the expression of lymph node-associated genes (CXCL13, CCL19, and FDCSP) and sub-categories within each GC tumour phenotype (subtype, stage, and location) by measuring the effect size (Fig. 1i and Supplementary Fig. 5i, j). These gene signatures are actively involved in lymphocyte recruitment and activation2, and higher expression of these genes was associated with improved immunotherapy responses and better survival in multiple cancer types4,35,36; most importantly, in our study, expression of these genes was higher in LAR than oin ther regions, in line with previous research. Despite the importance of these genes, the correlation between the expression of these genes and the sub-categories for each clinical phenotype of gastric cancer is vague. CCL19 and FDCSP were strongly associated with LAR versus other regions across all spots. When categorised by stage, the association was only significant in stage III (cutoff > 1). Moreover, the association between FDCSP and LAR was substantial at the tumour edge, whereas the association between CCL19 and LAR was significant in the diffuse subtype. Conversely, the association between CXCL13 and LAR was insignificant across all spots, but when evaluated by each phenotype, a significant association was found at the tumour core. Next, we assessed the association between these genes and two other genes associated with lymphoid nodes (CCL21 and CR2) within LAR at different tumour locations. We observed that, from the tumour core to the edge, the association between these genes was increasing (Supplementary Fig. 5k), in concordance with the association of LAR with FDCSP and CCL19 at the tumour edge.
LAR associated with T cell-mediated immune responses
Next, we charted the biological activities in which each ST region participated by measuring the intensity of signalling pathways (archived in Reactome37). Distinctive signalling pathways possibly reflecting the function of each ST region were identified, for instance, “Adaptive and Innate Immune System” in LAR, “Smooth Muscle Contraction” in SMSR, and “Cellular Response to Hypoxia” in NCR (Fig. 1j). Particularly, the “TCR Signalling” pathway, which implicates T cell activation for both naive and effector T cells38, was strongly expressed in both LAR and NCR. Furthermore, two other signalling cascades that were critical in coordinating T cell activation, including “Costimulation By The CD28 Family” and “Antigen Processing Cross Presentation”, exhibited intense signals in LAR (Fig. 2a). We further validated this finding at the level of spatial block: an individual spatial block consists of a varying number of spatially grouped spots labelled with the same ST group (Fig. 2b and Supplementary Fig. 6a). Compared with other spatial regions, LAR possessed significantly higher signals of the above pathways and a higher proportion of blocks exhibiting these signals (Fig. 2c).
Fig. 2. Priming of naive CD8 T cells in LAR.
a Dot plot shows the intensity of T cell activation-associated signalling pathways across ST regions. b Schema for spatial blocks. c Comparisons of signalling pathways principal in T cell activation between spatial regions using normalised enrichment score. The top violin plots compare the signalling intensity between spatial regions, while the bottom bar plots indicate the percentage of spots enriched for the above signalling pathways for each spatial region (P < 0.05, two-sided Wilcoxon test). Centre lines denote median values; whiskers denote 1.5 × the interquartile range; the lower and upper hinges represent the 25th and 75th percentiles, respectively. A total of 4,321 spatial blocks across 33 samples were used for comparison. d Lollipop plot indicates the Pearson coefficient measured correlations between the cellular abundance of T cell subsets and two T cell activation-associated signalling cascades within the LAR region. The Benjamini–Hochberg adjusted P value (two-sided) shows the statistical significance of each association. e The Pearson coefficient measured associations between the cellular abundance of CD4-Tem-GZMK and CD8-Tn-CCR7 with signals of TCR and Proliferation signalling pathways in the LAR region. Pearson correlation coefficients and two-sided P values are shown. The marginal rug indicates the 95% confidence interval. NES, normalised enrichment score. f Immunohistochemistry staining of CD8A, TCF1, and KI67 for the sample D16T2. Left panel, the whole slide view of H&E and mIHC images; middle panel, zoom-in views for an LAR highlighted by a rectangle in the left panel (scale bar, 100 μm); right panel, zoom-in views for the rectangle areas in the middle panel (scale bar, 10 μm). Triangles indicate TCF1+KI67+CD8A+ cells. TCF1+KI67+CD8A+ cells were observed within LARs of 11 samples in the main study cohort and five samples from an independent validation cohort.
In addition, the signal of “Antigen Processing Cross Presentation” was also higher in NCR. In NCR, antigen-presenting cells, such as cDC-LAMP3 and Macrophage-C1QC, were depleted (Supplementary Fig. 5h). Other antigen-presenting cells, including but not limited to cDC1-CLEC9A, cDC2-CD1C, and Macrophage-VCAN, were not depleted in NCR, a region mostly dominated by Cancer-CEACAM6. Thus, we speculated that the higher signal of “Antigen Processing Cross Presentation” in NCR could be due to a combined effect of antigen processing activities of these cells.”
Next, we explored the association between the abundance of each T cell subtype and signalling pathways, including TCR and Proliferation signalling pathways24 within LAR. CD8-Tn-CCR7 and CD4-Tem-GZMK were the only T cell subtypes with significant associations between their abundance and TCR and Proliferation signalling pathways within LAR (Fig. 2d–e). The same was true for the association between cellular abundance and Costimulation By The CD28 Family (Supplementary Fig. 6b). In contrast, within the non-LAR region, negative associations were observed between the cellular abundance of CD8-Tn-CCR7 and TCR signalling (correlation coefficient: −0.031, P = 0.06), Costimulation By The CD28 Family (−0.029, P = 0.07), and Antigen Processing Cross Presentation (−0.059, P = 0.0002). An insignificant association was observed between the cellular abundance of CD8-Tn-CCR7 and Proliferation signalling pathways within the non-LAR region (0.022, P = 0.17). Since these signalling pathways are prerequisite biological processes for T cell activation38, our results indicated that these cell subtypes could be potentially primed within LAR. In addition, we identified two naive forms of T cells, CD8-Tn-CCR7 and CD4-Tn-CCR7, but only the abundance of CD8-Tn-CCR7 was associated with the above signalling pathways in LAR, whereas significant associations were not identified for CD4-Tn-CCR7.
We next assayed the expression of CD8, TCF1, and KI67 in 11 tumour samples from the main study cohort and five samples from an independent validation cohort using multiplex immunohistochemistry (mIHC). LAR-residing CD8+TCF1+KI67+ cells were observed in various samples (Fig. 2f and Supplementary Fig. 6c, d). Within LAR, we counted the number of CD8+ cells and the number of TCF1+KI67+CD8+ cells and found an average of 12.19% (SD = 0.0839) CD8+ cells were TCF1+KI67+ cells from samples in the main study cohort, while a lower average of 0.77% (SD = 0.007) CD8+ cells were TCF1+KI67+ cells from samples in the independent validation cohort (Supplementary Data 8). In addition, we assayed 39 replicates from the main study cohort using ST (Supplementary Data 1), collected 280 public ST data across multiple cancers (Supplementary Data 9), and annotated them by SciBet39 using the four GC ST groups as reference. Significant associations between CD8A/CD8B, TCF7, and MKI67 were observed across LAR spatial blocks of the replicate samples (Supplementary Fig. 6e). LAR spatial blocks simultaneously expressing CD8A/CD8B, TCF7, and MKI67 were detected in a group of samples across cancer types (Supplementary Fig. 6f).
Cellular heterogeneity observed in LAR and its association with lymphocyte distribution
We observed that the expression of key gene features (FDCSP and CCL19), which was measured by the coefficient of variation (CV) — a higher CV (>1) indicates greater relative variability, varied drastically among the LAR blocks (a CV value of 3.41 for FDCSP and 1.28 for CCL19), and a significant association was observed between these two trends (Fig. 3a). The abundance of cell subtypes (GCB-LRMP and cDC-LAMP3) also varied drastically among the LAR blocks (a CV value of 2.19 for GCB-LRMP and 2.40 for cDC-LAMP3), but relatively low CV values (0.33 and 0.41) were observed for “TCR Signalling pathway” and “Costimulation By The CD28 Family.” Even for LAR blocks within a single sample, varied signals of GCB-LRMP (CV = 0.51) were observed, as indicated by an overlay of cellular abundance onto H&E images (Fig. 3b).
Fig. 3. The association between the developmental spectrum of LARs and their anti-tumorigenic immunity.
a Declining trends observed in the T cell activation-associated signalling pathways, gene markers, and cell subtypes, as indicated in the upper line plot. The scatter plots show associations between TCR and CD28 signalling pathways, CCL19 and FDCSP, GCB-LRMP and cDC-LAMP3, respectively. Pearson correlation coefficients and corresponding P values (two-sided) are shown. b An overlay of cellular abundance onto H&E images for GCB-RMP (sample D21T3). Spots coloured with red at the top indicate LAR regions, while colour density in the plot shows the variation in cellular abundance over different LAR regions. c Using the z-score transformed cellular composition of spots within the LAR region to stratify donors into two groups. d Variations of cellular abundance in the cancerous regions (ICR and NCR) observed between Group A and B. The cellular abundance is the proportion of each cell subtype in all cell subtypes. e Box plots compare variations of cellular abundance between 16 Group A patients and 10 Group B patients (P < 0.05, two-sided Wilcoxon test). Each dot represents the mean of cellular abundance for each patient’s samples. The centre line of the box denotes the median value, and the horizontal line denotes the 95% confidence interval.
We inferred that such a variation among LAR blocks mirrored distinct groups of LARs. To explore the interplay between varied LARs and diverse types of TME, we aggregated LAR blocks by donors and dichotomised them based on their cellular abundance (Fig. 3c). By applying this approach, even though a disparity among LARs existed on a transection of a tumour (Fig. 3b), we could systematically evaluate the correlation between LARs and the TME across donors. One group of donors, termed Group A, consisted of spatial blocks exhibiting intense signals of cell subtypes enriched in TDLNs, such as GCB-LRMP and CD4-Tfh-CXCR5, with the majority originating from donors of stage III; by contrast, LAR blocks from Group B had a weaker signal of the above cell subtypes. In addition, TDLN-associated signalling pathways, cell subtypes, and hallmark genes enriched in LAR were considerably higher in the LAR region of Group A than in Group B (Supplementary Fig. 7a–c), and such a trend was irrelevant to the size of LAR spatial blocks (Supplementary Fig. 7d, e). More transcriptomic similarities were observed between TDLNs and Group A blocks than between TDLNs and Group B blocks (Supplementary Fig. 7f). A higher expression of LAR-enriched genes, mostly also highly expressed in TDLNs, was observed in bulk samples of Group A than B, further substantiating that the gene expression pattern of Group A LARs was more similar to that of TDLNs than Group B LARs (Supplementary Fig. 7g).
Moreover, compared with other ST regions, ICR was more enriched in Group A than Group B, but NCR was comparable between Groups A and B (Supplementary Fig. 7h). Since ICR has higher immune cell signals but lower cancer cell signals than NCR (Fig. 1d), our results suggest a more deteriorated cancerous state in Group B samples. We then systematically surveyed the cellular abundance differences between Groups A and B within cancerous regions (ICR and NCR) rather than in ICR or NCR separately, as ICR and NCR were spatially tangled with each other. The number of cell subtypes with increased cellular abundance in Group A was nearly three times as many as that in Group B. Notably, among these cell subtypes, most activated lymphocytes — including CD8-Tex-LAYN and CD4-Treg-FOXP3 — were significantly elevated in the cancerous regions of Group A than Group B; on the contrary, most resting lymphocytes, such as CD4-Tn-CCR7 and CD8-Tn-CCR7, were increased dramatically in the cancerous region of Group B than Group A (Fig. 3d, e and Supplementary Fig. 7i, j). To verify the above trends, we implemented an artificial intelligence-guided algorithm, RedeHist, to perform nuclei segmentation on H&E images and impute gene expression for individual cells it detects; this approach allows us to validate scientific findings at the single-cell resolution. More CD8-Tex-LAYN and CD4-Treg-FOXP3 were detected in the cancerous regions of Group A than in Group B (Supplementary Fig. 7k). Taken together, our analyses suggested that distinct groups of LARs could affect the distribution of lymphocytes in the TME, as activated lymphocytes were aggregated in the adjacent cancerous regions of Group A LARs while resting lymphocytes were cumulated in those of Group LARs.
Distinct spatial distribution pattern of immune checkpoint molecules
Immunotherapies targeting immune checkpoint molecules have advanced and evolved substantially over the last decade40,41, yet the spatial distribution pattern of these molecules in tumours remains obscure. Therefore, by scanning immune checkpoint molecules as ligand-receptor pairs, we delineated their spatial distribution across ST regions. In our analysis, we included immune checkpoint ligand-receptor pairs that have been successfully targeted in immunotherapies for cancer treatment, despite varied response rates and resistance being observed in cancer patients for all treatment strategies targeting these ligand-receptor pairs40. We speculated that the spatial distribution pattern of these ligand-receptor pairs may be associated with varied response rates and resistance to immunotherapies targeting them.
Our results indicated that neither stimulatory nor inhibitory ligand-receptor pairs were enriched in either SMSR or ICR (Fig. 4a and Supplementary Fig. 8a). However, a collection of stimulatory ligand-receptor pairs, notably CD27-CD70, was significantly enriched in LAR. In contrast, most inhibitory axes, including LAG3-LGALS3 and TIGIT-NECTIN2, were enriched in NCR. There were strong signals of TCR signalling in NCR, but no other immune activities were notable (Fig. 1j). However, NCR was depleted with T cells; thus, limited TCR signals within NCR were expected. The higher TCR signalling in NCR could be explained by the co-occurrence of higher inhibitory or negative immune responses within NCR, since the inhibitory regulation of T cells by immune checkpoint molecules requires TCR stimulation of T cells6.
Fig. 4. Spatial distribution of immune checkpoint molecules across tumour samples.
a Distinct immune checkpoint ligand-receptor pairs enriched in different spatial regions. *indicates P < 0.001. b Forest plot delineates the association between the axis of CD27-CD70 and donor groups based on effect sizes and their 95% confidence intervals. c Comparison of expression of CD27-CD70 between LAR blocks of Groups A and B (P < 0.001, two-sided t-test). A total of 520 LAR spatial blocks across 26 samples were used for comparison. For all the box plots in this figure, the centre line of the box denotes the median value, and the horizontal line denotes the 95% confidence interval. d Boxplots compare the expression of inhibitory axes between NCR blocks of Groups A and B (P < 0.001, two-sided t-test). A total of 1204 NCR spatial blocks across 33 samples were used for comparison. e Dot plot indicates the cellular communications of cDC-LAMP3 with T cell subsets coordinated by the axis of CD27-CD70 inferred from the scRNA-seq data. Benjamini–Hochberg adjusted P values were generated from a one-sided Z-test. f Immunohistochemistry staining of CD8A, PD1, CD27, LAMP3 and CD70 for the sample D11T1. The physical contact between these two cell types was observed within LARs of 11 samples from the main study cohort and five samples from the independent validation cohort. Left panel, the whole slide view of H&E and mIHC images; middle panel, zoom-in views for an LAR region highlighted by the rectangle of the left panel (scale bar, 100 μm); right panel, zoom-in views for the rectangle areas in the middle panel (scale bar, 10 μm). Yellow triangles indicate PD1+CD27+CD8+ cells, while white triangles indicate LAMP3+CD70+ cells. g A Venn diagram illustrates the LAR spatial blocks expressing both axes of CD28 and CTLA4. h, Box plot compares the average distance between PD1+CD27+CD8+ and CD70+LAMP3+ cells and the average distance between DAPI and CD70+LAMP3+ cells within each LAR in the main study cohort. A total of 19 LAR regions across 10 samples were used for comparison. The Bonferroni-adjusted P value indicates the statistical significance between these two groups (P < 0.001, two-sided t-test).
Particularly, the expression of CD27-CD70 was higher in LAR blocks of Group A than in Group B (Fig. 4b, c). The expression of LAG3-LGALS3 and TIGIT-NECTIN was higher in Group B NCR blocks than in Group A (Fig. 4d). Both LGALS3 and NECTIN2 were over-expressed by cancer cells40,41, and Cancer-CEACAM6 was increased in the cancerous region of Group B than Group A (Fig. 3d, e and Supplementary Fig. 7i, j). This phenomenon partially explains why the expression of LAG3-LGALS3 and TIGIT-NECTIN was higher in Group B NCR blocks than in Group A. We next examined the expression of these immune checkpoint axes in the scRNA-seq data from tumour samples and delineated the cell subtypes expressing respective receptors and ligands, respectively (Supplementary Fig. 8b). We noted that CD70 was highly expressed in cDC-LAMP3, while CD27 was highly expressed in CD4-Treg-FOXP3 and CD8-Tex-LAYN. The potential cellular communication of cDC-LAMP3 with CD4-Treg-FOXP3 and CD8-Tex-LAYN through the axis of CD27-CD70 was also implicated solely based on the scRNA-seq data (Fig. 4e). We also observed the physical contact between PD1+CD27+CD8+ cells and CD70+LAMP3+ cells within LARs in samples from both the main study cohort and the independent validation cohort (Fig. 4f and Supplementary Fig. 8c). For the main study cohort, we measured the average distance between the PD1+CD27+CD8+ and CD70+LAMP3+ cells and between DAPI and CD70+LAMP3+ cells within each LAR. We found that the average distance between PD1+CD27+CD8+ and CD70+LAMP3+ cells was significantly lower than the average distance between DAPI and CD70+LAMP3+ cells (P = 0.00018, paired t-test) (Fig. 4h and Supplementary Data 10). The proportion of PD1+CD27+CD8+ cells adjacent to LAMP3+ cells dropped over the distance ranges within LAR, as observed in the independence validation cohort (Supplementary Fig. 8d). LAR spatial blocks simultaneously expressing CD8A/CD8B, LAMP3, PDCD1, CD27, and CD70 were detected in a group of samples across cancer types (Supplementary Fig. 8e). Intriguingly, the association between the abundance of CD8-Tex-LAYN and the expression of CD27 was stronger in Group A than in Group B, whereas such a phenomenon was not observed for CD4-Treg-FOXP3 (Supplementary Fig. 8f). In addition, both axes of CD28 and CTLA4 were simultaneously expressed in a considerable amount of LAR blocks, and the majority of these blocks were found in Group A (Fig. 4g and Supplementary Fig. 8g, h), suggesting a potential equilibrium established in Group A LARs for CD28 and CTLA4 competing for binding of CD80 and CD86.
Discussion
In summary, by integrating scRNA-seq and ST data, we constructed a high-resolution, spatially informed cellular atlas for gastric cancer, leading to the identification of four distinct transcriptomic-characterised spatial regions that mirrored the tangled histological patterns annotated by pathological physicians. We systematically prioritised the abundance of all cell subtypes across the four ST regions. LAR consisted of less organised histological patterns, such as lymphocyte aggregates, and more functionally developed structures, such as TLSs. We identified several gene markers (FDCSP and CCL19) and cell types (GCB-LRMP and cDC-LAMP3) spatially enriched in LAR. Within LAR, we observed associations between the abundance of naive T cells and TCR and Proliferation signalling pathways, respectively. We observed cellular heterogeneity in LAR and dichotomised them based on their cellular abundance. Group A LARs consisted of spatial blocks exhibiting intense signals of cell subtypes enriched in TDLNs, such as GCB-LRMP and CD4-Tfh-CXCR5, while LAR blocks from Group B had a weaker signal of the above cell subtypes. A linkage between different LAR groups and the cellular organisation of the TME was revealed: activated lymphocytes were aggregated in the adjacent cancerous regions of Group A LAR, while resting lymphocytes were accumulated in those of Group B. A group of stimulatory ligand-receptor pairs, notably CD27-CD70, was significantly enriched in LAR. In addition, within Group A LAR, PD1+CD27+ CD8 T cells appeared to be closer to CD70-positive LAMP3+ cells.
Due to their intrinsic limitations, such findings are hard to identify using conventional techniques like H&E, mIHC, or scRNA-seq alone. Despite the dynamic associations between LAR and the TME identified in our study, the causal relationship between them was not further inferred, given the limitations of scRNA-seq and ST data. Thus, functional validation studies are required in the future. Still, our comprehensive analyses prove that LARs exhibit great potential in modulating anti-tumorigenic immunity, lighting an alternative direction to discovering predictive immunotherapeutic markers for immunotherapy response.
Methods
All relevant ethical regulations were complied with throughout the study, and written informed consent was gathered from all donors. Peking University Institutional Review Board and Peking University Cancer Hospital & Institute Ethical Committee approved the research and sample collection plan (IRB00001052-20037 and 2024KT121).
Sample collection
A total of 27 donors diagnosed with gastric cancer at the Peking University Cancer Hospital & Institute were enroled in this study. All donors were treatment-naive, as surgical resection of the nidus was the first choice of treatment when samples were collected. Before surgery, the peripheral blood (8 ml) was collected using anticoagulant tubes and put on ice before further processing. Tissues (tumour, adjacent normal, and lymph node) were immediately immersed into 5 ml MACS Tissue Storage Solution (Miltenyi Biotec, Germany) on ice after surgical resection. Tumour samples were equally cut into two pieces, each subjected to ST and scRNAseq library preparations, respectively.
Tissue dissociation and single-cell processing
The solid tissues (tumour, adjacent normal, and lymph node) were cut into small pieces (~1 mm3) in the RPMI 1640 Medium (Thermo Fisher Scientific Inc., USA) with 10% foetal bovine serum, loaded in gentleMACS C Tubes, and digested with MACS Tumour Dissociation Kit (130095929, Miltenyi Biotec) on a gentleMACS Dissociator with Heaters (Miltenyi Biotec, Germany). Continuous rotation at 37 °C for 30 minutes was applied. After dissociation, tissues that were still not dissociated were filtered by MACS SmartStrainers (70 μm). The resulting cell suspension was stained with 7AAD (prediluted, 00699350, ThermoFisher) and CD235a (prediluted, 349114, Biolegend) before being sorted by flow cytometry with a BD FACSAria III sorter (BD Biosciences, USA). Roughly 10,000 ~ 20,000 cells were prepared for the 10 × 5’ and 3’ single-cell library construction. The guidance for the library construction is detailed in the manufacturer’s protocol (CG000207 and CG000183).
Construction of a single-cell atlas for GC
The sequencing reads of scRNA-seq data were aligned against the GRCh38 human reference genome by Cell Ranger (version 4.0.0, 10x Genomics Inc) to generate matrixes that record UMI counts of each gene across all cells. After alignment, cells with any one of the following features were filtered out using Seurat42,43 (version 4.4.0): (1) less than 500 or more than 50,000 UMI count detected in a cell; (2) less than 200 or more than 5000 genes detected; (3) the proportion of mitochondrial genes greater than 25%. Genes with expression in less than three cells were also filtered out. After quality control, the UMI counts were normalized and scaled using the function NormalizeData implemented in the R package Seurat (version 4.4.0). The score of the cell cycle was calculated using the function CellCycleScoring, and the score of the tissue dissociation effect was measured based on the expression of Heat Shock Protein (HSP) genes using AddModuleScore.
We next performed clustering using Scanpy44 (version 1.9.1) following steps below: selected 4,000 highly variable genes (HVGs) across platforms (10×3’ and 5’) using sc.pp.highly_variable_genes; regressed out UMI count, the proportion of mitochondrial genes, the score of the cell cycle, and the score of HSP using sc.pp.regress_out; performed principal component analysis (PCA)45; removed platform-induced batch effect using BBKNN46 (version 1.5.1); built the k-nearest neighbour graph47; performed clustering by the Leiden algorithm48; generated the Uniform Manifold Approximation and Projection (UMAP) embedding49. We performed a two-round clustering on the scRNA-seq dataset: eight major cell types were first identified based on the expression of canonical marker genes, and a second round of clustering was then performed to identify subtypes for each major cell type. Differentially expressed genes were identified using sc.tl.rank_genes_groups, with filters of adjusted P value < 0.01 and log2FC > 0.5.
Tissue embedding and optimisation
Fresh tissues were immediately embedded in OCT (optimal cutting temperature, Sakura Finetek, USA) after leaving the Tissue Storage Solution. The embedded tissue was submerged in isopentane in a stainless-steel beaker immersed in liquid nitrogen. The tissue was submerged until fully frozen. The OCT-embedded tissues were transferred on dry ice and stored at -80 °C before cryosection using Leica cryostat at −20 °C. Ten sections for each tissue block were pooled together, and total RNA was extracted using RNeasy Kits (Qiagen, Germany). RNA quality was assessed by evaluating RNA Integrity Number (RIN) on an Agilent 2100 Bioanalyzer (Agilent Technologies, USA). Only tissue blocks with RIN ≥ 7 were subjected to spatial transcriptomics.
Visium Spatial Tissue Optimization Slide (10x Genomics, USA) was used to determine the optimal permeabilisation time. The OCT-embedded tissues were cryosectioned at a ten μm thickness and placed on capture areas of the optimisation slide equilibrated to −20 °C before usage. Seven tissue sections were prepared, one for a negative control (no permeabilisation reagents added) and the rest for a different permeabilisation time length (3, 6, 12, 18, 24, 30 minutes). Mouse reference RNA (RIN ≥ 7) was used as a positive control. The tissue sections were first incubated at 37 °C for 1 minute and then fixed using methanol at −20 °C for 30 minutes. After tissue fixation, tissue sections were stained by sequential processing with isopropanol (1 min incubation), hematoxylin (7 min), bluing Buffer (2 min), and eosin mix (1 min) before 5 minutes incubation at 37 °C. Repeated ultrapure water immersion and air drying were adopted after certain staining stages, as illustrated in the manufacturer’s protocol (CG000238). The H&E (hematoxylin and eosin) stained sections were imaged using Leica Aperio Versa (Leica, Germany) with any of the following objectives: 5X, 10X, and 20X. After imaging, the permeabilisation enzyme was directly added onto each tissue section placed on the optimisation slide sequentially according to the above time length. Fluorescent cDNA was synthesised in situ, and the remaining tissue was removed before fluorescence imaging. The detailed imaging guidelines for both H&E and fluorescent sections can be found at CG000241. We selected 22 minutes as the optimal permeabilisation time for GC tumours, as the maximum fluorescence signal with the lowest signal diffusion was observed.
Spatial transcriptomics library construction
Visium Spatial Gene Expression Slides (10x Genomics, USA) were used to capture the poly-adenylated mRNA from intact tissue sections in situ. The steps of tissue fixation, H&E staining and imaging, and tissue permeabilisation in this section are the same as those of the tissue optimisation section. After 22 minutes of tissue permeabilisation, reverse transcription and second-strand synthesis proceeded before cDNA amplification. The cycle number of qPCR was determined on an Applied Biosystems 7500 Fast Real-Time PCR system (Thermo Fisher Scientific Inc., USA) for each sample. The library was then constructed based on the manufacturer’s user guide (CG000239). The spatial transcriptomic libraries were sequenced (2 × 150 bp) on a NovaSeq platform at GENEWIZ (Suzhou, China).
Multiplex immunohistochemistry staining of tumour samples
Fresh tumour samples were first subjected to Formalin-fixed paraffin-embedded (FFPE). The FFPE-embedded tissues were cryosectioned at a four μm thickness and placed on poly-lysine-coated slides. We designed three mIHC experiments, and each assayed a different combination of protein markers using PANO 6-plex IHC kits (Panovue, Beijing). A total of 26 samples from the main study cohort were assayed. For each combination of protein markers, primary antibodies were sequentially added before HRP-conjugated secondary antibody incubation and tyramide signal amplification, and nuclei were stained with DAPI. All slides were scanned using the Olympus VS200. The protein markers used for staining were CD8 (1:400, clone C8/144B, 70306, Cell Signalling Technology), TCF1 (1:200, clone C63D9, 14456, Cell Signalling Technology), Ki67 (1:200, clone SP6, RM-9106-s1, Thermo Scientific), CD27 (1:2000, clone LPFS2/1611, ab268144, Abcam), CD70 (1:400, clone E3Q1A, 69209, Cell Signalling Technology), PD-1 (1:300, clone 29 F.1A12, 135210, Biolegend) and LAMP3 (1:200, clone 1010E1.01, Novus Biologicals). According to the same experimental design, fifteen samples from an independent validation cohort were assayed at Alpha X, Beijing.
Preprocessing of ST data
ST is a feasible and applicable option since its UMI-based format is identical to that of scRNA-seq; thus, a smooth transition from scRNA-seq to ST can be applied in our study to delineate the spatial distribution of cell subtypes. First, the sequencing reads were aligned against the GRCh38 human reference genome by Space Ranger (version 1.1.0, 10x Genomics Inc), whereby UMI counts and capture spots under tissue were reported. After mapping, each capture spot was annotated with clinical information, and capture spots with a UMI count of less than 500 and features detected of less than 200 were filtered out. After quality control, the UMI counts were normalized and scaled using the function SCTransform implemented in the R package Seurat (version 4.1.1), and a list of variable genes was generated.
Before clustering, we used the function CalculateRogue in the R package ROGUE31 (version 1.0) to measure the purity score for each ST dataset, and we observed heterogeneity across the 33 ST datasets. Thus, we categorized the 33 ST datasets into three groups based on the purity score generated from the above step. Then, based on the categorization, we determined the resolution score for each group.
After excluding genes of a blocklist described by Zheng et al.19 from the list of variable genes, we performed clustering for each dataset using Seurat42,43 by resolution scores determined in the above step. Then, functions of RunPCA, FindNeighbors, and FindClusters were applied sequentially to each ST dataset. As a result, the number of clusters ranges from seven to 11 across all ST datasets, with 521 “ST clusters” reported.
Deconvolution of ST spots
To reduce noise as much as possible, we only adopted the scRNA-seq data generated from the 10 × 5’ platform. For each cell subtype, we defined a “central point” based on the principal component of all cells within the subtype and selected the 1,000 nearest cells to the central point based on the Euclidean distance. This cell subset was used as the reference dataset for the subsequent deconvolution. The cellular composition of each capture spot was measured using RCTD32 (version 1.2.0) by deconvolving the transcriptome of each capture spot with the above scRNA-seq dataset. Cell subtypes derived from blood samples were excluded from this analysis since these cell populations were unlikely to reside in solid tumour tissues.
Construction of a spatially informed cellular atlas
After deconvolution using RCTD32 (version 1.2.0), a matrix with rows representing cell subtypes and columns representing capture spots was generated for each dataset, with each score indicating the enrichment degree of a cell subtype within a particular capture spot. For each matrix, the enrichment score for each cell subtype was z-score transformed across all capture spots before all matrices were merged into one. Based on the merged matrix, we calculated the mean value of each cell subtype for each ST cluster identified in the above section and then performed a z-score transformation for each cell subtype across all ST clusters.
With the newly generated z-score transformed matrix, we calculated the Euclidean distance for each pair of ST clusters before hierarchically clustering them by Ward’s minimum variance method. Next, we sequentially validated the number of clusters starting from 10 by mapping the cluster results onto the H&E images for each ST dataset. Clustering ST clusters into four groups revealed the optimal result, as they maximally reflected the major pathological patterns (lymphoid region, smooth muscle and stromal region, and cancerous region) confirmed by pathological physicians for all ST datasets. Furthermore, the cancerous region was divided into two sub-regions, with one exhibiting lower cancer cell scores but higher lymphocyte cell scores and the other displaying the opposite trends. Accordingly, these groups were termed as “Lymphocyte Aggregated Region” (abbreviated as LAR), “Smooth Muscle and Stromal Region” (SMSR), “Immunogenic Cancer Region” (ICR), and “Negative-immunogenic Cancer Region” (NCR), respectively.
LAR was determined by integrating scRNA-seq and ST data and comprised different sizes (measured by the number of spots) of spatial blocks. It consisted of less organised histological patterns, such as immune cell aggregates (especially for lymphocytes) and more functionally developed structures, such as TLSs. Some TLSs were visible directly on H&E images and exhibited strong TLS-associated signals, such as CXCL13, CCL19, and CCL21; the other spatial blocks in the LAR region were small but also showed strong signals of the above markers when compared with other areas using transcriptomic data.
To reveal the spatial distribution of all cell subtypes across these four regions, we used the aforementioned merged matrix to calculate the mean value of each cell subtype for each region and then performed a z-score transformation for each cell subtype across all regions. Finally, the z-score transformed matrix was used to calculate Euclidean distance for each pair of regions and cell subtypes before hierarchical clustering using Ward’s minimum variance method. The result is visualized using a heatmap implemented in the R package ComplexHeatmap (version 2.10.0).
Identification of hallmark genes for ST groups
Since there is no reliable method to eliminate the batch effect in ST data, we adopted the effect size to evaluate gene expression variation across samples. Specifically, UMI counts of each ST slide were normalized by SCTransform implemented in the R package Seurat (version 4.1.1), and all spots on each ST slide were dichotomized based on the ST cluster (e.g., LAR versus non-LAR). The point-biserial correlation coefficient50 was then calculated to determine whether or not the gene expression was unique to an ST group identified on an ST slide. The Benjamini & Hochberg (BH) approach51 implemented in the R function p.adjust was then used to correct p-values, and genes with an adjusted p-value greater than 0.05 were filtered out. Next, the effect_sizes function implemented in the R package esc (version 0.5.1) was used to convert the point-biserial correlation coefficient to a standardized mean difference effect size. Finally, for each ST group, the function rma implemented in the R package metafor (version 3.8.1) was used to combine gene effect sizes across samples. Again, the BH approach was used to correct p-values, and only genes with an adjusted p-value lower than 0.05 were retained.
Identification of spatial blocks for ST groups
After clustering all spots into ST groups, we identified spatial blocks based on spot coordinates provided by Visium. A spatial block consists of a group of spots from the same ST group, and they are spatially clustered, which means that each spot is adjacent to at least another spot within the block. Specifically, for all spots labelled with the same ST group on a slide, the distance between spots of any pair was calculated using the Euclidean distance. A cutoff value (<= 2) was used to determine if the two spots were spatially adjacent. We then customised homemade R scripts to isolate spatial blocks, mainly utilising an R package for network analysis (igraph, version 1.5.1). Neither lower nor upper limit was set to restrict the size of spatial blocks.
Function annotation of ST groups
Gene Set Enrichment Analysis (GSEA)52 was performed to measure the intensity of signalling pathways in each ST group, using the function GSEA implemented in the R package clusterProfiler (version 4.2.2) with the “rank” mode. The annotation database (Reactome37, version 7.5.1) was downloaded from MSigDB53 (https://www.gsea-msigdb.org/gsea/msigdb).
The ratio of observed versus expected
We generated a contingency table of ST groups (LAR, SMSR, ICR, and NCR) by stages (I, II, and III), with each table cell indicating the number of spots for a given combination of ST group and stage. For each cell, the expected number was calculated by the product of the row total and column total divided by the total number of all spots. The same analysis was used to measure the enrichment of ST groups across different subtypes. We also applied the chi-squared test to determine whether the associations between the ST groups and clinical sub-categories are significant.
Cellular interactions coordinated by immune checkpoint axes
We compiled a list of immune checkpoint axes (ligands and receptors) based on previous studies40,41. The raw UMI count of each gene in the list was extracted and aggregated by spatial block. Only spatial blocks expressing both ligand and receptor of an axis were considered positive blocks for that axis. To identify immune checkpoint axes enriched in each ST region, a permutation approach similar to CellPhoneDB54–56 was adopted: the actual mean value of axes for each positive spatial block was calculated; then, ST group labels of all spatial blocks were permutated 1000 times, and each time the mean value of an axis was calculated to generate a null distribution; a P-value was obtained based on the actual mean value of axes and the null distribution. A similar approach was used to infer cellular interactions from the scRNA-seq data.
Survival analysis using TCGA data
We downloaded the UCSC TOIL RNA-seq recompute version of the TCGA data from Xena (https://xenabrowser.net), kept samples from patients with valid information on overall survival, and calculated the enrichment score of the top 30 LAR-associated genes for each sample using GSVA57 (version 1.42.0). Next, we dichotomised the patients into high and low groups based on the GSVA enrichment score. We built a Cox proportional-hazards model to examine if an association exists between the patient survival time and these two groups after adjusting for age and gender, with a hazard ratio (HR) for each variable calculated.
Detecting individual cells on H&E images using RedeHist
We implemented an artificial intelligence-guided algorithm, RedeHist, to detect individual cells on H&E images. The diameter of each ST spot was adjusted to 128 pixels before nuclei segmentation and stain colour normalisation. A scRNA-seq reference was generated by selecting 1000 highly variable genes using ROGUE31. The processed H&E images, the nuclei segmentation data, the scRNA-seq reference, and the spatial transcriptomics data were used as input for the RedeHist. Details about RedeHist can be found at doi: 2024.06.17.599464.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Description of Additional Supplementary Files
Source data
Acknowledgements
This project was supported by the National Key R&D Program of China (2023YFF1204700, Z.Z.), Start-up Grant for Recruited Scholars of Chongqing Medical University (J0325001, Z.Z.), the National Natural Science Foundation of China (81988101, Z.Z.; 31991171, Z.Z.; 91959000, Z.Z.; 62203019, D.W.; 92159305, Z.Z.; and 92259205, Z.Z.), the Beijing Municipal Science and Technology Commission (Z221100007022002, Z.Z.), and Changping Laboratory (Z.Z.). Part of the analysis was performed on the High-Performance Computing Platform of the Center for Life Sciences, Peking University. The authors thank the flow cytometry core at the National Center for Protein Sciences at Peking University, particularly Yinghua Guo, for technical assistance.
Author contributions
Z.Z., J.J., and Z.B. conceived and supervised the study. Z.Z. and S.G. drafted the manuscript. S.Q. and D.W. provided valuable suggestions to improve the manuscript. Yang L., H.F., and S.G. collected samples. S.G., H.F., and Y.S. performed single-cell and spatial transcriptomics experiments. Y.B. performed mIHC experiments. S.G., L.F., and Ye L. scanned tissue slides. R.G. and X.H. provided experimental technical support. A.W., K.D., and Y.W. performed the pathological examination. S.G., S.Q., Q.S., Y.Z., and L.H. performed data analysis. D.W., L.Z., and X.R. provided valuable suggestions for data analysis. All authors reviewed and approved the manuscript before submission.
Peer review
Peer review information
Nature Communications thanks Takahiro Tsujikawa and the other anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Data availability
Raw sequencing data are deposited at Genome Sequence Archive under accession code HRA007814. Processed gene expression data are available in Gene Expression Omnibus (GSE270678, GSE270679, and GSE270680), and Seurat processed data are deposited at Mendeley Data 10.17632/559mchb37p.1. All other data are available in the article and its Supplementary files or from the corresponding author upon request. Source data are provided with this paper.
Code availability
Codes used for all analyses are deposited in the Zenodo repository 10.5281/zenodo.12622631.
Competing interests
Z.Z. is the founder of Analytical BioSciences. The other authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
These authors contributed equally: Sen Gao, Shishang Qin, Dongfang Wang, Anqiang Wang, Linnan Zhu.
Contributor Information
Zhaode Bu, Email: buzhaode@cjcrcn.org.
Jiafu Ji, Email: jijiafu@hsc.pku.edu.cn.
Zemin Zhang, Email: zemin@pku.edu.cn.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-026-68612-z.
References
- 1.Fridman, W. H., Pages, F., Sautes-Fridman, C. & Galon, J. The immune contexture in human tumours: impact on clinical outcome. Nat. Rev. Cancer12, 298–306 (2012). [DOI] [PubMed] [Google Scholar]
- 2.Sautes-Fridman, C., Petitprez, F., Calderaro, J. & Fridman, W. H. Tertiary lymphoid structures in the era of cancer immunotherapy. Nat. Rev. Cancer19, 307–325 (2019). [DOI] [PubMed] [Google Scholar]
- 3.Schumacher, T. N. & Thommen, D. S. Tertiary lymphoid structures in cancer. Science375, eabf9419 (2022). [DOI] [PubMed] [Google Scholar]
- 4.Cabrita, R. et al. Tertiary lymphoid structures improve immunotherapy and survival in melanoma. Nature577, 561–565 (2020). [DOI] [PubMed] [Google Scholar]
- 5.Sharma, P. & Allison, J. P. Immune checkpoint targeting in cancer therapy: toward combination strategies with curative potential. Cell161, 205–214 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Sharma, P. & Allison, J. P. The future of immune checkpoint therapy. Science348, 56–61 (2015). [DOI] [PubMed] [Google Scholar]
- 7.Wei, S. C. et al. Distinct cellular mechanisms underlie anti-CTLA-4 and anti-PD-1 checkpoint blockade. Cell170, 1120–1133.e1117 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Yost, K. E. et al. Clonal replacement of tumor-specific T cells following PD-1 blockade. Nat. Med.25, 1251–1259 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Rao, A., Barkley, D., França, G. S. & Yanai, I. Exploring tissue architecture using spatial transcriptomics. Nature596, 211–220 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Armingol, E., Officer, A., Harismendy, O. & Lewis, N. E. Deciphering cell-cell interactions and communication from gene expression. Nat. Rev. Genet.22, 71–88 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Liu, Y. et al. Immune phenotypic linkage between colorectal cancer and liver metastasis. Cancer Cell40, 424–437.e425 (2022). [DOI] [PubMed] [Google Scholar]
- 12.Zheng, C. et al. Landscape of infiltrating T cells in liver cancer revealed by single-cell sequencing. Cell169, 1342–1356.e1316 (2017). [DOI] [PubMed] [Google Scholar]
- 13.Guo, X. et al. Global characterization of T cells in non-small-cell lung cancer by single-cell sequencing. Nat. Med.24, 978–985 (2018). [DOI] [PubMed] [Google Scholar]
- 14.Zhang, L. et al. Lineage tracking reveals dynamic relationships of T cells in colorectal cancer. Nature564, 268–272 (2018). [DOI] [PubMed] [Google Scholar]
- 15.Zhang, Q. et al. Landscape and dynamics of single immune cells in hepatocellular carcinoma. Cell179, 829–845.e820 (2019). [DOI] [PubMed] [Google Scholar]
- 16.Zhang, L. et al. Single-cell analyses inform mechanisms of myeloid-targeted therapies in colon cancer. Cell181, 442–459.e429 (2020). [DOI] [PubMed] [Google Scholar]
- 17.Cheng, S. et al. A pan-cancer single-cell transcriptional atlas of tumor infiltrating myeloid cells. Cell184, 792–809.e723 (2021). [DOI] [PubMed] [Google Scholar]
- 18.Zhang, Y. et al. Single-cell analyses reveal key immune cell subsets associated with response to PD-L1 blockade in triple-negative breast cancer. Cancer Cell39, 1578–1593.e1578 (2021). [DOI] [PubMed] [Google Scholar]
- 19.Zheng, L. et al. Pan-cancer single-cell landscape of tumor-infiltrating T cells. Science374, abe6474 (2021). [DOI] [PubMed] [Google Scholar]
- 20.Liu, B. et al. Temporal single-cell tracing reveals clonal revival and expansion of precursor exhausted T cells during anti-PD-1 therapy in lung cancer. Nat. Cancer3, 108–121 (2022). [DOI] [PubMed] [Google Scholar]
- 21.Liu, B., Zhang, Y., Wang, D., Hu, X. & Zhang, Z. Single-cell meta-analyses reveal responses of tumor-reactive CXCL13(+) T cells to immune-checkpoint blockade. Nat. Cancer3, 1123–1136 (2022). [DOI] [PubMed] [Google Scholar]
- 22.Wang, D., Liu, B. & Zhang, Z. Accelerating the understanding of cancer biology through the lens of genomics. Cell186, 1755–1771 (2023). [DOI] [PubMed] [Google Scholar]
- 23.Wu, T. D. et al. Peripheral T cell expansion predicts tumour infiltration and clinical response. Nature579, 274–278 (2020). [DOI] [PubMed] [Google Scholar]
- 24.van der Leun, A. M., Thommen, D. S. & Schumacher, T. N. CD8(+) T cell states in human cancer: insights from single-cell analysis. Nat. Rev. Cancer20, 218–232 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Wherry, E. J. T cell exhaustion. Nat. Immunol.12, 492–499 (2011). [DOI] [PubMed] [Google Scholar]
- 26.Stahl, P. L. et al. Visualization and analysis of gene expression in tissue sections by spatial transcriptomics. Science353, 78–82 (2016). [DOI] [PubMed] [Google Scholar]
- 27.Shannon, C. E. A mathematical theory of communication. Bell Syst. Tech. J.27, 379–423 (1948). [Google Scholar]
- 28.Janjigian, Y. Y. et al. The KEYNOTE-811 trial of dual PD-1 and HER2 blockade in HER2-positive gastric cancer. Nature600, 727–730 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Network, C. G. A. R. Comprehensive molecular characterization of gastric adenocarcinoma. Nature513, 202 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Hirata, Y., Noorani, A., Song, S., Wang, L. & Ajani, J. A. Early stage gastric adenocarcinoma: clinical and molecular landscapes. Nat. Rev. Clin. Oncol. 1–17 (2023). [DOI] [PMC free article] [PubMed]
- 31.Liu, B. et al. An entropy-based metric for assessing the purity of single cell populations. Nat. Commun.11, 3155 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Cable, D. M. et al. Robust decomposition of cell type mixtures in spatial transcriptomics. Nat. Biotechnol.40, 517–526 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33.Tang, Z. et al. GEPIA: a web server for cancer and normal gene expression profiling and interactive analyses. Nucleic Acids Res.45, W98–W102 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Johansson, M. E., Sjövall, H. & Hansson, G. C. The gastrointestinal mucus system in health and disease. Nat. Rev. Gastroenterol. Hepatol.10, 352–361 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Helmink, B. A. et al. B cells and tertiary lymphoid structures promote immunotherapy response. Nature577, 549–555 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Petitprez, F. et al. B cells are associated with survival and immunotherapy response in sarcoma. Nature577, 556–560 (2020). [DOI] [PubMed] [Google Scholar]
- 37.Fabregat, A. et al. The Reactome Pathway Knowledgebase. Nucleic Acids Res.46, D649–D655 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Abbas, A. K., Lichtman, A. H. & Pillai, S. Cellular and Molecular Immunology, 10e, South Asia Edition-E-Book. (Elsevier Health Sciences, 2021).
- 39.Li, C. et al. SciBet as a portable and fast single-cell type identifier. Nat. Commun.11, 1–8 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Pardoll, D. M. The blockade of immune checkpoints in cancer immunotherapy. Nat. Rev. Cancer12, 252–264 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Morad, G., Helmink, B. A., Sharma, P. & Wargo, J. A. Hallmarks of response, resistance, and toxicity to immune checkpoint blockade. Cell184, 5309–5337 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Stuart, T. et al. Comprehensive integration of single-cell data. Cell177, 1888–1902.e1821 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Butler, A., Hoffman, P., Smibert, P., Papalexi, E. & Satija, R. Integrating single-cell transcriptomic data across different conditions, technologies, and species. Nat. Biotechnol.36, 411–420 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Wolf, F. A., Angerer, P. & Theis, F. J. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol.19, 1–5 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45.Jolliffe, I. T. & Cadima, J. Principal component analysis: a review and recent developments. Philos. Trans. R. Soc. A: Math. Phys. Eng. Sci.374, 20150202 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Polański, K. et al. BBKNN: fast batch alignment of single cell transcriptomes. Bioinformatics36, 964–965 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Fix, E. & Hodges, J. L. Discriminatory analysis. Nonparametric discrimination: Consistency properties. Int. Stat. Rev./Rev. Int. de. Stat.57, 238–247 (1989). [Google Scholar]
- 48.Traag, V. A., Waltman, L. & Van Eck, N. J. From Louvain to Leiden: guaranteeing well-connected communities. Sci. Rep.9, 5233 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Becht, E. et al. Dimensionality reduction for visualizing single-cell data using UMAP. Nat. Biotechnol.37, 38–44 (2019). [DOI] [PubMed] [Google Scholar]
- 50.Glass, G. V. & Stanley, J. C. Statistical methods in education and psychology. (Prentice-Hall, 1970).
- 51.Benjamini, Y. & Hochberg, Y. Controlling the false discovery rate: a practical and powerful approach to multiple testing. J. R. Stat. Soc.: Ser. B (Methodol.)57, 289–300 (1995). [Google Scholar]
- 52.Subramanian, A. et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc. Natl. Acad. Sci.102, 15545–15550 (2005). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Liberzon, A. et al. The molecular signatures database hallmark gene set collection. Cell Syst.1, 417–425 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Efremova, M., Vento-Tormo, M., Teichmann, S. A. & Vento-Tormo, R. CellPhoneDB: inferring cell-cell communication from combined expression of multi-subunit ligand-receptor complexes. Nat. Protoc.15, 1484–1506 (2020). [DOI] [PubMed] [Google Scholar]
- 55.Garcia-Alonso, L. et al. Mapping the temporal and spatial dynamics of the human endometrium in vivo and in vitro. Nat. Genet.53, 1698–1711 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Vento-Tormo, R. et al. Single-cell reconstruction of the early maternal–fetal interface in humans. Nature563, 347–353 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Hänzelmann, S., Castelo, R. & Guinney, J. GSVA: gene set variation analysis for microarray and RNA-seq data. BMC Bioinforma.14, 1–15 (2013). [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
Description of Additional Supplementary Files
Data Availability Statement
Raw sequencing data are deposited at Genome Sequence Archive under accession code HRA007814. Processed gene expression data are available in Gene Expression Omnibus (GSE270678, GSE270679, and GSE270680), and Seurat processed data are deposited at Mendeley Data 10.17632/559mchb37p.1. All other data are available in the article and its Supplementary files or from the corresponding author upon request. Source data are provided with this paper.
Codes used for all analyses are deposited in the Zenodo repository 10.5281/zenodo.12622631.




