Skip to main content
Nature Communications logoLink to Nature Communications
. 2026 Aug 3;17:7549. doi: 10.1038/s41467-026-75405-x

Uncovering ectopic GC-like niches for tumor reactive lymphocyte priming in lung adenocarcinoma using Stereo-XCR-seq

Xiaojuan Zhan 1,2,#, Mengye Huang 1,3,#, Yang Zhang 1,3,#, Zhong Liu 3,4,#, Chengwu Liu 5, Yanying Guo 3, Yi Liu 1,6, Wenwen Zhou 1,3, Yixin Yan 6, Hui Zeng 1,3, Yingqi Dong 7, Xuan Dong 6, Xiaoyu Chen 6, Haohang Yang 1,3, Rong Ma 6, Fan Zhu 1,6, Xubin Zheng 8,9, Xinxing Li 6, Sen Hou 10,11, Zhidong Gao 10,11, Jinwen Yin 12, Francis Ka-ming Chan 12,13,14,15, Qin Wu 16, Senyi Deng 17, Yin Yao 7, Shengbao Suo 18,19, Chuanyu Liu 2,20,21, Longqi Liu 3,22, Xun Xu 1,3, Yong Hou 1,3,23, Haoran Tao 3,24, Xinlei Ai 24, Yuliang Dong 3,25, Tao Zeng 3,25, Hanyong Sun 26, Young Li 3,22, Li Zuo 27,28, Hua Wang 28,29,30, Xin Liu 1,2,21, Zhifang Wu 21,31,32, Jingying Zhou 3,24,✉, Zexian Zeng 33,34,✉, Yu Feng 2,6,21,35,✉
PMCID: PMC13434001  PMID: 42547508

Abstract

T/B cell receptors (T/BCR), coordinating antigen-targeting immune response, play crucial roles in anti-tumor immune response. Tracking T and B cell clonal evolution in situ at single-cell resolution is essential for understanding the adaptive immune responses. To address the lack of tools for in situ single-cell T/BCR (XCR) sequencing, we develop Stereo-XCR-seq, an efficient method for retrieving and sequencing TCR and BCR from spatial transcriptome cDNA libraries at subcellular resolution. Stereo-XCR-seq enables high-fidelity, unbiased recovery of XCR sequences alongside spatial transcriptomics in extensive tissues, facilitating the identification of heterogeneous lymphoid aggregates with distinct clonal activities in situ. Using Stereo-XCR-seq, we uncover that IgG+ plasma cell aggregates display features of ectopic germinal center-like (GC-like) niches to select tumor-reactive clones from distal immature tertiary lymphoid structures in 11 lung adenocarcinoma (LUAD) tumors. The presence of these IgG+ plasma cell aggregates in LUAD indicates an improved anti-tumor immune surveillance and sensitivity towards immune checkpoint blockade (ICB) therapy. Collectively, Stereo-XCR-seq enables in situ single-cell profiling of T and B cell clonal activities and their interactions with local microenvironment, links tumor reactivity to intratumoral distribution of lymphocytes, and thus offers a versatile tool for dissecting lymphocyte clonal dynamics across human diseases.

Subject terms: Lung cancer, Sequencing, Cancer microenvironment


There is a lack of tools for in situ single cell T (TCR) and B cell receptor (BCR) sequencing. Here, the authors develop Stereo-XCR-seq for retrieving and sequencing TCR and BCR from spatial transcriptome cDNA libraries at subcellular resolution and apply it to lung adenocarcinoma.

Introduction

The immune repertoire represents the diverse T-cell receptors (TCRs) and B-cell receptors (BCRs) that enable the immune system to recognize and respond to a wide range of antigens1. This diversity arises during T- and B-cell maturation through variable, diversity, and joining (V(D)J) recombination, producing unique and heritable TCR and BCR sequences2. Upon antigen recognition, T and B cells undergo clonal expansion, a hallmark of immune activation that can be profiled through TCR and BCR sequencing. The composition and organization of the immune repertoire differ significantly across tissues3–6, highlighting the importance of profiling immune repertoires within their spatial environment. In addition, spatial profiling of immune repertoires offers the potential to uncover how antigen-specific immune responses are orchestrated within tissues, providing critical insights into antigen recognition and immune system development7–9. Therefore, the development of spatial immune repertoire technologies is a crucial step toward advancing our understanding of basic immunology and unlocking new clinical applications10.

Various toolkits have been developed to capture spatial immune repertoires in situ alongside transcriptomics, with notable examples including Slide-TCR-seq/Slide-tags11,12, Spatial VDJ13, BCR-MERFISH14, and SPTCR-seq15. Slide-TCR-seq and Slide-tags11,12 leverage the Slide-seq platform for transcriptomics profiling and employ multiplexed PCR to enrich XCR transcripts. These methods enable the capture of both coordinate identifier (CID) and complementarity-determining region 3 (CDR3) sequences using short- or long-read sequencing. However, their reliance on pre-designed PCR primer panels introduces potential biases stemming from prior knowledge. In contrast, SPTCR-seq15 and Spatial VDJ13 utilize the Visium platform for transcriptomics profiling and incorporate probes targeting the variable(V) or constant (C) region to enrich TCR transcripts through hybridization. While these approaches broaden accessibility to spatial immune repertoire profiling, they suffer from low efficiency, are time-consuming, and rely on hybridization-based enrichment methods that may limit sensitivity. Furthermore, these methods were designed for an earlier generation of the Visium platform with a spatial resolution of 100 µm, lacking the subcellular precision now achievable with the latest advancements in spatial transcriptomics technologies.

Spatial transcriptomics has made significant strides, with commercial platforms now achieving subcellular resolution and high-throughput gene detection. Sequencing-based spatial transcriptomics technologies, such as Stereo-seq v1.316 and Visium HD17, have achieved resolutions of 0.5 μm and 2 μm, respectively. The rapid progress in these technologies underscores an urgent need to integrate them with spatial immune repertoire sequencing, offering a unique opportunity to gain deeper insights into the immune repertoire landscape and its functional organization within tissues7–9. However, significant technical challenges remain in capturing TCR and BCR sequences in situ at single-cell resolution. First, the physical distances between V(D)J regions and barcodes within transcripts exceed 1000 base pairs, making them unsuitable for high-throughput short-read sequencing. Second, TCR and BCR transcripts are extremely rare, representing less than 0.01% of the cDNA library, which poses a challenge for low-throughput single-molecule long-read sequencing.

In this work, we develop SpaTial Enhanced REsolution Omic-T/BCR-sequencing (Stereo-XCR-seq). By ligating the 3’-ends barcodes to the 5’ends, we transform the double-stranded cDNA into single-stranded circular cDNA. Based on the new cDNA structure, we amplify barcode-ligated XCR reads and proceed with short-reads sequencer. In this way, we generate high-fidelity sequencing results with high detection sensitivity, thereby enabling unbiased immune repertoire sequencing at single-cell resolution with paired-chain information along with the spatial transcriptome. Of note, stereo-XCR-seq exhibits robust performance in both fresh frozen (FF) and formalin-fixed paraffin-embedded (FFPE) retrospective tissues. Applying Stereo-XCR-seq to 11 LUAD specimens and tissues from other extensive disease, we identify ectopic GC-like niches—structures that are transcriptomically and clonally distinct from canonical tertiary lymphoid structures (TLS) but enriched for tumor-reactive lymphocytes. These ectopic GC-like niches harbour tumour-reactive T/B lymphocyte clones and are associated with enhanced antitumor immunity. Integrating spatial transcriptomics with spatial clonal dynamics, we delineate a maturation trajectory from immature TLS (iTLS) to ectopic GC-like niches along the B/plasma cell axis. Notably, this maturation process can be co-excluded by terminally differentiated INHBA+ fibroblasts and TGFBI+ macrophages through extracellular matrix (ECM) remodeling. Taken together, Stereo-XCR-seq enables high-resolution, in situ characterization of tumor-reactive T- and B-cell clonal activities, providing detailed insights into the spatial organization of immune responses.

Results

Stereo-XCR-seq achieves high-fidelity spatial immune repertoire mapping with robust performance in fresh frozen and FFPE disease tissues

To acquire an unbiased spatial immune repertoire in parallel with subcellular-resolution transcriptomes, we developed Stereo-XCR-seq, a method that integrates Stereo-seq16 with targeted retrieval of full-length V(D)J sequences (Fig. 1a, Methods). Firstly, double-stranded Stereo-seq cDNA was heat-denatured at 95 °C and rapidly annealed to a splint oligonucleotide, yielding a single-stranded circular intermediate (sscirDNA) in which the barcode resides at the 5′-end (Fig. 1a, step 1–2). We then sealed the nick using T4 DNA ligase, and typically 10 ~ 30% of the input cDNA was converted to circles. Residual linear DNA and excess oligos were removed by exonucleases I and III, eliminating non-specific amplification in subsequent steps (Fig. 1a, step 2). XCR transcripts were then amplified from the sscirDNA pool by PCR primers directed to the constant (C) region (sscirPCR; Fig. 1a, step 3). In contrast to multiplex V-gene PCR, this constant-region strategy is repertoire-agnostic and yields unbiased amplicons in which barcodes and V(D)J segments are in the middle and flanked by truncated C regions. These amplicons were re-circularized for paired-end 150 bp (PE150) sequencing: read 1 captures the CDR3, while read 2 contains the CID and unique molecular identifier (Fig. 1a, step 4). The paired sequencing data were then subjected to barcode mapping and clone assembly, respectively, to examine the spatial distribution of each clone read (Fig. 1a, step 5). Notably, we also provided an optional fragmentation pipeline to substitute step 4 (Supplementary Fig. 1a, methods). The fragmented V(D)J reads sharing identical coordinates and unique molecular identifier could be further assembled to generate full-length V(D)J reads (Supplementary Fig. 1a).

Fig. 1. Stereo-XCR-seq achieves high-fidelity spatial immune repertoire mapping with robust performance in fresh frozen and FFPE disease tissues.

Fig. 1

a Schematic graph shows five key steps of Stereo-XCR-seq. Created in BioRender. Zhan, X. (2026) https://BioRender.com/9bbcvwx. b Paired box-strip plot comparing pre-retrieval (Stereo-seq) and post-retrieval (Stereo-XCR-seq) target reads/total reads ratios in fresh frozen tissues. Box-and-whisker plots display median, interquartile range and minimum to maximum values. Each dot represents an independent experimental replicate. The number of replicates (N) is labeled on the graph, n = 8 (TRAC), 9 (TRBC),7 (TRDC), 7 (TRGC), 7 (IGHA/M/D/E/G), 11 (IGKC), 13 (IGLC) samples. Lognormal data were analyzed by two-tailed paired Student’s t test, *p < 0.05, **p < 0.01, ****p < 0.0001. c Paired strip plots show ratio differences among three enrichment approaches. Connected lines represent identical cDNA libraries, N = 3 technical replicates. Two-tailed paired Student’s t test showed significance between sscirPCR and the other two strategies, *p < 0.05, **p < 0.01. d Bar chart shows the CDR3 clone types of each tissue section. Data are presented as mean ± SEM, lognormal data were analyzed by two-tailed unpaired Student’s t tests, *p < 0.05, **p < 0.01, ****p < 0.0001. Biological replicates (N) are labeled in the figure, n = 9 (Stereo-XCR-seq), 5 (Spatial-VDJ), 4 (SPTCR-seq), 4 (Slide-TCR-seq), 1(Slide-tags) samples. e. Bar chart shows the TCRβ and IgH chain cell number of each tissue section using stereo-XCR-seq. Data are presented as mean ± SEM. Biological replicates (N) are labeled in the figure. N = 9 samples. f Representative spatial plots show the density and distribution of XCR transcriptomic reads and clone reads at a resolution of bin50, scale bar = 1 mm. N analyzed samples = 11. For data presentation, IGHA/D/E/M/G are summed as IGH gene and TRBC1/2 are summed as TRBC gene. Clone reads are presented using color map Oranges, whereas transcriptomic reads are presented using color map Greens. Both colors are shaded by UMI counts. FOV selected is highlighted in white frame, scale bar = 100 μm. g Representative mIF staining of CD3E and CD138 using adjacent 5 μm tissue section. N analyzed samples = 3. FOVs corresponding to (f) are shown, scale bar = 100 μm. h Representative spatial profiling of XCR gene expression and clonal reads at bin20 resolution, scale bar = 1 mm. TCR and BCR signals are distinguished by color and shaded by CID and UMI counts. N analyzed samples = 3. i Paired box-strip plots of read ratios in FFPE samples. Box-and-whisker plots display median, interquartile range and minimum to maximum values. Each dot represents an independent experimental replicate. N = 5 samples. Lognormal data were analyzed by two-tailed paired Student’s t test, **p < 0.01, ***p < 0.001, ****p < 0.0001. Source data are provided as a Source Data file.

Although long-read platforms recover complete V(D)J-C sequences, their base-level accuracy is limited. Conversely, short reads provide high fidelity but only partial V(D)J coverage. Previous studies have utilized both sequencing methods to mitigate the shortcomings of each method18, whereas the readouts of the two methods have not been compared in parallel. Thus, we directly compared nanopore-based long-read sequencing with DNA nanoball-based PE150 short reads for spatial XCR-seq. Long reads exhibited significantly lower quality (Supplementary Fig. 1b) and produced 39.9% non-functional T/BCR sequences, versus 6.9% for short reads (Supplementary Fig. 1c). In contrast to the plateaued curve of short-read sequencing, increasing long-read sequencing throughput led to ever-increasing CDR3 clone types per coordinate in the saturation test, indicating accumulated false positive readouts by sequencing errors (Supplementary Fig. 1d). These results strongly suggested that short-read sequencing result is imperative to generate high-fidelity clonotype information in spatial immune repertoire. To obtain full-length information, we reconstructed full-length V(D)J through the fragmentation pipeline (Supplementary Fig. 1a). Coverage analysis showed a high coverage ( > 90%) of CDR1-to-frame region 4 (FR4) in the assembled clone reads (Supplementary Fig. 1e). Compared to previous studies that utilized the advantages of both sequencing methods18, our method provides a short-read-only strategy to generate full-length clone reads that enhance the fidelity of the sequencing results.

To examine the performance of Stereo-XCR-seq, we applied sscirPCR to multiple Stereo-seq cDNA libraries and retrieved XCR reads with consistent efficiencies (5.2 ~ 13.5 log2 fold changes over the original Stereo-seq cDNA library, Fig. 1b). To demonstrate the robustness of sscirPCR, we benchmarked the clones detection against multiplexed PCR and 5’RACE19 (rapid amplification of cDNA 5’ ends, a widely recognized gold standard for bulk and single‑cell TCR/BCR sequencing, Supplementary Fig. 1f). Compared to previously released spatial T/BCR retrieving strategies, such as multiplexed PCR12,20 and probe hybridization15, sscirPCR showed substantially higher retrieving efficiencies in XCR reads enrichment (Fig. 1c). The significantly correlated clone detection by sscirPCR and 5’RACE on the same tissue section confirmed the consistency with the gold‑standard approach (r = 0.881, p = 6 × 10−8, Supplementary Fig. 1g). Given the extreme diversity of human T/BCR repertoires, reliance on predefined V(D)J primer panels can introduce substantial coverage bias across samples. In such a case, targeting the constant region might be a more optimal solution to reduce this bias. To prove the unbiased enrichment by sscirPCR, we conducted sscirPCR, 5’RACE, and multiplexed PCR to enrich the TCR reads using the same cDNA library for orthogonal validation. The pairwise clone detection correlation analysis showed significant linear correlation between 5’RACE and sscirPCR (Supplementary Fig. 1h, left), while the multiplexed PCR exhibited marginal correlation with either 5’RACE or sscirPCR (Supplementary Fig. 1h, middle and right). In addition, sscirPCR and 5’RACE have very similar TRBV gene coverage (Supplementary Fig. 1i, left). Multiplexed PCR detected 22 V genes, nearly all of which were also identified by the other tw. methods (Supplementary Fig. 1i, middle and right). This comparison suggests that sscirPCR could achieve unbiased enrichment.

Owing to its high efficiency, sscirPCR was also able to retrieve TCRγ and δ chains in addition to TCRα and β chains, even though γδT cell only accounts for a small fraction ( ~ 5%) of CD3+ T cells21,22. In addition, we tested sscirPCR across a broad range of tissue types, including LUAD, colorectal, gastric, bladder, renal, lymph nodes with metastatic esophageal cancer, autoimmune hepatitis, and rheumatoid arthritis. On average, we assembled 2145 TCRβ and 4659 IgH clones that cover 10,845 TCRβ+ and 51,639 IgH+cells per sample library (Fig. 1d, e), demonstrating robust performance of sscirPCR. Compared with published spatial immune repertoire datasets, Stereo-XCR-seq exhibited a strong advantage in the CDR3 clone type counts23 (Fig. 1d). Furthermore, the retrieved XCR clone reads exhibited consistent spatial distribution along with original spatial transcriptomic T/BCR gene expression (Fig. 1f). The existence of T cells and plasma cells in highlighted T/BCR-expressing field of views (FOVs) was further validated by CD3E and CD138 immunofluorescence staining (Fig. 1g). Importantly, Stereo-XCR-seq also displayed capabilities in XCR sequencing using FFPE samples from colorectal cancer and breast cancer (Fig. 1h, i, source data file), though notable background noises were observed before filtering (Supplementary Fig. 1j). Due to the harsh preservation condition, the XCR reads in FFPE tumor specimens from breast cancer were degraded severely, leading to a shorter median XCR read length at 279 bp (versus 1329 bp for fresh frozen tissues) that only covered the CDR3-FR4 region (Supplementary Fig. 1k–l). Nevertheless, Stereo-XCR-seq still obtained 1026 ~ 2840 IgH and 240 ~ 593 TCRβ clones per sample (source data file), thus extending the application in clinical studies using retrospective FFPE samples. Collectively, the high-fidelity readout, enhanced retrieval efficiencies, unbiased enrichments, and robust performances in different tissues under varied preservation conditions highlight the application potential of Stereo-XCR-seq in exploring lymphocyte dynamics in immune-related studies.

Stereo-XCR-seq profiles clone activities of lymphocytes at the single-cell level with paired chains

Effective anti-tumor immunity requires clonal expansion of tumor-infiltrating lymphocytes (TILs)24, accurate quantification of clone sizes is therefore essential for inferring tumor reactivity. To achieve single-cell resolution, we incorporated ssDNA staining into the Stereo-seq workflow, capturing high-resolution nucleus staining images along with spatial transcriptomes (Supplementary Fig. 2a). Using cellbin2 software25, we performed image-based cell segmentation (Supplementary Fig. 2b). By manually checking 30 FOVs randomly selected from three LUAD samples (10 FOVs each), we obtained authentic segmentation rates at ~94%, ambiguous segmentation rates at ~6%, and negligible missing cells (Supplementary Fig. 2c, d), supporting a credible cell segmentation through this pipeline. A critical consideration in cell segmentation is avoiding excessive boundary expansion, which risks incorporating spurious signals from neighboring cells. To examine this, we first quantified the endogenous membrane-to-nucleus area ratio of T lymphocytes. On average, the membrane area was 1.687-fold larger than the nuclear area (n = 30 cells, Supplementary Fig. 2e, f, source data). For T-cell segmentation, our expanded cell masks were 1.684-fold larger than the original nuclear masks—a fold change nearly identical to the membrane-to-nucleus ratio, with no statistically significant difference (Supplementary Fig. 2f). This result indicates that the 10 pixel expansion parameter does not lead to excessive boundary expansion. Existing spatial immune-repertoire methods typically have a resolution at 100 µm (center-to-center distances, such as Spatial VDJ, SPTCR-seq)26, while spots at this resolution could contain a varied number of lymphocytes (Fig. 2a). Quantifying TCRβ⁺ and IgH⁺ cells revealed a mean of 2.58 TCRβ⁺ and 6.58 IgH⁺ cells per 100 µm spot (Fig. 2b), suggesting an inaccurate clone size counting at a coarse-grained resolution. We randomly selected 20 pairs of FOVs from three samples for the Stereo-XCR-seq section and the serial section stained by CD3E/CD20/CD138. The quantification results of 100 µm XCR+ spots and XCR+ cell bins were directly compared with the mIF staining ground truth in the serial section. As a result, the cell bin counts of either T cells or B/plasma cells well correlated with the cell counts of the mIF staining results, whereas cell counts by 100 µm (bin 200) spots showed no significant correlation (Fig. 2c, left). We then plotted T-cell and plasma cell counts of mIF staining and of Stereo-XCR-seq at 100 µm resolution and cell bin resolution in three pairs of FOVs (Fig. 2c, right). In contrast to the deviated quantification of 100 µm spot counts, cell bin exhibited well-correlated T-cell and plasma cell counts with the mIF staining cell counts on the serial tissue sections. Collectively, the above result suggests that Stereo-XCR-seq provides credible clone size quantification at single cell resolution.

Fig. 2. Stereo-XCR-seq profiles clone activities lymphocytes at single-cell level with paired chains.

Fig. 2

a Spatial plot shows the distribution of IgH clone family 368 at two different resolutions, 100 μm and single-cell resolution. FOV is highlighted in white frame. Bin200 spot (100 μm) is plotted as pink frame. Single cells are plotted in pink polygons with white cell border. b Violin-box plots show the TCRβ+ and IgH+ cell counts in each bin200 spot. Box-and-whisker plots display median, interquartile range and minimum to maximum values. Biological replicates (n) represent different spots from the same tissue section. c Two-tailed Pearson’s correlation analysis (left and middle) using T-cell and B/plasma counts at cell bin resolution, bin200 resolution (100 μm) and mIF staining. N = 3 samples. Each dot represents an individual FOV (N = 20 FOVs), with colors indicate different samples. r- and p values are labeled on each analysis. T-cell and B/plasma cell counts from three FOVs are plotted to show the counts distribution of cell bin resolution, bin200 resolution (100 μm) and mIF staining (right). Dots are colored by sample and shaped by data type. d Schematic diagram shows the definition of ambiguous paired chains, unpaired chains, and unique paired chains. e Pie charts show the number of cells/bin200 spots with ambiguous paired chains, unpaired chains, and unique paired chains. f, g Pie chart (f) and Spatial plot (g) shows the capacity of Stereo-XCR-seq in resolving clone expansion. h Spatial plot shows the capacity of Stereo-XCR-seq in resolving CSR events. each dot represents a transcript, colored by isoforms. i Getis-Ord Gi* hotspot map (k = 10) showing statistically significant spatial aggregation of cells bearing highly similar IgH CDR3 sequences. Insets highlight examples of significant spatial clustering. j Lineage tree plot and spatial plot shows the clone family 340 and subclones 2/6/8 in different FOVs. Only subclones 2/6/8 are shown in spatial plot. In lineage tree, dots are sized by clone size. In spatial plot, each dot/polygon represent a cell, colored by subclone definition. Source data are provided as a Source Data file.

Equipping T cells with chimeric antigen receptor (CAR) or screened TCR endows them with tumor-targeting cytotoxicity in clinical practice27,28. However, such engineering requires information on paired TCR chains. To this end, we compared the resolution of paired chain detection at single cell level and at 100 µm. By examining the co-localization of TCR α-β and BCR H-L chains within cell bins and 100 µm spots, we categorized the result into ambiguous paired chains with multiple distinct clonotypes, unpaired chains with only one chain type, and unique paired chains with a single, clearly defined clonotype (Fig. 2d). Compared to the 100 µm resolution, Stereo-XCR-seq exhibited no ambiguous pairings and yielded a higher proportion of unique paired chains at single cell resolution (n = 8785, 61.6%, Fig. 2e). Collectively, these result demonstrate that Stereo-XCR-seq enhables single-cell spatial immune repertoire profiling with paired chains, offering potentials for retrieving paired T/BCR receptors from clinical specimens to support cellular therapies.

B/plasma lymphocytes undergo somatic hypermutation (SHM) to develop antigen-binding affinity29, class switching recombination (CSR) to secrete effector-competent antibodies, and clonal expansion to enable robust antibody secretion30. These three clonal activities are essential for B/plasma cells to fulfill their roles in immune surveillance. We therefore sought to evaluate the capability of Stereo-XCR-seq in resolving each of these clonal activities at single-cell resolution. To assess clonal expansion, we quantified the number of cells assigned to each clone family to determine clone sizes (Fig. 2f). For example, in LUAD-P1, 11% (n = 71) IgH clones were found with large clone size ( ≥ 10 cells, such as clone family 425 in Fig. 2g). For CSR, we defined a CSR event as the presence of two or more IgH isotypes within a segmented cell bin (Fig. 2h). Using sequence similarity analysis and Getis-Ord Gi* statistics, we identified a mutation hotspot characterized by similar IgH CDR3 amino acid sequences in this FOV (Fig. 2i, Supplementary Fig. 2g). By integrating these capacities, Stereo-XCR-seq enables the visualization of individual clonal activities involved in B/plasma-cell lineage differentiation (Fig. 2j, left, orange bold lines). For example, in the IgH clone family 340, clonal expansion of subclone 2 (clone size at 77), mutation from subclone 2 to subclone 8, and a CSR event from subclone 2 to subclone 6 could all be inferred within a single spatial plot (Fig. 2j, right), demonstrating the capability of Stereo-XCR-seq to resolve B/plasma cells clonal dynamics at single cell resolution.

Stereo-XCR-seq reveals clonal convergence of B/plasma cells across spatially distinct iTLSs in LUAD

TLSs are ectopic lymphoid aggregates within tumor stroma that orchestrate anti-tumor immunity31,32. The maturation of TLS is marked by the formation of germinal centers (GCs) that generate antibody-secreting plasma cells within the follicular structures33,34. The presence of mature TLS (mTLS) has been reported to associate with improved response to immunotherapy. However, only a minority of LUAD patients harbor mTLSs35–37. To investigate their prevalence, we randomly selected H&E staining images from 100 LUAD samples in The Cancer Imaging Archive38 (Supplementary data 1). Of these, 57 samples contained five or more TLSs, indicative of an inflamed tumor microenvironment. However, only six samples displayed mTLSs (Fig. 3a, b). The mean frequency of mTLS remained significantly lower than that of iTLS across the inflamed cohort (mean frequencies: 0.26 vs 10.05, Fig. 3c), substantially below the reported objective response rates to immune checkpoint blockade in LUAD (35.9%39 and 30%40). These findings suggest that the prognostic value of mTLS applies only to a subset of LUAD patients.

Fig. 3. Stereo-XCR-seq reveals clonal convergence of B/plasma cells across spatially distinct iTLSs in LUAD.

Fig. 3

a Representative FOVs show the iTLSs and mTLSs. Germinal centers are highlighted in green. Patient number has been attached below each image. N analyzed samples = 100, scale bar = 100 μm. b Pie chart shows the percentage of mTLS and iTLS appearance in LUAD H&E staining images. c Box plot shows the frequencies of mTLS and iTLS in 57 inflamed LUAD H&E staining images. Box-and-whisker plots display median, interquartile range and minimum to maximum values. Statistical analysis was performed using two-tailed unpaired Student’s t tests. ****p < 0.0001. d Schematic diagram shows the investigation of LUAD-infiltrating lymphocytes at single-cell resolution and structural resolution. Created in BioRender. Zhan, X. (2026) https:// BioRender.com/9bbcvwx. e Lollipop charts show the number of TCR+ cells and BCR+ cells in the 11 LUAD tumors. f Representative spatial plot shows iTLS in LUAD-P1, n = 7338 cells, scale bar = 1 mm. FOVs presents the region of interests, along with the CXCL13, MS4A1, CD3E expression in this FOV. Each dot represents a bin50 spot, colored by cluster or expression level respectively. N analyzed samples = 11. g Spatial plot shows spatially discrete iTLS clusters in LUAD-P1, n = 6243 cells, scale bar = 1 mm. N = 6 samples (LUAD-P1/P4/P6/P8/P9/P10, with iTLS number ≥2). h Venn plots show the shared IgH clones by the top five iTLS clusters in LUAD-P1. iTLSs 7/3/8/0 are compared with iTLS 6, respectively. i Elbow plots show the sharing of IgH clones (left) and TCRβ clones (right) by different iTLS clusters, n = 6 samples (LUAD-P1/P4/P6/P8/P9/P10, with iTLS number ≥2). The sharing clones are plotted as absolute counts (up) and percentage (below), respectively. Each line represents a tumor, colored by patient number as indicated on the left. j Box-whisker chart (left) and schematic graph (right) shows the disseminated clone proportions in each iTLS. Box-and-whisker plots display median, interquartile range and minimum to maximum values. Biological replicates (N) are labeled in the figure, n = 10 samples (LUAD-P1 to P10, with iTLS number ≥ 1). k Representative spatial plots show the distribution of iTLS-emigrating IgH clones, scale bar = 1 mm. Each plot presents one iTLS cluster-associated clones as labeled above. The iTLS cluster of interest is colored in blue and highlighted by red border. N analyzed samples = 6 (LUAD-P1/P4/P6/P8/P9/P10, with iTLS number ≥2). The emigrating distributions are presented as kernel density estimate (KDE) plot, with the most enriched niche highlighted by green borders. The KDE plots are colored by densities. FOVs show the representative distribution of cells of interests and related gene expression in LUAD-P1. Each dot represents a cell, colored by either cell type or genes. Dot plot shows the expression of JCHAIN in different spatial clusters (bin50 spots). Dots are colored by mean expression and sized by expression fraction. Source data are provided as a Source Data file.

To investigate the role of iTLSs in LUAD, we applied Stereo-XCR-seq to 11 fresh-frozen LUAD specimens containing only iTLSs, aiming to characterize the clonal activity of lymphocytes within spatially distinct lymphoid aggregates (Fig. 3d, Supplementary Table 1). Serial tissue sections were used for H&E staining and LAMP3/CD23 co-immunostaining. Although LAMP3 expression was observed in the TLSs, the absence of CD23+ secondary follicular structures confirmed their immature phenotype41 (Supplementary Fig. 3a–c). Unsupervised clustering analysis42 (built in Omicverse43) of spatial transcriptome at 25 μm × 25 μm (bin50 spot) resolution resolved seven spatial structures (Fig. 3f, Supplementary Fig. 3d, e): alveolar tissue (SFTPC+ SFTPD+), lung cilia (SCGB1A1+CAPS+), plasma cell aggregates (JCHAIN+IGKC+), iTLS (CXCL13+MS4A1+CD3E+CHST4+IL33+), myeloid cell-enriched region (APOC1+ CTSB+), immune-excluded stroma (CXCL13−MS4A1−JCHAIN−COL1A1+COL1A2+) and tumor (EPCAM+KRT18+). In addition, we transferred cell-type annotations from a public LUAD scRNA-seq atlas (GSE148071)44 to our in-house generated single-cell resolved spatial data using TACCO45. Marker-gene concordance between scRNA-seq data and spatial transcriptomic cell bins validated the accuracy of the annotation transfer (Supplementary Fig. 3f–h). Leveraging the single-cell resolved transcriptome and spatial annotations at 25 μm resolution, we were able to link individual gene expression profiles to their respective tissue niches.

Given that single-cell resolved spatial transcriptome is challenged by background noises from lateral diffusion and the Z-axis interference46, we restricted our analysis to XCR reads assigned to lymphocytes to ensure biological validity in downstream analysis (Supplementary Fig. 4a, b). Specifically, we recovered 14,125 TCR+ T-cell (recovering rate at 66.9%) and 22,084 BCR+ B/plasma cells (recovering rate at 73.33%) (Fig. 3e), encompassing 520 TCRβ clones and 3130 IgH clones. Among these, ~88% (17,946/20,361) IgH+ cells were supported by IGH gene expression, whereas only 9.7% (757/7,826) of TCRβ+ cells exhibited detectable TRBC1/2 gene expression (Supplementary Fig. 4c–e). A recent study comparing Xenium and Visium platforms demonstrated that sequencing-based spatial transcriptome based whole-transcriptome methods underestimates the expression of low-abundance immune-related genes by 5.7-fold per gene17. We thus attributed the discrepancy in supporting ratios (Supplementary Fig. 4e) to the relatively low abundance of TCR mRNAs in spatial transcriptome cDNA libraries. This interpretation is further supported by our own data and other publicly available LUAD spatial trnacriptomes (E-MTAB-13526)47, which consistently showed lower TRBC1/2 mRNA levels compared to IGH gene expressions (Supplementary Fig. 4f, g). This observation prompted us to question whether TCRβ+ cells lacking TRBC1/2 expression represented biologically authentic cells restored via retrieval or false positive signals introduced from the sscirPCR procedure. To test this, we checked whether TCRβ+TRBC1/2− cells were supported by TRAC mRNA, TCRα chain reads, or CD3E protein expression. Although lacking TRBC1/2 expression, TCRβ+TRBC1/2− cells showed higher TRAC expression compared to TCRβ-TRBC1/2− cells (Supplementary Fig. 4h). Notably, ~67% TCRβ+ cells harbored paired TCRα chains, resulting in 5202 T cells with recovered α-β chains (Supplementary Fig. 4i). We further assessed CD3E expression at protein level by immunofluorescent staining using serial tissue sections. We selected two representative fields of view (FOV), including FOV1 with concordant TRBC1/2 and TCRβ expression, and FOV2 with discordant expression between the two (Supplementary Fig. 4j). Comparable CD3E expression in both FOVs (Supplementary Fig. 4k) supported the authenticity of the retrieved TCRβ signals, highlighting the enhanced sensitivity of Stereo-XCR-seq. Overall, the T/BCR+ cell counts showed strong agreement with the number of T/B lymphocytes per tissue section (Supplementary Fig. 4l) and at 100 μm2 regional resolution (Supplementary Fig. 4m), underscoring the accuracy of clonal recovery.

Among these specimens, six tumors (LUAD_P1/4/6/8/9/10) contained multiple iTLSs. To identify spatially distinct iTLS clusters in these tumors, we applied Density-Based Spatial Clustering of Applications with Noise (DBSCAN), a density-based algorithm designed to detect clusters in large spatial databases with noise48. As a result, we identified 3 ~ 10 spatially discrete iTLS clusters per tumor section (Fig. 3g, Supplementary Fig. 5a). By checking the shared IgH clones by the top five iTLSs in LUAD_P1, we observed a minor clone sharing ranging from 11.7 ~ 27.3% (shared clones/all clones, Fig. 3h), implicating spatial heterogeneity of iTLSs. To further validate this observation, we calculated the clone type sharing by different iTLSs in all six LUAD tumors with multiple iTLSs and plotted the result as elbow plots (Fig. 3i). Again, ~70% IgH clones and ~60% TCRβ clones were found to be unique (appeared in only one iTLS) in different iTLSs of each tumor, whereas <5% IgH clones and <10% TCRβ clones were found shared by three or more iTLSs within each tumor (Fig. 3i). Of note, the pairwise clone sharing analysis of the iTLSs showed no significant correlation between clone sharing decay with distance, indicating that clonal overlap might not be directly determined by spatial proximity (Supplementary Fig. 5b). Interestingly, though rare clones were shared by spatially discrete iTLSs, we observed that over 80.67% IgH and 60.61% TCRβ clones could also be observed outside the iTLSs, suggesting a crucial role of iTLS in supplying tumor-infiltrating lymphocytes (Fig. 3j). Next, we integrated the transcriptome and clone information to interpret the migration paths of B/plasma cells in the tumor. Mapping iTLS-associated IgH clones revealed extrafollicular egress and convergence on discrete stromal niches (Fig. 3k, dotted arrows), which was further enhanced by the distant aggregation of iTLS-associated IgH clones in all examined multi-iTLS tumors (Supplementary Fig. 5c). B cells differentiate into plasma cells to secrete anti-tumor antibody23. While iTLSs harbored dense B and T cells, the emergent niches were overwhelmingly occupied by plasma cells, as evidenced by the intensive expression of JCHAIN in the distinct niches (Fig. 3k, left FOVs and dot plot). This observation indicates that the emigrant B cells complete plasma cell differentiation at these sites. Given the aggregation of plasma cells in the distinct niche, we named it plasma cell zones (PCZ). Collectively, our data suggested that the fate transition from B cells to antibody-secreting plasma cells might be a process that proceeds asynchronously during migration.

Stereo-XCR-seq delineates spatiotemporal fate trajectories of B/plasma cells in iTLSs

To resolve whether B-cell maturation is a spatially dynamic process, we projected MS4A1, CXCL13, IGKC, and JCHAIN onto the spatial maps from the 11 LUAD tumors. It turned out that iTLSs and PCZs showed distinct spatial distribution patterns marked by co-expression of MS4A1/CXCL13 or IGKC/JCHAIN, respectively (Fig. 4a, b). Cell-type deconvolution and CD20/CD138 co-staining on serial tumor sections further confirmed the enrichment of B cells in iTLSs and plasma cells in PCZs, respectively (Fig. 4c, d, Supplementary Fig. 6d–h). Combining the observation of shared IgH clones in iTLSs and PCZs (Fig. 3k), the distinct intratumoral distributions of B cells and plasma cells implied that B-to-plasma cell differentiation might be coupled to intratumoral relocation. By generating PCZ and TLS gene signature scores (Methods), we found that this observation extended to immune disorders and cancers in other tissues, including primary biliary cholangitis (PBC), inflammatory bowel disease (IBD), breast cancer (BC), colorectal cancer (CRC), kidney cancer (KC) and gastric cancer (GC). These conditions exhibited distinct spatial expression patterns of TLS and PCZ scores, along with related gene markers (Supplementary Fig. 6a–c). The conserved spatial distribution of iTLSs and PCZs across diverse tissues and diseases not only supports the biological relevance of our findings in LUAD but also indicates that B-to-plasma cell maturation could occur outside iTLS at a pan-disease scale.

Fig. 4. Stereo-XCR-seq delineates spatiotemporal fate trajectories of B/plasma cells in iTLSs.

Fig. 4

a Spatial plot of MS4A1 (green), CXCL13 (red), IGKC (purple) and JCHAIN (blue) expression in LUAD tumor, bin20 spot, colored by genes and UMI counts, n = 11 samples, scale bar = 1 mm. Two FOVs are selected to present the co-expression of MS4A1/CXCL13 (green frame) or IGKC/JCHAIN (purple frame). b Spatial plot of selected FOVs from (a) showing co-expression of MS4A1/CXCL13 (green frame) or IGKC/JCHAIN (purple frame) in bin20 spot, colored by genes and UMI counts. n = 11 samples, scale bar = 10 μm. c, d Representative multiplexed immunofluorescence staining (c) of LUAD-P6 on an adjacent tissue section shows the CD20+ B cells and CD138+ plasma cells, scale bar = 1 mm. FOVs are selected according to the location of PCZ and iTLS to show the B cell enrichment in iTLS and plasma cell enrichment in PCZ, scale bar = 20 μm. Box-strip plots (d) compare their abundance; two-tailed paired Student’s t tests, **p value < 0.01. Box-and-whisker plots display median, interquartile range and minimum to maximum values. N = 3 samples, n = 5 FOVs of each sample. e Schematic of niche/cell analysis at bin50 and single-cell resolution. f UMAP of lymphoid aggregate re-clustering (left-up) and gene expression (other plots, bin50 spots, colored by cluster/UMI), n = 11 samples, n = 16398 cells. g, h Representative spatial plot of inner and outer iTLSs in LUAD P4 (n = 3941 cells) and P6 (n = 4815 cells), bin50 spot, colored by clusters (g) or gene UMI counts (h). Scale bar = 1 mm. N analyzed samples = 11. i Dot plot of gene expression in iTLSs and PCZs (bin50 spots), n = 11 samples. j, k UMAP with slingshot pseudotime trajectory (j) and minimum spanning tree plot (k) shows the B-to-plasma cell fate transition, n = 11 samples, n = 21,682 cells. Each dot represents a cell, colored by pseudotime score (j) and spatial distribution (k). l Representative spatial quiver maps show the migrating paths of B/plasma cells in iTLS clusters (LUAD-P4, n = 233 cells; LUAD-P6, n = 535 cells). B/plasma cells are shown as dots colored by spatial cluster. Black vectors represent the migrating path; scale bar = 1 mm. FOVs are selected to present the B/plasma cells egress. N analyzed samples = 11. m Representative spatial single-cell plot shows the pseudotime scores of B/plasma cells in different niche of LUAD-P6 (n = 219 cells), scale bar = 1 mm. Each dot represents a cell, colored by niches. FOV shows the clone family 101 of the framed region at single-cell resolution. Each polygon represents a cell, colored by pseudotime score. N analyzed samples = 11. n Dot plot of LUAD-P6 top 10 clone families’ pseudotime scores in different niches. Source data are provided as a Source Data file.

We next reconstructed the molecular itinerary underpinning this relocation, aiming to elaborate on the spatiotemporal fate transition from B cells to plasma cells in LUAD. To this end, we analyzed B/plasma cells at cell bin resolution and their corresponding niches at 25 μm resolution (bin50 spots), linking cell fate transition to their spatial distribution (Fig. 4e). Firstly, we re-clustered bin 50 spots corresponding to iTLSs and PCZs across 11 LUAD specimens, as ~70% all B/plasma cells were concentrated within these two structures ( ~ 60% in PCZ, ~10% in iTLS, Supplementary Fig. 7a). Unsupervised secondary clustering subdivided these two structures into inner iTLS, outer iTLS, IgM+ PCZ, and IgG+ PCZ (Fig. 4f). IgM+ PCZ and IgG+ PCZ exhibited exclusive expression of IGHM and IGHG1/2/3/4, respectively (Fig. 4f, Supplementary Fig 7b). Inner iTLS and outer iTLS shared expression of MS4A1, while inner iTLS was surrounded by outer iTLS (Fig. 4f, g). As expected, inner iTLSs displayed higher human lymphocyte antigen (HLA) class I (HLA-A/B) and class II (HLA-DQB1/DPA1/DPB1) expression, indicative of active antigen presentation, whereas outer iTLSs exhibited elevated JCHAIN, signifying ongoing plasma-cell commitment (Fig. 4h and Supplementary Fig. 7c). This observation suggested distinct roles of inner iTLSs and outer iTLSs by harboring different activities in immune activation.

Next, we examined B/plasma cells residing in different niches (Fig. 4e). To assess their differentiation states, we plotted the expression of key marker genes PAX5, XBP1, IRF4, PRDM1, and JCHAIN, which represent sequential stages in B-to-plasma cell differentiation process49–54. We compared expression patterns of these markers in B/plasma cells located in iTLSs and PCZs. Interestingly, B/plasma cells in the inner iTLSs exhibited the highest expression of PAX5, suggesting an early stage of differentiation characteristic of centrocytes49,50 (Fig. 4i). B/plasma cells displayed a progressive transcriptional gradient of XBP1, IRF4, PRDM1, and JCHAIN extending from the inner iTLSs to the IgG+ PCZ, suggesting that B cells gradually acquired a terminally differentiated plasma cell phenotype during their migration from iTLS to PCZ51–54 (Fig. 4i). Using slingshot55, we further constructed a B/plasma cell-specific pseudotime using B/plasma cells from iTLS and PCZ and inferred a differentiating trajectory. As a result, cells residing in IgG+ PCZ and inner iTLS exhibited the highest or lowest pseudotime score, respectively (Supplementary Fig. 7d and Fig. 4j, bottom left). By setting the starting point at inner iTLS, we observed two divergent differentiating paths of B/plasma cells from inner iTLS towards IgM+ PCZ or IgG+ PCZ (Fig. 4j). Using Minimum Spanning Tree analysis56, we observed that MS4A1+ B/plasma cells in outer iTLS could further differentiate into IgM+ B/plasma cells or IgG+ B/plasma cells (Fig. 4k, Supplementary Fig. 7b), in line with the observation that both differentiating paths went through the outer iTLSs. To infer migratory directionality of B/plasma cells in iTLS, we calculated quiver fields57,58 based on the pseudotime of each B/plasma cell. Vector flow analysis revealed directional migration from the inner to the outer iTLSs (Fig. 4l), coinciding with elevated B/plasma cell pseudotime at the iTLS margins (Supplementary Fig. 7e). The outward migration of B/plasma cells likely impedes the formation of ectopic GC-like niches within the iTLSs. To further explore whether B-to-plasma cell differentiation is associated with intratumoral relocation, we plotted the top 10 expanded IgH clone families of LUAD P6. As expected, all top 10 IgH clone families exhibited higher pseudotime scores in IgG+ PCZ compared to other locations (Fig. 4m, n), suggesting a spatiotemporal link between B/plasma cell maturation and migration. Taken together, these data revealed that B-to-plasma cell differentiation is coupled with their intratumoral relocation. The emigration of B/plasma cells from iTLS may underlie the impaired formation of GC-like niches within these structures, implicating that terminal maturation of B/plasma cells occurs ectopically outside the iTLS.

Stereo-XCR-seq reveals PCZ as an ectopic GC-like niche for tumor-reactive lymphocyte priming in LUAD

SHM and CSR events are processes typically occurring in GCs, where antigen-specific B/plasma clones are selected to produce antibodies of distinct isotypes with diverse effector functions54,59,60. Though GCs were not found in iTLSs in all our tumor sections (Supplementary Fig. 3a–c), we observed distal disseminations of the later-staged plasma cells and the early-staged B cells from the same clone families (Figs. 3k and  4i). This observation indicated that B cells acquired the antibody-secreting capacity when maturing in the distinct niches. Using TradeSeq61, we obtained 47 pseudotime-associated genes (Fig. 5a). The top-ranked genes and their non-linear fitting curves indicated a strong association between terminal differentiation and IgG secretion (Fig. 5a, b). To uncover where and how B/plasma cells established antibody-secreting capacity stepwise in the GC-missing tumors, we first defined hypermutated B/plasma cells by IgH chain mutation percentage over 5% based on a per-nucleotide basis, referring to a recently published B cell study62 and class-switched B/plasma cells by containing multiple isoforms (Fig. 2h). Spatial plots of hypermutated B/plasma cells, CSR events, and spatial clusters exhibited co-localizations of SHM and CSR activity with PCZs, but not with iTLSs (Fig. 5c–e). The proportion of hypermutated B/plasma cells (Fig. 5f) and class-switched B/plasma cells (Fig. 5g) was both significantly higher in PCZs compared to iTLSs. In addition, we calculated the CSR events between each pair of isoforms and normalized them with cell counts in each tumor. Compared to iTLSs, PCZ exhibited increased normalized CSR frequencies predominantly featuring IgM-IgG and IgA-IgG transitions (Fig. 5h), as presented by spatial plots (Supplementary Fig. 8a) and box-strip plots (Supplementary Fig. 8b). Furthermore, the highest IGHG1/3/4 expression in PCZs over all other spatial clusters (Fig. 5i) suggested that CSR occurs primarily within PCZ to generate IgG-secreting plasma cells. Collectively, the co-occurrence of SHM and CSR implied that PCZ might play a role similar to canonical GCs, which should have occurred in the TLSs.

Fig. 5. Stereo-XCR-seq reveals PCZ as an ectopic GC-like niche for tumor-reactive lymphocyte priming in LUAD.

Fig. 5

a Dot plot of Wald’s test result between gene expression and pseudotime scores. b Multiple curve plots show the nonlinear quartic fitting of normalized unique molecular identifier (UMI) counts of each highlighted genes and pseudotime score in B/plasma cells. c, d Representative spatial KDE plots show the SHM and CSR activity densities in LUAD tumors (LUAD-P10, n = 13140 cells; LUAD-P7, n = 8724 cells, n analyzed samples = 11), scale bar = 1 mm. e Representative spatial plot shows the cells in PCZ and iTLS. FOVs are selected to show the distribution of PCZ and iTLS. Each dot represents a cell, colored by spatial clusters. N analyzed samples = 11, scale bar = 1 mm. f, g Paired Box-strip plot of SHM and CSR B/plasma cell proportion in iTLS and PCZ, n = 11 samples. Statistical analysis was performed using two-tailed paired Student’s t tests. Box-and-whisker plots display median, interquartile range and minimum to maximum values. *p < 0.05. h Heatmap shows the normalized CSR frequencies in iTLS and PCZ, n = 11 samples. i Dot plot shows the expression of the gene of interest in different spatial clusters (bin50 spots), n = 11 samples. j Dot and matrix plots show the mutation percentage and mean expression of T–B-cell interaction candidate molecules in different niches, n = 11 samples. k Paired box-strip plots show the comparison of T-cell infiltration in IgG+ and IgM+ PCZs, n = 11 samples. Statistical analysis was performed using two-tailed paired Student’s t tests. Box-and-whisker plots display median, interquartile range and minimum to maximum values. **p < 0.01. l Representative spatial plot (above) shows the cells in PCZ and iTLS (LUAD-P6, n = 2029 cells), n = 11 samples. FOVs are selected to show the distribution of IgG+ PCZ and IgM+ PCZ. Each dot represents a cell, colored by spatial clusters. Representative multiplexed immunofluorescence staining (below) using the adjacent tissue sections shows the CD20+, CD3E+ and CD138+ cells, respectively, n = 7 samples. FOVs are selected according to the spatial plots above to show the T cell infiltration in IgG+ PCZ, scale bar = 10 μm. m Paired box-strip plots show the comparison of T-cell infiltration in IgG+ and IgM+ PCZ, n = 7 samples. T cells were counted by mIF staining data using Image J (Version: 1.54p). Statistical analysis was performed using two-tailed paired Student’s t tests. Box-and-whisker plots display median, interquartile range and minimum to maximum values. ***p < 0.001. n–q Two-tailed Pearson’s correlation analysis of T-cell signature versus mean B/plasma cell pseudotime scores (n), CSR event counts (o), IgG secretion (p) and IgH mutation percentage (q). Each dot represents a PCZ, colored and sized by pseudotime scores (n, o) or CSR event counts (p, q), n = 11 samples. Pearson’s correlation coefficient (r) and p values are labeled in the figure. r Representative partial plot shows the whole slide distribution of T-cell clones present (upper panel, n = 1757 cells) or absent (lower panel, n = 45 cells) in IgG+ PCZ of the LUAD-P6 sample, scale bar = 1 mm. N analyzed samples = 11. s Grouped box-whisker plots show the clone sizes of present and absent T-cell clones in eight tumors with both present and absent clones. Statistical analysis using two-tailed Mann–Whitney U test (independent samples), analysis restricted to samples with clone size >1 in present or absent groups. Box-and-whisker plots display median, interquartile range and minimum to maximum values. Exact p value are provided in source data file. **p value < 0.01, ****p value < 0.0001. t Dot plot shows the expression of gene of interest in the ectopic light zones. u Graphic abstract shows the ectopic maturation of B/plasma cells in LUAD. Source data are provided as a Source Data file. Created in BioRender. Zhan, X. (2026) https:// BioRender.com/9bbcvwx.

In canonical GCs, B/plasma cells undergo SHM in dark zones (DZs) to generate mutation pools for clone selection and then migrate to light zones (LZs) for CSR alongside T-cell priming63. Since IgM+ PCZ and IgG+ PCZ exhibited exclusive expression of IGHM and IGHG genes (Fig. 4f, Supplementary Fig. 7b), we thus speculated that IgM+ PCZ and IgG+ PCZ might serve as the ectopic DZ-like and LZ-like structures with distinct clonal activities. First, we checked MKI67 (proliferation marker), ITGAX (dendritic cells, DC), LAMP3 (conventional DC3, cDC3)64,65, and CLEAC10A (conventional DC2, cDC2) expression of iTLSs and PCZs (Supplementary Fig. 8c, d). As expected, the expression of LAMP3 was highest in iTLSs41,61. IgM+ PCZs and IgG+ PCZs showed the lowest and highest expression of ITGAX and CLEC10A, respectively. The expression of MKI67 increased from inner iTLSs to IgG+ PCZs. The expression pattern of these genes by IgM+ PCZs and IgG+ PCZs phenotypically resembled the DZs and LZs in canonical GCs66–68. Next, we checked the IgH clone sharing of these two niches. Of note, IgM+ PCZ and IgG+ PCZ exhibited distinct IgH clone type numbers in different tumors (Supplementary Fig. 8e). LUAD_P1/P6/P11 had larger numbers of IgG+ PCZ IgH clone types, while other tumors showed larger numbers of IgM+ PCZ IgH clone types. We thus calculated the shared proportion using shared clone type numbers divided by IgM+ or IgG+ (the smaller one) PCZ-associated clone type numbers. As a result, IgM+ PCZ and IgG+ PCZ shared large proportions of clones (50 ~ 100%, Supplementary Fig. 8e), implicating that IgH clones in IgM+ PCZ and IgG+ PCZ might originate from the same B/plasma cell lineage precursors. By checking the expression of enzymes involved in SHM and CSR, we observed that IgM+ PCZ expressed the highest level of activation-induced cytidine deaminase (AICDA), an enzyme mediating SHM in DZs69,70, in line with the highest mutation frequencies in IgM+ PCZs (Fig. 5j). IgG+ PCZ expressed the highest level of uracil-DNA glycosylase (UNG) and apurinic/apyrimidinic endodeoxyribonuclease 1 (APEX1), enzymes mediating the CSR process in LZs71,72, as well as B-cell lymphoma 6 (BCL6) that marks class-switched B/plasma cells73(Fig. 5j). Furthermore, we examined the presence of T cells in PCZ. By quantifying T cells using the spatial transcriptome data, we observed a significantly higher proportion of T cells in IgG+ PCZ compared IgM+ PCZ (Fig. 5k). This result was further validated by the co-staining of CD3E/CD138. An abundant infiltration of T cells was observed in IgG+ PCZ but not in IgM+PCZ (Fig. 5l, m). The contrast T-cell proportions implicated a role played by T cells in IgG+PCZ, but not in IgM+PCZ. To explore this, we partitioned the PCZs using DBSCAN and obtained 113 spatially discrete PCZ clusters (Supplementary Fig. 8f). T cell signature genes in each PCZ cluster correlated with increased B/plasma cells pseudotime scores (p = 0.07, r = 0.516, Fig. 5n), CSR events (p = 0.04, r = 0.567, Fig. 5o), and IgG secretion (p = 0.005, r = 0.722, Fig. 5p), but not with the mutation accumulation of IgH chains (p = 0.17, Fig. 5q), suggesting a CSR-promoting role played by T cell in IgG+ PCZs but not in IgM+ PCZs. T cells are reported to participate in B-cell fate determination via secreting interleukins or through membrane ligand-receptor interaction74–76. We then plotted the potential molecular candidates expressed by T cells to mediate B/plasma cell effector function and differentiation. As shown by the matrix plot, IL6 was expressed in inner and outer iTLSs. Meanwhile, CD40LG was prominent in iTLSs and IgG+ PCZs (Supplementary Fig. 8g). These data imply that IL6 signals might be involved at a very early stage of intratumoral B-cell fate transition in iTLS. At the same time, sustained stimulation via CD40LG might drive the terminal differentiation of plasma cells in IgG+ PCZs.

Recent studies demonstrated the antigen-targeting cytotoxicity of germinal center-homing CD8+ T cells in certain infections77,78. We next investigated the tumor reactivity of the T-cell clones occurring in the IgG+ PCZ. According to the presence or absence of IgG+ PCZs, we stratified the TCRβ clones into present clones and absent clones. Notably, TCRβ clones present in IgG+ PCZs exhibited a pronounced aggregating pattern compared to those absent from these regions (Fig. 5r). To quantify this spatial clustering, we used Moran’s Index, a statistical measure of spatial autocorrelation based on Cartesian coordinate systems79. TCRβ clones located in the IgG+ PCZs showed significantly higher Moran’s Index values than IgG+ PCZ-absent clones, indicating enhanced spatial aggregation (Supplementary Fig. 8h). Antigen-driven clone expansion generates large populations of lymphocyte clones to mount antigen-targeting immune response80–82. Clone sizes, therefore, serve as a proxy for tumor reactivity. Compared to clones absent from IgG+ PCZ, those present in IgG+ PCZ consistently exhibited larger clone sizes across all 11 tumors (Fig. 5s), indicating robust clonal expansion. Furthermore, we analyzed the expression of effector function genes of these clones in the tumor region. In contrast, TILs of IgG+ PCZ-present TCRβ clones exhibited stronger killing effect and stemness represented by the expressions of tumor necrosis factor (TNF), T-cell factor 7 (TCF7), and Fas ligand (FASLG), and exhaustion markers (HAVCR2/PDCD1/TIGIT/LAG3) (Supplementary Fig. 8i). To assess the tumor reactivity of IgG+ PCZ-present and -absent clones, we applied two tumor reactivity-associated gene signature sets for scoring83,84. Clones present in the IgG+ PCZ consistently exhibited higher tumor-reactivity scores compared to their absent counterparts (Fig. 5t). Taken together, our data suggested that IgM+ PCZ are characterized by SHM, whereas IgG+ PCZ exhibit features of CSR and tumor-reactive T cell priming. These two spatial structures thus serve as ectopic DZ-like and LZ-like structures, respectively, collectively recapitulating the canonical GC reaction in the tumor (Fig. 5u).

Stereo-XCR-seq profiles exclusion of ectopic GC-like niches by terminally differentiated cancer-associated fibroblasts

Given the role of ectopic GC-like niches in priming tumor-reactive lymphocytes, we next investigated the factors potentially associated with B/plasma clone sizes and the clinical impact of IgG+ PCZs. Firstly, we quantified the top IgH clone sizes within each bin50 spot (Fig. 6a). As expected, >95% of non-expanded regions resided in tumors, whereas iTLS and PCZ harbored markedly larger clones (Fig. 6b). Interestingly, we observed that the IGHM expression concentrated in the regions with a clone size of two and three, while the expression of IGHG1/3/4 concentrated in the regions with a clone size over four (Fig. 6c). Consistently, bin50 spots with larger clone sizes exhibited co-localization with IgG+ PCZ, implicating an association between intensive B/plasma cells clonal expansion and IgG+ PCZ formation (Fig. 6d, e). Furthermore, we integrated PCZ, iTLS, myeloid cell region, and immune-excluded stroma into a single “stromal” meta-cluster and categorized these stromal spots into non-expanded regions (clone size <2) and expanded regions (clone size ≥2, Fig. 6a). The distinct spatial distributions of non-expanded and expanded stromal regions in the tumor (Fig. 6f) suggested that these two microenvironments possess differing characteristics. To explore which cells might be possibly involved in the B/plasma cell fate transitions, we further subdivided the major cell types into 40 clusters (Supplementary Fig. 9a). In addition to B cells, endothelial cells and plasma cells, we obtained 4 epithelial cell subclusters, 12 fibroblast cell subclusters, 7 myeloid cell subclusters and 14 T cell subclusters (Supplementary Fig. 9a and Fig. 6g). Pairwise cell-cell co-localization analysis showed that B cells co-localized with most T-cell subclusters (Fig. 6g). In contrast, plasma cells co-localized with CXCL13+ CD8 T cells, macrophages, and INHBA+ fibroblasts (Fig. 6g), which was further enhanced by the observations in all 11 patients (Fig. 6h). In addition, these three cell types exhibited increasing proportions in iTLS, PCZ, immune-excluded stroma and myeloid cell region (Supplementary Fig. 9b). In comparison to IgM+ PCZ, IgG+ PCZ exhibited higher proportions of these three cell types, indicating the associations towards the clone expansion of B/plasma cell (Supplementary Fig. 9c). Coinciding with the enrichment of tumor-reactive T cells in the ectopic LZ-like structures (Fig. 5k–t), we observed an enrichment of CXCL13+ CD8 T cells in the expanded stroma (Fig. 6i, left). In contrast, INHBA+ fibroblast and macrophage co-localized in non-expanded stroma (Fig. 6i, right), which was further validated by CD86 (macrophage intuitive marker) and PDGFRA (fibroblast intuitive marker) co-staining (Supplementary Fig. 9d). Consistent with previous studies showing that stromal cells and macrophages can orchestrate immune-suppressive milieus85–89, our observation indicated a potential linkage between the co-occurrence of macrophage-INHBA+ fibroblast and the exclusion of B/plasma cell clonal expansion.

Fig. 6. Stereo-XCR-seq profiles exclusion of ectopic GC-like niches by terminally differentiated cancer-associated fibroblasts.

Fig. 6

a Graph shows the definition of non-expanded stroma and expanded stroma. Created in BioRender. Zhan, X. (2026) https:// BioRender.com/9bbcvwx. b Representative stacked bar chart of LUAD-P1 shows the frequencies of spatial spots with indicated clone sizes in different clusters, n = 11 samples. Bars are colored by spatial clusters as indicated above. c Dot plot shows the expression of the gene of interest in stroma spots at different clone sizes. Dots are colored by mean expression and sized by expression fraction. d Representative spatial plot of LUAD-P1 shows clone sizes of each stromal spots, n = 4896 cells, n = 11 samples analyzed, scale bar = 1 mm. Each dot represents a bin50 spot, colored and sized by clone sizes. e Representative spatial KDE plot of LUAD-P1 (n = 12,131 cells) shows the distributive density of IgG+ PCZ, n = 11 samples, scale bar = 1 mm. f Representative spatial KDE plot of LUAD-P1 shows the distributive density of non-expanded stroma (left, n = 4323 cells) and expanded stroma (right, n = 573 cells), n = 11 sample analyzed, scale bar = 1 mm. g Heatmap (left below) and dot plot (upper right) show the cell co-occurrence and marker gene expression. Dots are colored by mean expression and sized by expression fraction, n = 11 samples. h Heatmap showing the co-occurrence of plasma cells with other cell types across n = 11 samples. i Spatial plot shows the distribution of the cells of non-expanded stroma (left, n = 34,925 cells) and expanded stroma (right, n = 8946 cells), scale bar = 1 mm. Each polygon represents a cell, colored by cell subclusters. Representative FOVs in expanded stroma and non-expanded stroma are selected to present the co-localization of different cell clusters. N analyzed samples = 3 (LUAD-P1/P4/P11, with over 0.1% expanding stroma spots). j Dot plot showing the log10 fold change of the genes upregulated in expanded stroma spots. N analyzed samples = 3 (LUAD-P1/P4/P11, with over 0.1% expanding stroma spots). Genes are ranked by log10 fold changes. Each dot represents a gene; two-tailed unpaired Student’s t tests were used. No adjustments for multiple comparisons were applied. Genes of interest are listed above the plot, ****p < 0.0001. k Heatmap shows the expression of the gene of interest in stroma spots at different clone sizes. N analyzed samples = 3 (LUAD-P1/P4/P11, with over 0.1% expanding stroma spots). Each line represents a bin50 spot, ranked by clone size and colored by mean expression. l Survival test of LUAD patients (n = 478 samples) using IGHG1/3/4 and eight non-expanded stroma-related genes as a signature. Kaplan–Meier survival test, hazard ratio (HR) and significance tests (p value, p(HR)-values) are labeled. m Dot plot shows the expression of the gene of interest by fibroblasts, B/plasma cells and macrophages in scRNA-seq dataset (GSE207422)102, n = 15 samples. Dots are colored by mean expression and sized by expression fraction. Source data are provided as a Source Data file.

Next, we compared the gene expression profile between non-expanded stroma and expanded stroma to dissect the stromal programs opposing ectopic GC-like niche formation. Genes upregulated in the non-expanded stromal regions associated with fibroblast activation (CCL18)90, collagen production (COL10A1, COL5A1, COL12A1)91–93, ECM remodeling (MMP14, MMP11)94,95, and suppressive microenvironment establishment (IHNBA, TGFBI)96,97 (Fig. 6j). In addition to the co-expressing pattern of these genes in the non-expanded region (Fig. 6f, i), these genes exhibited a declining trend alongside the increased IgH clone sizes (Fig. 6k), revealing mutually exclusive localization of IgG+ PCZs and ECM-remodeling stroma. We then sought to identify the primary cellular sources of these genes. scRNA-seq data attributed these non-expanded stromal genes to INHBA+ fibroblasts and macrophage (Supplementary Fig. 10a), suggesting an ECM-promoting role of these two cell types in shaping the IgG+ PCZ-excluding microenvironment. In addition to the higher production of TGFBI and CCL18 by the macrophage in the non-expanded stroma, fibroblasts in the non-expanded stroma also exhibited a higher expression of ECM-related genes over their counterparts in expanded stroma or other spatial clusters (Supplementary Fig. 10b, c). Because macrophages could activate fibroblasts through CCL1890, we constructed a diffusion pseudotime to infer the fibroblast fate transition in the LUAD context98. By setting starting point at CD34+ fibroblast, which exhibited distinct stemness among all fibroblast subsets99 (Supplementary Fig. 10d), we observed two terminally differentiated status of the intratumoral fibroblasts (Supplementary Fig. 10e). In addition, two potential fate transition paths constructed by PAGA pointed at the expanded regions (path1) and the non-expanded regions (path2), respectively (Supplementary Fig. 10f), coinciding with the advanced pseudotime of the fibroblasts in the non-expanded regions (Supplementary Fig. 10g). Given the terminally differentiated fibroblasts from the non-expanded regions upregulated genes related to ECM remodeling (Fig. 6j, k), we ran gene ontology (GO) term analysis using genes significantly upregulated (p < 0.05) in non-expanded regions and expanded regions, respectively. In contrast to the upregulated BCR signaling in expanded regions, the non-expanded regions exhibited enhanced activities of collagen fibril organization and extracellular structure organization (Supplementary Fig. 10h). Together, these data implicate that TGFBI+macrophages might promote ECM organization via CCL18-mediated promoting fibroblast activation to exclude lymphocyte clone expansion.

Since IgG+ PCZ exhibited tumor-reactive clone selection and expansion, we investigated the clinical impact of IgG+ PCZ formation. We calculated IgG+ PCZ signature scores (Z-scoring IGHG1/3/4) and IgG+ PCZ-excluding signature scores (Z-scoring genes upregulated in the non-expanded stroma, highlighted in Fig. 6h) using the bulk RNA-seq expression matrix of the 478 LUAD tumors from the TCGA database100,101. By integrating the survival information, we observed that patients with higher IgG+ PCZ scores exhibited improved overall survival (Fig. 6l, left), whereas patients with higher IgG+ PCZ-excluding scores exhibited poorer overall survival (Fig. 6m, right), highlighting the prognostic relevance of IgG+ PCZ formation in LUAD patients. Furthermore, we examined gene expression profiles of 1122 fibroblasts, 18,501 macrophages, and 3661 B/plasma cells from an ICB-treated LUAD scRNA-seq dataset (GSE207422, 15 patients)102. Expression of MMP11, MMP14 and COL12A1 by fibroblast and TGFBI by macrophage in pre-treatment tumors associated with marginal disease regression (stable disease, SD), whereas expression of IGHG1/2/3/4 by B/plasma cells associated with improved response (partial response, PR, Fig. 6m). In an additional scRNA-seq dataset (GSE243013) from post-ICB treatment LUAD103, we also observed that ICB responders exhibited the highest clonal expansion of CXCL13+ CD8 T cells (Supplementary Fig. 10i, upper panel), whereas non‑responders were characterized by the highest clonal expansion of ANXA1+ CD4 memory T cells (Supplementary Fig. 10i, lower panel). This pattern well aligns with our observation that CXCL13+ CD8 T cells represented a major tumor‑reactive T‑cell subtype that co-localizes with IgG+ plasma cells in ectopic LZ-like structures. Collectively, our data suggested that the pre-existence of ECM-modulating macrophage and fibroblasts in LUAD may be prognostically unfavorable and correlating with reduced immunotherapy responsiveness and overall survival. In contrast, the formation of IgG+ PCZ is associated with the expansion of tumor-reactive clones, indicating a potentially improved response to ICB treatment.

Discussions

While single-cell analyses of TCR and BCR clonality and transcriptomics have advanced our understanding of inflammatory response, methods to apply this information in situ remain limited. Here, we developed Stereo-XCR-seq, which enables immune repertoire profiling at 500 nm resolution with key advancements. Stereo-XCR-seq achieves single-cell resolution and assigns CDR3 sequences to segmented cells, providing a precise definition of clonal expansion, and enabling the exploration of lymphocyte clonal activities in micro-lymphoid aggregates (radius <100 μm). To ensure unbiased T/BCR enrichment, we developed sscirPCR, which targets the constant region instead of the variable region, effectively overcoming the primer specificity limitations of previous methods. This strategy allows efficient retrieval of T/BCR reads from cDNA libraries of fresh samples and is also compatible with retrospective FFPE samples, though the transcriptomic data might have a lower resolution at the single-cell level than fresh frozen samples. Additionally, Stereo-XCR-seq uniquely integrates spatial transcriptomics with paired TCR and BCR chain recovery at single-cell resolution, allowing direct linkage between immune lineage differentiation and gene expression profiles. By incorporating a short-read sequencing strategy, Stereo-XCR-seq also enhances cost-efficiency and robustness, making high-throughput spatial immune repertoire analysis more scalable and accessible. Benchmarking against other spatial T/BCR sequencing platforms11–15 (Supplementary Fig. 11a), highlights several key advantages of Stereo-XCR-seq. Alongside BCR-MERFISH, it is one of only two platforms that achieve true single-cell resolution based on cell segmentation. While both Stereo-XCR-seq and Spatial VDJ provide clone information for both TCR and BCR, Stereo-XCR-seq additionally captures γδT cells. Moreover, both Stereo-XCR-seq and SPTCR-seq utilize constant region targeting to ensure unbiased XCR read recovery, but Stereo-XCR-seq remains the only platform compatible with FFPE-preserved tissue. In summary, Stereo-XCR-seq offers single-cell resolution, paired immune receptor chains, unbiased enrichment, FFPE compatibility, and high-fidelity, cost-efficient readouts in advancing the study of spatial immune repertoires in both clinical and research settings.

Although we improved TCR pairing rates from below 10% to approximately 50%104, the pairing efficiency of Stereo-XCR-seq is still lower than 5’end-based scTCR/BCR-seq105. To address this, we only analyzed IgH and TCRβ chains, a common strategy in immune repertoire studies106–108. Increasing sequencing throughput and fine-tuned filtering methods might further improve the pairing rate. Additionally, like other TCR or BCR analysis methods, Stereo-XCR-seq cannot determine the antigen-specificities of clones. Incorporating methods such as fluorochrome-conjugated peptide-MHC staining could help locate antigen-specific T cells and identify their TCRs, as the juxtaposition of antigen, MHC, and TCRs is essential for T-cell activation and clonal expansion109. Given extensive clinical studies demonstrating the potential of improving adoptive T-cell transfer therapy through antigen-targeting capabilities110–112, we aim to further develop our platform to advance studies on TCR-antigen specificity.

Sequencing-based and image-based spatial transcriptomics are two distinct parallel technologies to deliver similar and complementary measurements of gene expression in situ113. Sequencing-based technologies keep the intact mRNA through polyA hybridization and in situ reverse transcription, which is essential to read VDJ sequences. Because of this, recently published tools that retrieved XCR reads to study spatial immune repertoire, including this study, are all based on sequencing-based technologies13,15,20,114. Image-based spatial transcriptome at subcellular resolution relies on complementary hybridization and signal enhancement by either in situ multiplexed hybridization or rolling circle replication115–122. A recently disclosed image-based technology, BCR-MERFISH14 utilized probe hybridization to capture BCR information in situ, while this method cannot deliver information on either SHM or class switching, two important clonal activities of B cells to develop antigen-binding affinity and effector function. Of note, in situ sequencing exhibits potential application in diverse VDJ sequencing due to its untargeted nature, while this potential is restricted by the short-read length ranging from 5 to 30 bases113,119. Recent improvement by incorporating ex situ sequencing extends the read length to 76 bases in Expansion Sequencing115, still unmet for reading the VDJ region. In the near future, further elongation of the read length might substantiate the application of in situ sequencing in spatial immune repertoire investigations.

In the LUAD tumors analyzed in this study, Stereo-XCR-seq enables the identification of the iTLSs and their ectopic GC-like niches. SHM, CSR, and T-cell presence demarcate ectopic DZ-like structures (IgG+ PCZs) and ectopic LZ-like structures (IgM+ PCZs). In contrast to iTLSs, ectopic GC-like niches exhibit aggregation of terminally differentiated plasma cells and tumor-reactive T-cell clones. The appearance of ectopic GC-like niche, especially the ectopic LZ-like structure, thus indicates an enhanced anti-tumor immunity in LUAD tumors, highlighting the prognostic value in checking co-aggregation of T cells and IgG+ plasma cells before anti-PD1 treatment. Based on our findings, we also speculated that the formation of TLS, a common structure in immune disorders, might be driven by inflammatory chemokine-induced T/B cell aggregation, but not driven by antigens34,123. Instead, the establishment of GC-like niches in either orthotopic or ectopic forms might be driven by durable antigen-involved stimulation. In this regard, the ectopic GC-like niches could serve as the proxy for the generation of tumor-targeting lymphocytes, including both T cells and plasma cells. Hence, our data shed light on the identification of tumor-reactive clones in an antigen-independent manner, exhibiting clinical translational potential in developing a T cell-based immunotherapeutic strategy.

A limitation of this study is the uncertainty regarding whether the formation of IgG+ PCZ results from the migration of B/plasma cells from IgM+ PCZ, despite the notable overlap of IgH clones between these two regions. To address this, we propose two possible explanations for the formation of IgG+ PCZ. First, unswitched B/plasma cells from IgM+ PCZ and CXCL13+ T cells from elsewhere may co-migrate to a distinct niche and then become IgG+ PCZ. Second, B/plasma cells from outer iTLSs may migrate without a certain route, but along with the fibroblast. In this case, B/plasma cells may undergo SHM spontaneously and not proceed to CSR until encountering the tumor-reactive CXCL13+ T cells. Both scenarios could give rise to the landscape profiled in this study. Future in vivo lineage tracing of T/BCR and investigations on how the stromal elements interact with T/B lymphocytes of the IgG+ PCZ may provide solid evidence to distinguish between these possibilities. In addition, the SHM thresholding at 5% was adopted from a recently published intratumoral B cell study but not from the scBCR-seq using matched samples due to failure in library construction62. The SHM B/plasma cell proportion might be slightly biased due to a different reconstruction pipeline. Another limitation of this study is that the sample sizes and protein validation might not be enough to fully reflect the diversity of all kinds of lymphoid structures. Co-staining using a more comprehensive marker list on the adjacent tissue sections might contribute to a clearer interpretation and maturity of the lymphoid structures. Furthermore, the distinct microenvironments originating from different tissue natures might impact lymphoid structure formation. Thus, large-scale pan-cancer or pan-disease studies will be essential to expand the definition and stratification of lymphoid structures, thereby enhancing the understanding of how the tumor microenvironment promotes or excludes the tumor-reactive lymphocytes.

Like other sequencing-based spatial transcriptomics methods, Stereo-XCR-seq faces challenges in accurate cell annotation due to noise introduced by lateral signal diffusion, cell overlap along the Z axis, and limitations in cell segmentation accuracy. Additionally, low gene detection further constrains reliable cell-type identification. In this study, we observed that ~25 ~ 50% XCR signals were assigned to non-T/B cells, likely attributable to segmentation errors, annotation inaccuracies, or noise. To ensure biological relevance, we restricted our analysis to XCR reads confidently assigned to annotated T/B cells. In this regard, we expect improvements in signal containment, segmentation algorithms, and biochemical operational procedures to increase the usability of both transcriptomic and XCR reads. In addition, retrieving 5’ends V(D)J information on the 3’ends spatial transcriptomic platform requires intact RNA integrity. We noticed that around 20 ~ 40% V(D)J information in LUAD samples was not successfully recovered despite positive signals in the constant region, likely due to RNA degradation. Nonetheless, our work demonstrates the potential of Stereo-XCR-seq as a transformative tool to investigate ectopic aggregation and maturation of intratumoral lymphocytes, providing a framework for identifying tumor-reactive clones and categorizing lymphoid structures across tissues and diseases.

We envision that Stereo-XCR-seq holds strong potential for translational studies in immune-related diseases beyond cancers, particularly those involving abnormal lymphocyte expansion. Disease-associated lymphocyte expansions have been observed in atopic dermatitis124, rheumatoid arthritis125, and lupus nephritis126, underscoring a strong correlation between autoantigen targeting and disease progression. Although identifying autologous antigens remains challenging, Stereo-XCR-seq enables the identification of disease-associated T/BCR sequences, creating opportunities for paratope-targeting drug design. By narrowing down potential targets through the detection of aberrantly expressed antibodies, Stereo-XCR-seq can aid structure-based virtual screening in drug discovery. Furthermore, simulating antigen-binding affinity maturation, a natural structure-refinement process in B cells, may inspire advancements in molecular docking algorithms and scoring strategies, opening further avenues for structure-guided drug discovery.

Methods

Tissue collection and processing

The LUAD specimens were collected from West China Hospital of Sichuan University. Two human IBD biopsy samples were kindly provided by Zhejiang University School of Medicine. Other human specimens (PBC/BC/CRC/KC/GC) were kindly provided by Peking University People’s Hospital. All samples were collected from donors during either curative surgical resection or enteroscopic examination. The tissues were rinsed twice using precooled PBS and wiped using Kimwipe tissue, then immediately embedded in Tissue-Tec OCT (Sakura, 4583) on dry ice and stored at −80 °C. This study was done in accordance with the Declaration of Helsinki. The protocol was reviewed and approved by the Institutional Review Board of BGI Research (BGI-IRB24066, BGI-IRB24012), West China Hospital of Sichuan University (2016-98), Peking University (IRB00001052-24061) and Zhejiang University School of Medicine (IR2023396). The clinical information and specimens were collected with written informed consent from all donors. Sex/gender was not considered a biological variable in this study. The primary objectives were to establish the Stereo-XCR-seq methodology and to characterize the spatial organization of immature tertiary lymphoid structures (iTLS), which do not involve sex-specific biological hypotheses. Clinical samples were collected based on pathological availability rather than a sex-stratified design, and the sample size was insufficient to power sex-based comparisons.

Preparation and sequencing of Stereo-seq library

The fresh-frozen tumor tissues were then transferred on dry ice to BGI Research for RNA Integrity examination. Tissue sectioning was performed using Leica Cryostat (CM1950) at −20 °C. 10 ~ 15 slices (50 μm) were collected for RNA extraction and integrity examination, and the following 5-μm slice was sectioned for H&E staining to determine the morphology of the specimens. Tissues with RIN values over 4.0 and desired FOVs were proceeded to Stereo-seq. After quality control, the specimens were serially sectioned at a thickness of 5 μm (slice 1, 2, 3)−10 μm (slice 4)−5 μm (slice 5, 6, 7). Slice 3 was stained using H&E staining kit (Beyotime, C0105S) and scanned using Motic EasyScan System at ×10 objective lens. Slices 1, 2, 5, 6, 7 were preserved at −80 °C for further use. Slice 4 was flattened and attached to Stereo-seq chip, dried at 37 °C for 5 minutes, and then fixed in absolute methanol at −20 °C for 30 minutes. After fixation, the chip was processed for nucleus staining using Qubit™ ssDNA Assay Kit (ThermoFisher, Q10212). The chip was scanned using Motic EasyScan System at 10x lens to detect signal of ssDNA and washed with ×0.1 SSC solution before permeabilization. Tissue was then permeabilized for mRNA precipitation and probe capture at 37 °C for 24 minutes. In situ reverse transcription (45 °C, 2 hours) and tissue removal (55 °C,10 min) were performed in an incubator. After that, CID and UMI co-barcoded cDNA was released, collected, and amplified by PCR using FF-TSO primer (Supplementary data 2) for Stereo-seq library construction16. The amplified product was subjected to Stereo-XCR-seq enrichment. The Stereo-seq library was sequenced using MGI DNBSEQ-T7 according to the manufacturer’s protocol.

T and B cell receptors enrichment strategy from Stereo-seq library

For a fresh-frozen (FF) sample, to retrieve the TCR and BCR transcripts from the amplified Stereo-seq library, we added ligating elements (LEs) to the Stereo-seq library by nested PCR using 2X Platinum HiFi Hotstart ReadyMix (Gcatbio, LS-EZ-K-00009O). 20 ng purified dsDNA from the first round was input as the template and amplified using primers LE-F and LE-R (Supplementary data 2). The program of nested PCR was set as:

  1. Denaturation: 95 °C for 5 minutes for denaturation. Heat lid was set to 105 °C.

  2. Amplification: 98 °C for 20 seconds, 50 °C for 20 seconds, 72 °C for 3 minutes. Repeating for 15 cycles.

  3. Extension: 72 °C for 5 minutes.

All PCR products were purified using the 0.6x DNA clean Beads (VAHTSTM, N411-03) and quantified by QubitTM dsDNA Assay Kit (Thermo, Q32854), and saved as LE cDNA library.

For FF samples, 400 ng LE cDNA library was mixed with 20 μM FF-splint oligo1 (Supplementary data 2) to generate the sscirDNA. For formalin-fixed, paraffin-embedded (FFPE) samples, the stereo-seq cDNA was directly mixed with 20 μM FFPE-splint oligo1 (Supplementary Table 2) for circularization. The circularization procedure is as follows:

  1. Denaturation: 95 °C for 5 minutes. The heat lid was set to 105 °C.

  2. FF/FFPE-splint oligo1 mediated sscirDNA transformation: rapid cooling at −20 °C for 5 minutes.

  3. Ligation: Adding T4 DNA ligase and ligating buffer (Gcatbio, LS-EZ-E-00008O) according to the instructions. Incubating at 37 °C for 1 hour. The heat lid was set to 37 °C.

  4. ssDNA and double-stranded DNA (dsDNA) degradation: Adding exonuclease I and III (Gcatbio, LS-EZ-E-00010P, LS-EZ-E-00011P) and incubating at 37 °C for 30 minutes. The lid was set to 37 °C. The restriction-digestion reaction was terminated by adding 0.1 M EDTA (pH 8.0).

Next, the sscirDNA was purified using 1.5X PEG32 beads (BGI, L054) and input as the template and amplified using FF/FFPE T/BCR constant primers for XCR enrichment. The enrichment was achieved by two rounds of PCR. For the first round, 40 ng sscirDNA was input as the template and amplified using constant primer 1-F and constant primer 1-R at a concentration of 0.5 μM. For the second round, 20 ng purified dsDNA from the first round was input as the template and amplified using constant primer 2-F and constant primer 2-R at a concentration of 0.5 μM. Each T/BCR chain was processed respectively; each T/BCR gene requires individual enrichment using its specific constant primer 1 and constant primer 2(Supplementary data 2, Supplementary Table 2). The programs of two rounds of PCR were both set to:

  1. Denaturation: 95 °C for 5 minutes for denaturation. Heat lid was set to 105 °C.

  2. Amplification: 98 °C for 20 seconds, 50 °C for 20 seconds, 72 °C for 3 minutes. Repeating for 15 cycles.

  3. Extension: 72 °C for 5 minutes.

For FF samples, all gene PCR products were purified using the 0.6× DNA clean beads (VAHTSTM, N411-03), while for FFPE samples, 1× DNA clean beads (VAHTSTM, N411-03) were used. Quantified by QubitTM dsDNA Assay Kit (Thermo, Q32854).

Probe hybridization enrichment strategy from Stereo-seq FF library

We took 1000 ng of stereo-seq cDNA library and followed the instructions of MGIEasy Exome Capture V4 Probe Set (MGI, 1000007745) to do probe hybridization as follows:

  1. Pre-hybridization: Mixed stereo-seq cDNA with block buffer, 95 °C for 5 minutes for denaturation. The heat lid was set to 65 °C.

  2. Hybridization capture: Prepared a hybridization buffer following the protocol and added the TCR RNA probe (Supplementary Table 3) mixture into cDNA tube, mixed thoroughly and incubated at 65 °C for over 24 hours. Heat lid was set to 105 °C.

  3. Elution: Maintained the hybridization mixture at 65 °C, measured the remaining volume, and transferred it to the Dynabeads™ MyOne™ Streptavidin T1 beads (Thermo, 65601). After incubation at room temperature for 30 minutes, washed beads with Wash Buffer I and II (MGI, 1000007745) and resuspended in nuclease-free water.

  4. Probe elution PCR: Prepared RNaseH (NEB, M0297S) digestion system in the PCR tube containing the bead suspension, incubated at 37 °C for 20 min. Purified the eluted product using 0.8x DNA clean beads (VAHTSTM, N411-03), washing with 80% ethanol and resuspending in nuclease-free water.

  5. PCR amplification: Prepared PCR mix with the eluted product, 95 °C for 5 minutes for denaturation. 98 °C for 20 seconds, 58 °C for 20 seconds, 72 °C for 3 minutes and repeating for 18 cycles. Extension at 72 °C for 5 minutes. Purified the eluted product using 0.8x DNA clean beads (VAHTSTM, N411-03) and collected enriched cDNA products.

Multiplexed PCR enrichment strategy from Stereo-seq FF library

For enrichment strategies comparison, we synthesized multiplexed PCR primers targeting TRAV/TRBV genes. All forward primer sequences and primer dilution methods followed the sequences and methods originally reported by Liu et al., 202211.

To adapt to the library structure of stereo-seq cDNA libraries, we designed and synthesized a new SE1 reverse primer compatible with the Stereo-seq workflow. All primer sequences are available in Supplementary data 3. We took 20 ng of stereo-seq cDNA library as the template and amplified using TRAV/TRBV forward primer and SE1 reverse primer at a concentration of 0.8 μM. The programs of multiplexed PCR were both set to:

  1. Denaturation: 95 °C for 5 minutes for denaturation. Heat lid was set to 105 °C.

  2. Amplification: 96 °C for 20 seconds, 55 °C for 4 min, 72 °C for 2 minutes. Repeating for 18cycles.

  3. Extension: 72 °C for 5 minutes.

Then the PCR products were purified using the 0.8x DNA clean beads (VAHTSTM, N411-03) and eluted into TE buffer. Quantified by QubitTM dsDNA Assay Kit (Thermo, Q32854).

5’ RACE enrichment strategy from Stereo-seq FF library

For 5’RACE (rapid amplification of cDNA 5’ ends) enrichment, we used 20 ng of stereo-seq cDNA library as the template and performed amplification with the LE-F forward primer and TRAC/TRBC/IGK constant primer (identical to that used in sscirPCR, Supplementary data 2) at a concentration of 0.8 μM. The PCR programs were both set to:

  1. Denaturation: 95 °C for 5 minutes for denaturation. The heat lid was set to 105 °C.

  2. Amplification: 98 °C for 20 seconds, 65 °C for 20 seconds, 72 °C for 2 minutes. Repeating for 15cycles.

  3. Extension: 72 °C for 5 minutes.

Then the PCR products were purified using two-step size selection with 0.6× + 0.2× DNA clean beads, following the manufacturer’s instructions (VAHTSTM, N411-03) and eluted into TE buffer. Quantified by QubitTM dsDNA Assay Kit (Thermo, Q32854).

Long-read library construction and sequencing

The purified enrichment products by constant primer 2 PCR or probe hybridization were used as input into CycloneSEQ and Oxford Nanopore Technologies (ONT) library construction. Each T/BCR chain was proceeded respectively. The starting mass was 1000 ng for CycloneSEQ construction and 2000 ng for ONT PromethION 1D construction. We used CycloneSEQ library kit (H940-000001-00) and ONT Ligation sequencing DNA V14 (SQK-LSK114) to carry out end-repair and sequencing adapter ligation by following the commercialized instructions. The libraries were then sequenced using the CycloneSEQ G100 and ONT PromethION instruments.

Optional fragmentation pipelines for full V(D)J construction

The enriched T/BCR cDNA libraries were fragmented using a modified XCR-Tn5 transposase system, and the full V(D)J sequences were obtained after sequencing and assembly. The XCR-Tn5 transposase workflow includes adapter annealing and embedding, product fragmentation, and PCR amplification as follows.

Adapter annealing and embedding: Annealing buffer was prepared by combining 1 M Tris-HCl (pH 7.8, Beyotime, ST778), 0.5 M EDTA (pH 8.0, Beyotime, ST069), 5 M NaCl (Beyotime, ST348) and Nuclease-free water (TransGen Biotech, GI101-03) to final concentrations of 10 mM, 1 mM and 50 mM, respectively. XCR-Tn5-primerA and XCR-Tn5-primerC (Supplementary data 2) were separately diluted to 100 µM with annealing buffer, mixed as XCR-adapter. The programs of annealing were set to 95 °C for 2 minutes, 75 °C for 15 minutes, 60 °C for 10 minutes, 50 °C for 10 minutes, 40 °C for 10 minutes and 25 °C for 30 minutes. The rate of gradient cooling is controlled at 0.1 °C/s. The heat lid was set to 105 °C. The annealed XCR-adapter was mixed with transposase (Gcatbio, LS-EZ-E-00009P) and subjected to the embedding reaction at 25 °C for 1 hour. The heat lid was set to 30 °C. The products were saved as XCR-Tn5 transposase.

Product fragmentation: The enriched T/BCR cDNA libraries (20 ng) were fragmented using XCR-Tn5 transposase at 55 °C for 10 minutes. The heat lid was set to 75 °C. Fragmentation was quenched with 5×NT buffer (Gcatbio, 1000007876), for 5 minutes at room temperature.

PCR amplification: 20 μl fragmented products were amplified by PCR using the Tn5 sequencing adapter F and R primers (Supplementary data 2). The amplification program is set to 72 °C for 5 minutes, 95 °C for 5 minutes for denaturation. 98 °C for 20 seconds, 65 °C for 20 seconds, 72 °C for 30 seconds, and repeating for 15 cycles to amplification. 72 °C for 5 minutes to extension. All PCR products were purified using the 1× DNA clean Beads (VAHTSTM, N411-03), quantified by QubitTM dsDNA Assay Kit (Thermo, Q32854) and validated on Agilent Qsep100 standard cartridge (Bioptic, C105101).

Short read library construction and sequencing

FFPE samples have relatively short fragments and can be directly subjected to short read sequencing. For FF samples, sequencing without fragmentation can also be performed to obtain CDR3 information. The short-read library construction without fragmentation is carried out through PCR amplification using sequencing adapter primers. 50 ng enriched T/BCR cDNA libraries were input as the template and amplified using FF/FFPE sequencing adapter primers (Read1 and Read2, Supplementary data 2, Supplementary Table 2) at a concentration of 0.8 μM. The PCR program was set to:

  1. Denaturation: 95 °C for 5 minutes for denaturation. Heat lid was set to 105 °C.

  2. Amplification: 98 °C for 20 seconds, 65 °C for 20 seconds, 72 °C for 3 minutes. Repeating for 15 cycles.

  3. Extension: 72 °C for 5 minutes.

For FF samples, all gene PCR products were purified using 0.7× DNA clean beads (VAHTSTM, N411-03), while for FFPE samples, 1.2× DNA clean beads (VAHTSTM, N411-03) were used. Quantified by QubitTM dsDNA Assay Kit (Thermo, Q32854).

For each specimen, we generated T/BCR mix for each specimen using equal mass of the enrichment products of each chain. 100 ng T/BCR mix was used to generate DNB using DNBSEQ one-step make DNB kit (MGI,1000020563), supplemented with 20 μM FF/FFPE splint oligo2 (Supplementary data 2, Supplementary Table 2). The DNB was loaded onto the sequencing chip of PE150 sequencing kit (MGI,1000012555) and sequenced using MGI DNBSEQ-T7 instrument. The sequencing primers in the kits were displaced by FF/FFPE XCR sequencing primer 1, 2 and a multiple displacement amplification primer (Supplementary data 2, Supplementary Table 2).

Stereo-seq raw data analysis

Fastq files were generated using an MGI DNBSEQ-T7 sequencer. Stereo-seq CID and MID are contained in read 2 (CID: 1–25 bp, MID: 26–35 bp), while read 1 consists of the cDNA sequences. The complete processing of Stereo-seq raw data was previously described and is now packaged as integrative pipelines on the DCScloud platform (https://cloud.stomics.tech/#/login). We used Stereo-seq Analysis Workflow V8 to run Stereo-seq data for all samples for workflow consistency.

Short-read XCR data analysis

Preprocessing and parallelization

Raw paired-end FASTQ reads (R1 and R2) were first split into 20 smaller, manageable chunks using seqkit split2 (v2.8.0) to facilitate parallel processing. The reverse complement of each R2 split was pre-generated using seqtk (v1.4).

Coordinate mapping and read pairing

For each Stereo-seq chip, we performed barcode-to-coordinate mapping in a parallel manner. The reverse-complemented R2 reads were mapped against the corresponding barcodeToPos.h5 file using ST_BarcodeMap (v0.0.1, https://github.com/STOmics/ST_BarcodeMap) with a mismatch tolerance of 1 (--mismatch 1). ReadIDs from successfully mapped R2 reads were listed to extract their corresponding R1 sequences, which contained the T/BCR information using seqtk-subseq.

VDJ alignment and clonotype assembly

The paired R1 files were processed with MiXCR (v4.6.0) for sequence analysis. Reads were aligned to the reference V, D, and J genes using the ‘align‘ command with parameters -p rna-seq, -OallowPartialAlignments=true, and -OvParameters.geneFeatureToAlign

=“VTranscriptWithout5UTRWithP”. Subsequently, clonotypes were assembled based on the CDR3 region using the assemble command with key parameters -OassemblingFeatures = ‘CDR3’, -OseparateByJ=true, and -OseparateByV=true. Final clone sequences and alignment details were generated using the exportClones and exportAlignments commands, respectively.

Long-read XCR data processing

The long-read XCR sequencing processing procedure has been described previously104. In this study, the long-read sequencing result is only used for benchmarking, not for XCR-meta construction.

XCR-metadata construction

We generated clonotype information in the form of metadata to facilitate subsequent analyses. To this end, we first extracted specific information of the CDR3 regions along with readID (the key regions on immune receptors directly responsible for antigen recognition) from the refPoints field of MiXCR as metadata, which marks the positions of important functional regions in sequences. Based on this information, we can determine whether a clonotype is functional or non-functional. Then we extracted coordinates generated by ST_BarcodeMap according to the CDR3+ readID and added the coordinates at bin1 resolution into the metadata. For each tissue section, we compiled all this information into a comprehensive table containing all TCR/BCR sequences identified in the FASTQ files, along with their detailed annotations and spatial location information.

Cell segmentation and manual check

Cell segmentation was performed using the BCDU-Net (Bi-directional ConvLSTM U-Net) deep learning architecture implemented in the CellBin2 pipeline (https://github.com/STOmics/cellbin2). The model inference was executed using the ONNX runtime. To process large-scale whole-slide images, we utilized a sliding window strategy with a tile size of 256 × 256 pixels and an overlap of 16 pixels to mitigate edge artifacts between adjacent tiles. Post-processing was applied to the model’s probability maps to generate the final binary masks. To ensure high specificity and remove potential background noise or debris, connected components with an area smaller than 15 pixels were filtered out (min_size = 15). The segmentation masks derived from the BCDU-Net model were used directly to define the single-cell boundaries for downstream gene assignment. Following the initial segmentation, the boundary of each identified cell was expanded by 10 pixels using a morphological dilation operation to ensure the capture of the complete cellular area.

Manual check: For quality control, the performance of the segmentation was manually assessed. We randomly selected ten FOVs from the spatial transcriptome without prior reference to the ssDNA image and then located the same FOVs on the segmented ssDNA image of the target sample. The segmentation accuracy within these FOVs was then qualitatively assessed by manual inspection to confirm the effectiveness of the cell delineation.

XCR clone reads allocation

Based on the cell segmentation result file and XCR metadata file, we could allocate clonotype information to cells using coordinate data through polygon judgment. To filter noise from potential sequencing errors or PCR errors, we set up a step-by-step filtering strategy. First, we conducted voting selection to retain the clones supported by most reads within each CID. For different clonotypes from the same chain detected in a single cell, we designated the clonotype with the highest abundance in the cell as the clone of that cell. To avoid spurious interpretation and ensure the biological validity of the downstream clonotype studies, we only retained the XCR reads allocated to T or B/plasma cells. The XCR reads allocated to non-T or non-B cells were filtered out as noise.

Spatial plot visualization

Spatial KDE plot

To visualize the overall spatial distribution and local enrichment of signals across tissue sections, we generated two-dimensional kernel density estimate (KDE) maps. Cells/spots with valid spatial coordinates were included, and when appropriate, observations were weighted by their signal intensity so that higher-signal points contributed more to the estimated density surface. Bandwidth was selected using standard rule-of-thumb approaches and could be further adjusted to balance smoothing with preservation of local spatial structure. The kernel support could be truncated to limit the influence of distant observations. The resulting density surface was visualized as contour lines (filled or unfilled), optionally overlaid with tissue outlines or relevant spots to provide spatial context.

Tissue outline calculation

The physical tissue outline was reconstructed from 25 μm binned spatial coordinates. Original (x, y) positions were rounded to the nearest bin center and cast onto a binary occupancy image of dimensions (max(Y) + 1, max(X) + 1), assigning a value of 255 to pixels containing ≥1 cell and 0 otherwise. Canny (CV2 v4.8.0) edge detection was applied to this binary mask to extract the outermost tissue contour. Detected edge pixels were subsequently re-mapped to micron-scale coordinates and exported as a polygonal boundary file for downstream spatial analyses.

Cellbin polygon plot

High-resolution cell segmentation masks were converted into polygonal vertices and smoothed with a periodic cubic spline (smoothness = 0.5) to eliminate imaging artefacts while retaining biologically relevant morphology. Polygons comprising fewer than three vertices were discarded. The resulting paths were rendered as 0.1-pt white outlines with zero fill using Matplotlib (v3.7.1) PathPatch objects and aggregated into a PatchCollection for GPU-accelerated display.

SHM calculation, clone family definition and lineage tree construction

SHM calculation

Firstly, pairwise nucleotide distances between full-length IgH heavy-chain sequences were computed using distToNearest with length-normalized Hamming distances to account for junction-length variability. Next, the bimodal distance-to-nearest distribution was interrogated with findThreshold to obtain an empirical cut-off separating bona fide clonal relatives from singletons. DefineClones.py (SHazaM v1.2.0)127 was then executed with this threshold to assign each cell a unique clone_family_id. Next, clone annotations were mapped onto the spatial transcriptome by linking clone_family_id to corresponding cellIDs. Cells lacking clone assignments were excluded. For each clone family comprising >1 distinct IgH CDR3α amino-acid sequence, Euclidean distances between constituent cells were calculated. Cells with mutated per cent over 5% were defined as hypermutating clones (shm = yes); the high SHM thresholding was selected to refer to a recently published paper62. All others were designated non-aggregated (shm = no).

Clone family definition

IGH clonotypes were delineated using the DefineClones workflow. Pairwise nucleotide distances between full-length IgH sequences were first calculated with the distToNearest function, employing length-normalized Hamming distances to account for variable junction lengths. The resulting bimodal distance-to-nearest distribution was analyzed via findThreshold to determine the empirical cut-off maximizing the separation between clonally related cells and singletons. Cells were subsequently assigned to clone_family_id groups by executing DefineClones.py with this threshold.

Lineage tree construction

For each B-cell clone defined by junction similarity (see “Clonal grouping”), we inferred the corresponding lineage tree following the SHazaM framework. First, V-region sequences were stripped of insertions and deletions by retaining only nucleotide substitutions relative to the IMGT germline reference. The resulting alignment strings were parsed with custom R functions to generate the germline and somatically mutated V sequences for every cell.

A Change-O clone object was created with the R package alakazam (v1.3.0), including the following fields: sequence_id, germline_alignment, sequence_alignment, v_call, d_call, j_call, c_call (isotype), duplicate_count, and spatial barcode. Maximum-parsimony lineage trees were built with PHYLIP dnapars (v3.697) via the buildPhylipLineage wrapper; inferred ancestral sequences were retained.

The resulting Newick string was imported into igraph (v2.0.3) and converted into an outward-directed rooted tree with the germline sequence as root. Node depth (evolutionary distance to germline) was calculated by breadth-first search. Each node was colored by isotype—IGHM (light blue), IGHG (brown), IGHA (green), IGHD (yellow), germline (black) and inferred ancestors (gray). Vertex size was proportional to log-transformed duplicate counts clarity.

CSR definition and normalization

Constant-region expression values for nine immunoglobulin heavy-chain genes (IGHG1/2/3/4, IGHA1/2, IGHM, IGHD, IGHE) were extracted from the filtered gene-by-cell matrix stored in the Anndata object. CSR calls were defined as containing 2 or more isoforms within a cell. In addition, each isoform shall be ranked at the top 50% UMI counts compared to all other cells in this tissue section. Specifically, an isoform was considered to have a true expression signal in a cell only if its UMI counts in this cell exceeded the corresponding global percentile threshold (50%) of this isoform. The 50th percentile was determined by a gradient filtering strategy test to check how the CSR calls varied when setting different filtering parameters. Each cell was then assigned a CSR status: “NA” (no isotype detected), “no CSR” (exactly one isotype), or “CSR” ( ≥ 2 distinct isotypes). For CSR-positive cells, pairwise co-occurrence frequencies of all isotype combinations were tabulated into a symmetric contingency matrix. Matrices were generated independently for LA-PCZ (n = X cells) and LA-TLS (n = Y cells) sub-populations, row-normalized to the respective cell counts, and concatenated for comparative visualization.

Quiver map construction

Pseudotime assignment

Slingshot pseudotime values were computed on an independent object that contained diffusion-map reduced dimensions of iTLS or PCZ-positive B lineage cells. Pseudotime values were transferred to the spatial single-cell dataset, yielding a continuous variable (‘slingshot_pseudotime‘) for B/plasma cells located within iTLS and PCZ regions.

Velocity field computation

For every cell, we estimated a local velocity vector vi = (ui, vi) that represents the instantaneous spatial direction during differentiation.

Neighbor graph: a k-nearest-neighbor graph (k = 10) was built on the 2-D spatial coordinates using scikit-learn’s ‘NearestNeighbors‘.

Transition weights: edge weights wᵢⱼ were computed as the inverse Euclidean distance, row-normalized to obtain a sparse transition probability matrix T (CSR format).

Directional flux: for each neighbor of we calculated the signed probability pij=wij⋅⋅sign(pseudotimej−pseudotimei).. The velocity components were then

ui= ∑jpij⋅⋅(xj−xi)/dij 1
vi= ∑jpij⋅⋅(yj−yi)/dij 2

where dᵢⱼ is the Euclidean distance. Vectors were averaged over the neighborhood and scaled by 1/k for numerical stability.

Visualization

The velocity field was visualized as a white streamplot overlaying the tissue outline. Streamlines were seeded from every cell centroid (‘start_points = position‘) to ensure trajectories originate from observed cells rather than random grid points.

TLS and PCZ gene signature score calculation

TLS and PCZ gene-signature scores were computed in Scanpy (v1.9.8) using the gene list as follows: PCZ: IGKC, IGHG4, IGHG1 and IGLC1–7; TLS: TRBC1/2, TRAC, CD3E/D/G, MS4A1, CXCL13 and FDCSP. Log-normalized expression of each gene set was Z-scored using sc.tl.score_genes function, and the Z-scored signature scores were stored in adata.obs for downstream spatial analyses.

TLS counts using The Cancer Imaging Archive images

To eliminate selection bias from research background, a blinded independent researcher was instructed to download 100 LUAD H&E staining images from The Cancer Imaging Archive (TCIA). This researcher was not informed of the study’s research objectives or analytical endpoints. TLS were then annotated and counted under the instructions of a pathologist.

Trajectory inference and pseudotime-associated gene discovery

Spatial transcriptome data were imported into Seurat and converted to a SingleCellExperiment object. Slingshot (v2.14.0) was used to infer lineage trajectories, with “TLS_inner” designated as the root cluster. Pseudotime values for each cell and lineage were extracted for downstream analyses. Generalized additive models were fit to gene expression along pseudotime using tradeSeq (v1.20.0). For computational efficiency, analyses focused on the top 2000 variable genes (as determined by prior filtering), modeled with six knots and parallelized across 24 cores. The associationTest function was used to identify genes significantly associated with pseudotime (Wald test, adjusted p  <  0.05). Genes enriched in specific cell populations were identified by differential expression testing (Scanpy, v1.9.8, t test). Significant genes (log fold change > 0, adjusted p  <  0.05) from both tradeSeq and group comparison results were intersected for downstream biological analysis. All visualizations, including scatterplots of Wald statistics and annotation of representative genes, were performed in Python using matplotlib (v3.7.1) and seaborn (v0.13.2).

Getis-Ord Gi* SHM hotspot map

To identify spatial regions enriched for SHM B-cell clones, we filtered spatial single-cell transcriptomic data to retain IGH CDR3-positive B cells. Spatial coordinates for each cell were obtained from tissue metadata. For each cell, a K-nearest neighbors graph (k = 10) was constructed using Euclidean distance (scikit-learn v1.3.0). Local clonal similarity was then quantified by counting the number of neighboring cells whose IGH CDR3 amino acid sequence exhibited a Levenshtein distance of exactly 1 from the index cell—thus focusing on highly similar but not identical sequences, and specifically removing the influence of “perfect clonal” neighbors to better highlight SHM-driven micro-heterogeneity.

Spatial enrichment of such clonal similarity (hotspots) was quantified using the Getis-Ord Gi* statistic (libpysal v4.8.1, esda v2.5.1), generating cell-wise Z-scores for local SHM density. Cells with invalid coordinates or missing values were excluded from downstream visualization. Tissue outlines and cell locations were visualized as point-intensity maps using matplotlib (v3.7.1) and seaborn (v0.13.2), with hotspot Z-scores displayed by a perceptually uniform colormap to highlight spatial regions of SHM clonal enrichment.

iTLS clustering using density-based spatial clustering

To spatially delineate iTLS-like aggregations within the tumor microenvironment, we applied DBSCAN to the TLS or PCZ-cell coordinates after linear rescaling (final scale factor = 0.12) to balance local density and global connectivity. DBSCAN parameters were empirically set to ε = 30 μm (maximum neighbor distance) and min_samples = 100 (minimum cluster size), chosen to match expected iTLS diameters (50–200 μm) and to exclude sporadic cell distributions. Clusters with label −1 (noise) were discarded. Each resulting cluster was assigned an integer identifier (TLS or PCZ-cluster). The spatial barcode “DNB_x_y” was generated for every retained cell and used to propagate the cluster label into the global AnnData object. Finally, cluster identities were visualized on the spatial plot.

Definition of iTLS-associated IgH clone

iTLS-associated IgH clones were defined based on spatial localization and clonal identity. After iTLS clustering, an IgH clone was classified as iTLS-associated if its corresponding sequence was detected within the spatial boundary of a numbered iTLS. For example, if iTLS1 contained IgH clones 1, 3, and 5, these three clones were designated as iTLS1-associated clones. Afterwards, the global spatial distribution of each iTLS-associated clone was mapped across the entire tissue section (not restricted to the originating iTLS) to characterize their presence and abundance outside the iTLS microenvironment.

Immunofluorescence staining

Human fresh-frozen tissue sections were collected using Leica Cryostat (CM1950) at −20 °C, and 5 μm slices were fixed in 4% paraformaldehyde fix solution (Sangon, E672002-0500) for 30 minutes at room temperature. The tissues were blocked in 20% BSA (Sangon, A600332-0025) for 1 hour at room temperature. And then incubated with the primary antibody incubation solution, containing CD20/CD3/CD138/CD23/LAMP3/PDGFRA/CD86 in 2% BSA (Sangon, A600332-0025) and 5% Human TruStain FcX™ (BIOLEGEND, 422301) at 4 °C for 12 hours. Washed three times in PBS (Sangon, E607008-0500) after incubation. The secondary fluorescence antibody incubation solution was applied and incubated at room temperature for 1 hour, followed by 3× washes with PBS. SlowFade™ Diamond Antifade Mountant with DAPI (Thermo, S36968) was used as nuclear counterstain. The signal was examined by Motic EasyScan System at ×20 objective lens.

The antibodies for mIF staining are listed as follows:

Reagent and resource
antibodies Dilution resource identifier
Anti-CD20 rat mAb 1:100 Abcam ab279300
Anti-CD3 rabbit rAb 1:100 Gcatbio LS-PA-02008O
Anti-CD138 mouse mAb 1:100 Zhongshan Golden Bridge ZA-0584
Anti-CD23 mouse mAb 1:100 Gcatbio LS-PA-01070O
Anti-LAMP3 rabbit mAb 1:50 Thermo Fisher Scientific MA5-29386
Anti-PDGFRA rabbit mAb 1:50 Gcatbio LS-PA-01247O
Anti-CD86 mouse mAb 1:100 Thermo Fisher Scientific MA1-10293
YSFluor™ 488 Donkey Anti-Rat IgG (H + L) 1:100 Yeasen 34406ES60
AF555 Donkey Anti- Rabbit IgG (H + L) 1:200 Beyotime A0453
AF647 Goat Anti-Mouse Recombinant Antibody 1:100 Gcatbio LS-PA-03011P

For lymphocyte counts correlation analysis in Fig. 2c, we randomly selected 10 FOVs from the spatial transcriptome without prior reference to the ssDNA image and then located the same FOVs on the mIF staining image using the serial tissue sections. The cells in mIF staining image were counted by Image J (Version: 1.54p).

External data source, analysis and visualization

The external scRNA-seq publicly available data used in this study are available in the ArrayExpress and GEO databases under accession codes: E-MTAB-1352647, GSE243013103, GSE14807144,128. The raw count data of each dataset were normalized and log-transformed using default parameters in Scanpy software by strictly following the legacy workflow (https://scanpy.readthedocs.io/en/stable/tutorials/basics/). Original annotations in GSE243013 were adopted without modification. Specifically, scRNA-seq data of GSE148071 and E-MTAB-13526 were manually annotated since the annotation was not released. Genes used for single-cell annotation were presented in Supplementary Fig. 6a. Gene Expression Profiling Interactive Analysis 2 (GEPIA2) (http://gepia2.cancer-pku.cn/#index)129, an interactive web tool, was used for analyzing The Cancer Genome Atlas (TCGA)100,101 LUAD patient survival employing standard statistical methods or tools. The survival plots were obtained from the website directly.

Statistics and reproducibility

No statistical method was used to predetermine sample size. No data were excluded from the analyses. The experiments were not randomized. The Investigators were not blinded to allocation during experiments and outcome assessment. All box-and-whisker plots central line represents the median, box boundaries indicate the interquartile range (IQR, 25th–75th percentiles), and whiskers show minimum to maximum values. Each dot represents an independent experimental replicate. Source data are provided as a Source Data file. Statistical tests were selected based on data distribution and experimental design. Two-tailed paired Student’s t tests were used for paired comparisons, and two-tailed unpaired t tests for independent groups. If the Shapiro–Wilk test indicated non-normality (p < 0.05), two-tailed Wilcoxon signed-rank exact tests were used for paired non-parametric data, and two-tailed Mann–Whitney U tests for independent non-parametric data. Two-tailed Pearson correlation analysis was used to assess correlations. Exact P values were labeled in the figures. Differences were considered to be significant if p < 0.05, (*p < 0.05, **p < 0.01, ***p < 0.001, ****p < 0.0001). For the reproducibility of the results, all the experiments were independently repeated at least three times with similar results.

Declaration of generative Al and AI-assisted technologies in the writing process

During the preparation of this work, the authors used Kimi and Doubao in order to proofread the language. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the publication. To summarize the jargon and acronyms, we have organized Supplementary data 4 for reference and explained each of them one by one.

Reporting summary

Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.

Supplementary information

41467_2026_75405_MOESM2_ESM.pdf (175.1KB, pdf)

Description of Additional Supplementary Information

Supplementary Data (33.1KB, xlsx)
Reporting Summary (172.2KB, pdf)

Source data

Source Data (6.8MB, xlsx)

Acknowledgements

This work was also supported by State Key Laboratory of Genome and Multi-omics Technologies, BGI Research, Shenzhen; BGI Research Shenzhen/Hangzhou, and BGI Hangzhou CycloneSEQ Technology Co., Ltd. We thank China National GeneBank, BGI Research, Shenzhen for data storage, open use, and management.

Author contributions

Methodology development: Y.F., X.Z. (Xiaojuan Zhan) and M.H.; data analysis and coding: Y.Z., Z.L., Y.L. (Yi Liu), Y.Y. (Yixin Yan), H.Z., Y.D. (Yingqi Dong), F.Z. and X.L. (Xinxing Li); sample collection and preparation: Z.Z., S.D., Z.G. and F.K.C.; library construction: X.Z. (Xiaojuan Zhan), M.H., Y.G., X.C., H.Y. and R.M.; short reads sequencing: X.Z. (Xiaojuan Zhan), M.H., Y.G., and X.C.; long reads sequencing: Y.D. (Yuliang Dong), T.Z. and X.D.; pathological annotation: C.L. (Chengwu Liu), S.H., J.Y., Q.W., L.Z., H.W., Z.W., X.A. and H.S.; manuscript drafting: Y.F., J.Z., Z.Z., S.S., Y.Y. (Yin Yao), W.Z., H.T., X.X., C.L. (Chuanyu Liu), L.L., X.L. (Xin Liu), Y.H. and X.Z. (Xubin Zheng); review & editing: Y.F., Z.Z., and J.Z.; conceptualization and supervision: Y.F., J.Z., and Z.Z.

Peer review

Peer review information

Nature Communications thanks Samuel Morabito, who co-reviewed with Gerard Deuner-Cos, Luisa Solis Soto, who co-reviewed with Max Molina Ayala, and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. A peer review file is available.

Funding

Yu Feng discloses support for the research of this work from Shenzhen Medical Research Fund (Grant number A2503053), National Natural Science Foundation of China (Grant number 82541041) and Noncommunicable Chronic Diseases-National Science and Technology Major Project (Grant number 2024ZD0530600). Zexian Zeng discloses support for the research of this work from the National Natural Science Foundation of China (Grant number 92374116). Jingying Zhou discloses support for the research of this work from Theme-based Research Scheme - Project reference (Grant number T11-702/24-N). Chuanyu Liu discloses support for the research of this work from National Key R&D Program of China (Grant number 2025YFC3409300), the Shenzhen Proof-of-Concept Center of Digital Cytopathology, and Shenzhen Key Laboratory of Single-Cell Omics (Grant number ZDSYS20190902093613831). Senyi Deng discloses support for the research of this work from the National Key Research and Development Program of China grant (Grant number 2024YFF0507403). Other authors declare no relevant funding.

Data availability

The raw sequencing FASTQ files of the stereo-seq data could be accessed on Genome Sequence Archive (accession number: HRA013757, https://ngdc.cncb.ac.cn/gsa-human/browse/HRA013757, HRA009729, https://ngdc.cncb.ac.cn/gsa-human/browse/HRA009729, HRA018548, https://ngdc.cncb.ac.cn/gsa-human/browse/HRA018548). GSA data are available under controlled access to comply with the requirements of the institutional ethics committee and to protect participant privacy. The data are available to qualified researchers or students formally affiliated with academic institutions, hospitals, research institutes, or universities. Applicants may request access by submitting proof of institutional affiliation to the Data Access Committee (DAC) for review; once approved, access will be granted. The DAC will complete the review and notify applicants of the decision within 2–4 weeks of receiving the complete application materials. Upon approval, data access will be granted for a period of 3 years, after which applicants may reapply for continued access. The processed matrix of stereo-seq and stereo-XCR-seq was deposited on Gene Expression Omnibus (accession number: GSE328481, https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE328481) and OMIX (accession number: OMIX014896, https://ngdc.cncb.ac.cn/omix/). The external scRNA-seq publicly available data used in this study are available in the arrayexpress and GEO database through the following links: E-MTAB-1352647, GSE243013103, GSE14807144,128. The external patient survival publicly available data used in this study are available in the TCGA database through the following links: https://www.cancer.gov/ccg/research/genome-sequencing/tcga/studied-cancers100,101.

The remaining data are available within the Article, Supplementary Information or Source Data file. Source data are provided with this paper.

Code availability

The code used in this study is available on GitHub (https://github.com/fengyu9481/Stereo-XCR-seq-LUAD) and has been made citable via Zenodo (10.5281/zenodo.19601610)130. For any further inquiries about the use of the code or for data access, please send correspondence to fengyu@suat-sz.edu.cn, fengyuwhu@163.com.

The software and their versions used in this study are listed as follow:

Competing interests

The procedure and applications of Stereo-XCR-seq are covered in pending patents. Employees of BGI Research Shenzhen/Hangzhou have stock holdings in BGI. The 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: Xiaojuan Zhan, Mengye Huang, Yang Zhang, Zhong Liu.

Contributor Information

Jingying Zhou, Email: zhoujy@cuhk.edu.hk.

Zexian Zeng, Email: zexianzeng@pku.edu.cn.

Yu Feng, Email: fengyu@suat-sz.edu.cn, Email: fengyuwhu@163.com.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-026-75405-x.

References

  • 1.Tonegawa, S. Somatic generation of antibody diversity. Nature302, 575–581 (1983). [DOI] [PubMed] [Google Scholar]
  • 2.Jones, P. T., Dear, P. H., Foote, J., Neuberger, M. S. & Winter, G. Replacing the complementarity-determining regions in a human antibody with those from a mouse. Nature321, 522–525 (1986). [DOI] [PubMed] [Google Scholar]
  • 3.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 Res.71, 6391–6399 (2011). [DOI] [PubMed] [Google Scholar]
  • 4.Goc, J. et al. Dendritic cells in tumor-associated tertiary lymphoid structures signal a Th1 cytotoxic immune contexture and license the positive prognostic value of infiltrating CD8+ T cells. Cancer Res.74, 705–715 (2014). [DOI] [PubMed] [Google Scholar]
  • 5.Bergomas, F. et al. Tertiary intratumor lymphoid tissue in colo-rectal cancer. Cancers4, 1–10 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Coppola, D. et al. Unique ectopic lymph node-like structures present in human primary colorectal carcinoma are identified by immune gene array profiling. Am. J. Pathol.179, 37–45 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Simnica, D. & Kobold, S. Neoantigen T-cell receptor gene therapy in pancreatic cancer. N. Engl. J. Med.387, 573 (2022). [DOI] [PubMed] [Google Scholar]
  • 8.Mackensen, A. et al. Anti-CD19 CAR T cell therapy for refractory systemic lupus erythematosus. Nat. Med.28, 2124–2132 (2022). [DOI] [PubMed] [Google Scholar]
  • 9.Neelapu, S. S. et al. Axicabtagene ciloleucel CAR T-cell therapy in refractory large B-cell lymphoma. N. Engl. J. Med.377, 2531–2544 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Pannetier, C., Even, J. & Kourilsky, P. T-cell repertoire diversity and clonal expansions in normal and clinical samples. Immunol. Today16, 176–181 (1995). [DOI] [PubMed] [Google Scholar]
  • 11.Rodriques, S. G. et al. Slide-seq: a scalable technology for measuring genome-wide expression at high spatial resolution. Science363, 1463–1467 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Russell, A. J. C. et al. Slide-tags enables single-nucleus barcoding for multimodal spatial genomics. Nature625, 101–109 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Engblom, C. et al. Spatial transcriptomics of B cell and T cell receptors reveals lymphocyte clonal dynamics. Science382, eadf8486 (2023). [DOI] [PubMed] [Google Scholar]
  • 14.Yang, E. et al. In situ profiling of plasma cell clonality with image-based single-cell transcriptomics. bioRxiv10.1101/2025.05.09.653118 (2025). [Google Scholar]
  • 15.Benotmane, J. K. et al. High-sensitive spatially resolved T cell receptor sequencing with SPTCR-seq. Nat. Commun.14, 7432 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Chen, A. et al. Spatiotemporal transcriptomic atlas of mouse organogenesis using DNA nanoball-patterned arrays. Cell185, 1777–1792 e1721 (2022). [DOI] [PubMed] [Google Scholar]
  • 17.Oliveira, M. F. et al. High-definition spatial transcriptomic profiling of immune cell populations in colorectal cancer. Nat. Genet. 57, 1512–1523 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Wang, J. et al. Advances and applications in single-cell and spatial genomics. Sci. China Life Sci.68, 1226–1282 (2025). [DOI] [PubMed] [Google Scholar]
  • 19.Rapid amplification of 5’ complementary DNA ends (5’ RACE). Nat. Methods2, 629–630 (2005). [DOI] [PubMed]
  • 20.Liu, S. et al. Spatial maps of T cell receptors and transcriptomes reveal distinct immune niches and interactions in the adaptive immune response. Immunity55, 1940–1952 e1945 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Hviid, L. et al. High frequency of circulating gamma delta T cells with dominance of the v(delta)1 subset in a healthy population. Int. Immunol.12, 797–805 (2000). [DOI] [PubMed] [Google Scholar]
  • 22.De Rosa, S. C. et al. Ontogeny of gamma delta T cells in humans. J. Immunol.172, 1637–1645 (2004). [DOI] [PubMed] [Google Scholar]
  • 23.Meylan, M. et al. Tertiary lymphoid structures generate and propagate anti-tumor antibody-producing plasma cells in renal cell cancer. Immunity55, 527–541 e525 (2022). [DOI] [PubMed] [Google Scholar]
  • 24.Mukohara, F. et al. Somatic mutations in tumor-infiltrating lymphocytes impact on antitumor immunity. Proc. Natl. Acad. Sci. USA121, e2320189121 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Li, M. et al. CellBin: a highly accurate single-cell gene expression processing pipeline for high-resolution spatial transcriptomics. Preprint at bioRxiv10.1101/2023.02.28.530414 (2023).
  • 26.Jiang, S. et al. A temporal and spatial atlas of adaptive immune responses in the lymph node following viral infection. Proc. Natl. Acad. Sci. U.S.A.123, e2504742123 (2026). [DOI] [PMC free article] [PubMed]
  • 27.June, C. H., O’Connor, R. S., Kawalekar, O. U., Ghassemi, S. & Milone, M. C. CAR T cell immunotherapy for human cancer. Science359, 1361–1365 (2018). [DOI] [PubMed] [Google Scholar]
  • 28.He, J. et al. Defined tumor antigen-specific T cells potentiate personalized TCR-T cell therapy and prediction of immunotherapy response. Cell Res.32, 530–542 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Pae, J. et al. Transient silencing of hypermutation preserves B cell affinity during clonal bursting. Nature641, 486–494 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Chi, X., Li, Y. & Qiu, X. V(D)J recombination, somatic hypermutation and class switch recombination of immunoglobulins: mechanism and regulation. Immunology160, 233–247 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Teillaud, J. L., Houel, A., Panouillot, M., Riffard, C. & Dieu-Nosjean, M. C. Tertiary lymphoid structures in anticancer immunity. Nat. Rev. Cancer24, 629–646 (2024). [DOI] [PubMed] [Google Scholar]
  • 32.Trub, M. & Zippelius, A. Tertiary lymphoid structures as a predictive biomarker of response to cancer immunotherapies. Front. Immunol.12, 674565 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.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]
  • 34.Zhao, L. et al. Tertiary lymphoid structures in diseases: immune mechanisms and therapeutic advances. Signal Transduct. Target Ther.9, 225 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Vanhersecke, L. et al. Mature tertiary lymphoid structures predict immune checkpoint inhibitor efficacy in solid tumors independently of PD-L1 expression. Nat. Cancer2, 794–802 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Wang, Y. et al. Computerized tertiary lymphoid structures density on H&E-images is a prognostic biomarker in resectable lung adenocarcinoma. iScience26, 107635 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Liu, W. et al. An immune cell map of human lung adenocarcinoma development reveals an anti-tumoral role of the Tfh-dependent tertiary lymphoid structure. Cell Rep. Med.5, 101448 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Clark, K. et al. The Cancer Imaging Archive (TCIA): maintaining and operating a public information repository. J. Digit. Imaging26, 1045–1057 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Hellmann, M. D. et al. Nivolumab plus ipilimumab in advanced non-small-cell lung cancer. N. Engl. J. Med.381, 2020–2031 (2019). [DOI] [PubMed] [Google Scholar]
  • 40.Ready, N. et al. First-line nivolumab plus ipilimumab in advanced non-small-cell lung cancer (CheckMate 568): outcomes by programmed death ligand 1 and tumor mutational burden as biomarkers. J. Clin. Oncol.37, 992–1000 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Bao, X. et al. Mature tertiary lymphoid structures: important contributors to anti-tumor immune efficacy. Front. Immunol.15, 1413067 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Beccuti, M. & Calogero, R. A. Single-cell RNAseq clustering. Methods Mol. Biol.2584, 241–250 (2023). [DOI] [PubMed] [Google Scholar]
  • 43.Zeng, Z. et al. OmicVerse: a framework for bridging and deepening insights across bulk and single-cell sequencing. Nat. Commun.15, 5983 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Wu, F. et al. Single-cell profiling of tumor heterogeneity and the microenvironment in advanced non-small cell lung cancer. Nat. Commun.12, 2540 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Mages, S. et al. TACCO unifies annotation transfer and decomposition of cell identities for single-cell and spatial omics. Nat. Biotechnol.41, 1465–1473 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Tiesmeyer, S. et al. 2D, or not 2D? Investigating vertical signal integrity of tissue slices. Preprint at bioRxiv10.1101/2025.01.13.632601 (2025).
  • 47.De Zuani, M. et al. Single-cell and spatial transcriptomics analysis of non-small cell lung cancer. Nat. Commun.15, 4388 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Kondo, T. & Saito, Y. Single-pulsed SERS with density-based clustering analysis. J. Phys. Chem. A126, 1755–1760 (2022). [DOI] [PubMed] [Google Scholar]
  • 49.Gonda, H. et al. The balance between Pax5 and Id2 activities is the key to AID gene expression. J. Exp. Med.198, 1427–1437 (2003). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Cobaleda, C., Schebesta, A., Delogu, A. & Busslinger, M. Pax5: the guardian of B cell identity and function. Nat. Immunol.8, 463–470 (2007). [DOI] [PubMed] [Google Scholar]
  • 51.Reimold, A. M. et al. Plasma cell differentiation requires the transcription factor XBP-1. Nature412, 300–307 (2001). [DOI] [PubMed] [Google Scholar]
  • 52.Kallies, A. et al. Initiation of plasma-cell differentiation is independent of the transcription factor Blimp-1. Immunity26, 555–566 (2007). [DOI] [PubMed] [Google Scholar]
  • 53.Patil, N. S. et al. Intratumoral plasma cells predict outcomes to PD-L1 blockade in non-small cell lung cancer. Cancer Cell40, 289–300 e284 (2022). [DOI] [PubMed] [Google Scholar]
  • 54.Klein, U. & Dalla-Favera, R. Germinal centres: role in B-cell physiology and malignancy. Nat. Rev. Immunol.8, 22–33 (2008). [DOI] [PubMed] [Google Scholar]
  • 55.Street, K. et al. Slingshot: cell lineage and pseudotime inference for single-cell transcriptomics. BMC Genomics19, 477 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Tewarie, P., van Dellen, E., Hillebrand, A. & Stam, C. J. The minimum spanning tree: an unbiased method for brain network analysis. Neuroimage104, 177–188 (2015). [DOI] [PubMed] [Google Scholar]
  • 57.Zeng, C. et al. Pseudotemporal ordering of single cells reveals metabolic control of postnatal beta cell proliferation. Cell Metab.25, 1160–1175 e1111 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 58.Trapnell, C. et al. The dynamics and regulators of cell fate decisions are revealed by pseudotemporal ordering of single cells. Nat. Biotechnol.32, 381–386 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Vinuesa, C. G., Sanz, I. & Cook, M. C. Dysregulation of germinal centres in autoimmune disease. Nat. Rev. Immunol.9, 845–857 (2009). [DOI] [PubMed] [Google Scholar]
  • 60.Stavnezer, J., Guikema, J. E. & Schrader, C. E. Mechanism and regulation of class switch recombination. Annu. Rev. Immunol.26, 261–292 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Van den Berge, K. et al. Trajectory-based differential expression analysis for single-cell sequencing data. Nat. Commun.11, 1201 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Ma, J. et al. A blueprint for tumor-infiltrating B cells across human cancers. Science384, eadj4857 (2024). [DOI] [PubMed] [Google Scholar]
  • 63.Playoust, E., Remark, R., Vivier, E. & Milpied, P. Germinal center-dependent and -independent immune responses of tumor-infiltrating B cells in human cancers. Cell Mol. Immunol.20, 1040–1050 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.de Saint-Vis, B. et al. A novel lysosome-associated membrane glycoprotein, DC-LAMP, induced upon DC maturation, is transiently expressed in MHC class II compartment. Immunity9, 325–336 (1998). [DOI] [PubMed] [Google Scholar]
  • 65.Zhang, Q. et al. Landscape and dynamics of single immune cells in hepatocellular carcinoma. Cell179, 829–845 e820 (2019). [DOI] [PubMed] [Google Scholar]
  • 66.De Silva, N. S. & Klein, U. Dynamics of B cells in germinal centres. Nat. Rev. Immunol.15, 137–148 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Esparcia-Pinedo, L., Romero-Laorden, N. & Alfranca, A. Tertiary lymphoid structures and B lymphocytes: a promising therapeutic strategy to fight cancer. Front. Immunol.14, 1231315 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Song, W. et al. Development of Tbet- and CD11c-expressing B cells in a viral infection requires T follicular helper cells outside of germinal centers. Immunity55, 290–307 e295 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Feng, Y., Seija, N., Di Noia, J. M. & Martin, A. AID in antibody diversification: there and back again. Trends Immunol.41, 586–600 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Della Mina, E. et al. A novel heterozygous variant in AICDA impairs Ig class switching and somatic hypermutation in human b cells and is associated with autosomal dominant HIGM2 syndrome. J. Clin. Immunol.44, 66 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Begum, N. A. et al. Uracil DNA glycosylase activity is dispensable for immunoglobulin class switch. Science305, 1160–1163 (2004). [DOI] [PubMed] [Google Scholar]
  • 72.Guikema, J. E. et al. APE1- and APE2-dependent DNA breaks in immunoglobulin class switch recombination. J. Exp. Med.204, 3017–3026 (2007). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73.Lu, Z. et al. BCL6 breaks occur at different AID sequence motifs in Ig-BCL6 and non-Ig-BCL6 rearrangements. Blood121, 4551–4554 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 74.Holan, V. et al. Distinct cytokines balance the development of regulatory T cells and interleukin-10-producing regulatory B cells. Immunology141, 577–586 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Cui, C. et al. Neoantigen-driven B cell and CD4 T follicular helper cell collaboration promotes anti-tumor CD8 T cell responses. Cell184, 6101–6118 e6113 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 76.Abe, Y. et al. Distinct follicular T cell subsets regulate lymphoma progression and outcomes. Cancer Cell43, 1850–1865.e11 (2025). [DOI] [PubMed]
  • 77.Petrovas, C. et al. Follicular CD8 T cells accumulate in HIV infection and can kill infected cells in vitro via bispecific antibodies. Sci. Transl. Med.9, eaag2285 (2017). [DOI] [PMC free article] [PubMed]
  • 78.Leong, Y. A. et al. CXCR5(+) follicular cytotoxic T cells control viral infection in B cell follicles. Nat. Immunol.17, 1187–1196 (2016). [DOI] [PubMed] [Google Scholar]
  • 79.Chen, Y. Spatial autocorrelation equation based on Moran’s index. Sci. Rep.13, 19296 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Morgan, D. M. et al. Expansion of tumor-reactive CD8(+) T cell clonotypes occurs in the spleen in response to immune checkpoint blockade. Sci. Immunol.9, eadi3487 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Li, T. et al. Integrated single-cell transcriptome and TCR profiles of hepatocellular carcinoma highlight the convergence on interferon signaling during immunotherapy. J. Immunother. Cancer12, e010534 10.1136/jitc-2024-010534 (2024). [DOI] [PMC free article] [PubMed]
  • 82.Watson, R. A. et al. Immune checkpoint blockade sensitivity and progression-free survival associates with baseline CD8(+) T cell clone size and cytotoxicity. Sci. Immunol.6, eabj8825 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.Caushi, J. X. et al. Author correction: transcriptional programs of neoantigen-specific TIL in anti-PD-1-treated lung cancers. Nature598, E1 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.Hanada, K. I. et al. A phenotypic signature that identifies neoantigen-reactive T cells in fresh human lung cancers. Cancer Cell40, 479–493 e476 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85.Lee, C. J. et al. The dysadherin/MMP9 axis modifies the extracellular matrix to accelerate colorectal cancer progression. Nat. Commun.15, 10422 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 86.Yuan, Z. et al. Extracellular matrix remodeling in tumor progression and immune escape: from mechanisms to treatments. Mol Cancer22, 48 (2023). [DOI] [PMC free article] [PubMed]
  • 87.Feng, Y. et al. Spatially organized tumor-stroma boundary determines the efficacy of immunotherapy in colorectal cancer patients. Nat. Commun.15, 10259 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 88.Meizlish, M. L. et al. Mechanosensing regulates tissue repair program in macrophages. Sci. Adv.10, eadk6906 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Zheng, K. et al. Mechanisms and therapeutic strategies of macrophage polarization in intervertebral disc degeneration. JOR Spine8, e70065 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 90.Zeng, W. et al. CCL18 signaling from tumor-associated macrophages activates fibroblasts to adopt a chemoresistance-inducing phenotype. Oncogene42, 224–237 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Yi, Q. et al. Oncogenic mechanisms of COL10A1 in cancer and clinical challenges (review). Oncol. Rep.52, 162 (2024). [DOI] [PMC free article] [PubMed]
  • 92.Sun, M. et al. Collagen V is a dominant regulator of collagen fibrillogenesis: dysfunctional regulation of structure and function in a corneal-stroma-specific Col5a1-null mouse model. J. Cell Sci.124, 4096–4105 (2011). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 93.Gregory, C. A., Ma, J. & Lomeli, S. The coordinated activities of collagen VI and XII in maintenance of tissue structure, function and repair: evidence for a physical interaction. Front. Mol. Biosci.11, 1376091 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 94.Pach, E. et al. Extracellular matrix remodeling by fibroblast-MMP14 regulates melanoma growth. Int. J. Mol. Sci.22 (2021). [DOI] [PMC free article] [PubMed]
  • 95.Kang, S. U. et al. Matrix metalloproteinase 11 (MMP11) in macrophages promotes the migration of HER2-positive breast cancer cells and monocyte recruitment through CCL2-CCR2 signaling. Lab Invest.102, 376–390 (2022). [DOI] [PubMed] [Google Scholar]
  • 96.Hu, Y. et al. INHBA(+) cancer-associated fibroblasts generate an immunosuppressive tumor microenvironment in ovarian cancer. NPJ Precis. Oncol.8, 35 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 97.Lecker, L. S. M. et al. TGFBI production by macrophages contributes to an immunosuppressive microenvironment in ovarian cancer. Cancer Res.81, 5706–5719 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 98.Haghverdi, L., Buttner, M., Wolf, F. A., Buettner, F. & Theis, F. J. Diffusion pseudotime robustly reconstructs lineage branching. Nat. Methods13, 845–848 (2016). [DOI] [PubMed] [Google Scholar]
  • 99.Buechler, M. B. et al. Cross-tissue organization of the fibroblast lineage. Nature593, 575–579 (2021). [DOI] [PubMed] [Google Scholar]
  • 100.Cancer Genome Atlas Research. N. Comprehensive molecular profiling of lung adenocarcinoma. Nature511, 543–550 (2014). [DOI] [PMC free article] [PubMed]
  • 101.Campbell, J. D. et al. Distinct patterns of somatic genome alterations in lung adenocarcinomas and squamous cell carcinomas. Nat. Genet.48, 607–616 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Hu, J. et al. Tumor microenvironment remodeling after neoadjuvant immunotherapy in non-small cell lung cancer revealed by single-cell RNA sequencing. Genome Med.15, 14 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 103.Liu, Z. et al. A single-cell atlas reveals immune heterogeneity in anti-PD-1-treated non-small cell lung cancer. Cell188, 3081–3096 e3019 (2025). [DOI] [PubMed] [Google Scholar]
  • 104.Zhan, X. et al. Single cell resolved spatial immune repertoire unveils spatial heterogeneity of lymphoid aggregates in human immune disorders. bioRxivhttps://www.biorxiv.org/content/10.1101/2025.01.16.630222v1 (2025).
  • 105.Thomas, M. F. et al. Single-cell transcriptomic analyses reveal distinct immune cell contributions to epithelial barrier dysfunction in checkpoint inhibitor colitis. Nat. Med.30, 1349–1362 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 106.Irac, S. E., Soon, M. S. F., Borcherding, N. & Tuong, Z. K. Single-cell immune repertoire analysis. Nat. Methods21, 777–792 (2024). [DOI] [PubMed] [Google Scholar]
  • 107.Calis, J. J. & Rosenberg, B. R. Characterizing immune repertoires by high throughput sequencing: strategies and applications. Trends Immunol.35, 581–590 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 108.Robinson, W. H. Sequencing the functional antibody repertoire-diagnostic and therapeutic discovery. Nat. Rev. Rheumatol.11, 171–182 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 109.Lee, M. N. & Meyerson, M. Antigen identification for HLA class I- and HLA class II-restricted T cell receptors using cytokine-capturing antigen-presenting cells. Sci. Immunol.6, eabf4001 (2021). [DOI] [PMC free article] [PubMed]
  • 110.Leidner, R. et al. Neoantigen T-cell receptor gene therapy in pancreatic cancer. N. Engl. J. Med.386, 2112–2119 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 111.Foy, S. P. et al. Non-viral precision T cell receptor replacement for personalized cell therapy. Nature615, 687–696 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 112.Tran, E. et al. Immunogenicity of somatic mutations in human gastrointestinal cancers. Science350, 1387–1390 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 113.Tian, L., Chen, F. & Macosko, E. Z. The expanding vistas of spatial transcriptomics. Nat. Biotechnol.41, 773–782 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 114.Hudson, W. H. & Sudmeier, L. J. Localization of T cell clonotypes using the visium spatial transcriptomics platform. STAR Protoc.3, 101391 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 115.Alon, S. et al. Expansion sequencing: spatially precise in situ transcriptomics in intact biological systems. Science371, eaax2656 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 116.Codeluppi, S. et al. Spatial organization of the somatosensory cortex revealed by osmFISH. Nat. Methods15, 932–935 (2018). [DOI] [PubMed] [Google Scholar]
  • 117.Eng, C.-H. L. et al. Transcriptome-scale super-resolved imaging in tissues by RNA seqFISH+. Nature568, 235–239 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 118.Gyllborg, D. et al. Hybridization-based in situ sequencing (HybISS) for spatially resolved transcriptomics in human and mouse brain tissue. Nucleic Acids Res.48, e112–e112 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 119.Lee, J. H. et al. Fluorescent in situ sequencing (FISSEQ) of RNA for gene expression profiling in intact cells and tissues. Nat. Protoc.10, 442–458 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 120.Moffitt, J. R. et al. High-throughput single-cell gene-expression profiling with multiplexed error-robust fluorescence in situ hybridization. Proc. Natl. Acad. Sci.113, 11046–11051 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 121.Xia, C., Fan, J., Emanuel, G., Hao, J. & Zhuang, X. Spatial transcriptome profiling by MERFISH reveals subcellular RNA compartmentalization and cell cycle-dependent gene expression. Proc. Natl. Acad. Sci.116, 19490–19499 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 122.Chen, K., Boettiger, A., Moffitt, J., Wang, S. & Zhuang, X. Spatially resolved, highly multiplexed RNA profiling in single cells. Science348, aaa6090 (2015). [DOI] [PMC free article] [PubMed]
  • 123.Nayar, S. et al. Immunofibroblasts regulate LTalpha3 expression in tertiary lymphoid structures in a pathway dependent on ICOS/ICOSL interaction. Commun. Biol.5, 413 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 124.Czarnowicki, T. et al. Diverse activation and differentiation of multiple B-cell subsets in patients with atopic dermatitis but not in patients with psoriasis. J. Allergy Clin. Immunol.137, 118–129 e115 (2016). [DOI] [PubMed] [Google Scholar]
  • 125.Hardt, U. et al. Integrated single cell and spatial transcriptomics reveal autoreactive differentiated B cells in joints of early rheumatoid arthritis. Sci. Rep.12, 11876 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 126.Wang, S. et al. IL-21 drives expansion and plasma cell differentiation of autoreactive CD11c(hi)T-bet(+) B cells in SLE. Nat. Commun.9, 1758 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 127.Gupta, N. T. et al. Change-O: a toolkit for analyzing large-scale B cell immunoglobulin repertoire sequencing data. Bioinformatics31, 3356–3358 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 128.Fan, J. et al. Single-cell RNA sequencing reveals potential therapeutic targets in the tumor microenvironment of lung squamous cell carcinoma. Sci. Rep.15, 10374 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 129.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]
  • 130.Group, Y. F. S. fengyu9481/Stereo-XCR-seq-LUAD: code for nature submission. Zenodohttps://zenodo.org/records/19601610 (2026).

Associated Data

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

Supplementary Materials

41467_2026_75405_MOESM2_ESM.pdf (175.1KB, pdf)

Description of Additional Supplementary Information

Supplementary Data (33.1KB, xlsx)
Reporting Summary (172.2KB, pdf)
Source Data (6.8MB, xlsx)

Data Availability Statement

The raw sequencing FASTQ files of the stereo-seq data could be accessed on Genome Sequence Archive (accession number: HRA013757, https://ngdc.cncb.ac.cn/gsa-human/browse/HRA013757, HRA009729, https://ngdc.cncb.ac.cn/gsa-human/browse/HRA009729, HRA018548, https://ngdc.cncb.ac.cn/gsa-human/browse/HRA018548). GSA data are available under controlled access to comply with the requirements of the institutional ethics committee and to protect participant privacy. The data are available to qualified researchers or students formally affiliated with academic institutions, hospitals, research institutes, or universities. Applicants may request access by submitting proof of institutional affiliation to the Data Access Committee (DAC) for review; once approved, access will be granted. The DAC will complete the review and notify applicants of the decision within 2–4 weeks of receiving the complete application materials. Upon approval, data access will be granted for a period of 3 years, after which applicants may reapply for continued access. The processed matrix of stereo-seq and stereo-XCR-seq was deposited on Gene Expression Omnibus (accession number: GSE328481, https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE328481) and OMIX (accession number: OMIX014896, https://ngdc.cncb.ac.cn/omix/). The external scRNA-seq publicly available data used in this study are available in the arrayexpress and GEO database through the following links: E-MTAB-1352647, GSE243013103, GSE14807144,128. The external patient survival publicly available data used in this study are available in the TCGA database through the following links: https://www.cancer.gov/ccg/research/genome-sequencing/tcga/studied-cancers100,101.

The remaining data are available within the Article, Supplementary Information or Source Data file. Source data are provided with this paper.

The code used in this study is available on GitHub (https://github.com/fengyu9481/Stereo-XCR-seq-LUAD) and has been made citable via Zenodo (10.5281/zenodo.19601610)130. For any further inquiries about the use of the code or for data access, please send correspondence to fengyu@suat-sz.edu.cn, fengyuwhu@163.com.

The software and their versions used in this study are listed as follow:


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES