Skip to main content
Nature Communications logoLink to Nature Communications
. 2023 Sep 12;14:5618. doi: 10.1038/s41467-023-41437-w

SiGra: single-cell spatial elucidation through an image-augmented graph transformer

Ziyang Tang 1, Zuotian Li 2,3, Tieying Hou 4, Tonglin Zhang 5, Baijian Yang 1,, Jing Su 2,, Qianqian Song 6,7,
PMCID: PMC10497630  PMID: 37699885

Abstract

Recent advances in high-throughput molecular imaging have pushed spatial transcriptomics technologies to subcellular resolution, which surpasses the limitations of both single-cell RNA-seq and array-based spatial profiling. The multichannel immunohistochemistry images in such data provide rich information on the cell types, functions, and morphologies of cellular compartments. In this work, we developed a method, single-cell spatial elucidation through image-augmented Graph transformer (SiGra), to leverage such imaging information for revealing spatial domains and enhancing substantially sparse and noisy transcriptomics data. SiGra applies hybrid graph transformers over a single-cell spatial graph. SiGra outperforms state-of-the-art methods on both single-cell and spot-level spatial transcriptomics data from complex tissues. The inclusion of immunohistochemistry images improves the model performance by 37% (95% CI: 27–50%). SiGra improves the characterization of intratumor heterogeneity and intercellular communication and recovers the known microscopic anatomy. Overall, SiGra effectively integrates different spatial modality data to gain deep insights into spatial cellular ecosystems.

Subject terms: Data processing, Software, Computational models


Recent advances have pushed spatial transcriptomics to subcellular resolution. Here, the authors propose SiGra, a graph artificial intelligence model designed for high-throughput spatial molecular imaging.

Introduction

Recent advances in spatial molecular imaging have allowed for the examination of the spatial landscapes and transcriptional profiles of complex tissues at subcellular resolution13. The interrogation of the spatial locations and gene expression of individual cells within a tissue aid in understanding the spatial heterogeneity of cell-to-cell communication and cell interactions with the surrounding environment, which are crucial for understanding disease pathology. Current commercially available technologies for single-cell spatial profiling, such as the NanoString CosMx™ Spatial Molecular Imager (SMI)4 and the Vizgen MERSCOPE/MERFISH platforms5,6, are capable of accurately capturing the locations of targeted transcripts, cell locations, and cell boundaries, accompanied by multichannel immunohistochemistry (IHC) images. For example, NanoString CosMx™ is capable of simultaneously assaying up to 1000 genes4 and 100 k to 600 k cells per slide, dramatically exceeding current single-cell omics technologies. Therefore, emerging single-cell spatial transcriptomics (SCST) commercial platforms are revolutionizing current spatial biology research, promising to spatially and functionally reveal complex architectures within tissues and furthering our insights into the mechanisms underlying disease at unprecedented resolution79.

The emerging SCST multimodal data provide new opportunities for accurately identifying spatial domains, which is crucial for revealing and functionally annotating the cellular anatomy of complex tissues. Existing methods for deciphering spatial cell clusters, such as Seurat10 and the Louvain clustering-based Scanpy11 method, still rely on clustering methods for nonspatial single-cell RNA-seq data and only take gene expression data as input. Other methods have been developed to include spatial information to improve the identification of spatial regions. For example, stLearn12 leverages the gene expression of neighbouring spots and tissue image features to identify spatially distributed clusters. BayesSpace13 enables spatial clustering through a Bayesian statistical method with joint analyses of the gene expression matrix and spatial neighbourhood information. SpaGCN14 identifies spatial regions using a graph convolutional network, with the spatial graph constructed from gene expression and histology information. Although these methods show their capability in spatial clustering, the power of different modalities within single-molecule spatial imaging profiles has not been fully unleashed to achieve desirable performance.

In addition to domain recognition, the enhancement of spatial gene expression data also presents a significant challenge. Although great progress has been made in spatial technologies, major problems such as missing values, data sparsity, low coverage, and noise2,15 encountered in spatial transcriptomics profiles impede the effective testing and elucidation of biological insights. Meanwhile, multichannel spatial images in single-cell spatial data consist of high-resolution, high-content features detected in the tissue, such as cell types, functions, and morphologies of cellular compartments, as well as the spatial distributions of cells. Incorporating such imaging features into transcriptomics data processing will help address the challenges of missing values and data noise. Moreover, as the spatial relations between an individual cell and its neighbouring cells can be naturally represented with a spatial adjacency graph, graph-based artificial intelligence is promising for spatial data modelling. Notably, graph-based models enhanced with attention mechanisms16, such as the graph attention network (GAT) and graph convolutional transformer models17,18, have demonstrated remarkable advancements and yielded significantly improved outcomes.

In this study, we developed the SiGra method, i.e., single-cell spatial elucidation through an image-augmented graph transformer, to decipher spatial domains and enhance spatial signals simultaneously. SiGra can utilize multimodalities, including multichannel images of cells and their niches, address technological limitations and achieve augmented spatial profiles. SiGra accurately recovers missing information in spatial gene expression, uncovers cellular dynamics, and reveals the spatial architecture of cellular heterogeneity within tissues. Through extensive and quantitative benchmarking with existing methods on multiple datasets, including both single-cell level and spot-level spatial data generated by different platforms, SiGra demonstrates superior performance in terms of spatial domain identification, latent embedding, and data denoising. Overall, SiGra will contribute to uncovering the complex spatial architecture within heterogeneous tissues and facilitate the acquisition of biological insights. SiGra is open-source software and is available at https://github.com/QSong-github/SiGra, with detailed tutorials demonstrating its applications to different spatial transcriptomics platforms. The web interface of the SiGra Viewer (http://sigra.sulab.io) enables users to explore the enhanced data in uniform manifold approximation and projection (UMAP) figures and spatial domains.

Results

Overview of the SiGra method

The SiGra method includes (1) the graph representation of the original spatial transcriptomics data (Fig. 1a) and (2) the hybrid graph transformer model to elucidate the spatial patterns and enhance the raw gene expression data (Fig. 1b).

Fig. 1. Schematic overview of the SiGra method.

Fig. 1

a Graphical representation of the spatial transcriptomics profiles. Each cell on the constructed spatial graph is accompanied by its multichannel images and gene expression. b SiGra comprises three graph transformer encoder-decoders (imaging, transcriptomics, and hybrid) with an attention mechanism to incorporate the single-cell multimodal data for simultaneous data enhancement and spatial domain recognition.

Fig. 2. SiGra accurately identifies spatial domains in the single-cell spatial profiles of NanoString CosMx SMI.

Fig. 2

a Spatial regions of ground truth and those detected by different methods, including SiGra, BayesSpace, and Seurat. b Boxplot of the adjusted Rand index (ARI) scores of six methods in all 20 FOVs of lung cancer tissue. In the boxplot, the centreline, box limits and whiskers denote the median, upper and lower quartiles, and 1.5× interquartile range, respectively. Source data are provided as a Source Data file. c Spatial regions of two FOVs detected by different methods, including SiGra, BayesSpace, and Seurat.

The state-of-the-art SCST data consist of: (1) multichannel images of biomarkers for cell types (e.g., pancytokeratin or PanCK staining for tumour cells, CD3 for T cells, and CD45 for leucocytes) and cell compartments (e.g., DAPI staining for cell nuclei and CD298 staining for cell membranes). For each staining channel, a high-content greyscale image is assembled from a series of field-of-view (FOV) images; (2) the vendor-provided cell segmentation results such as the coordinates of cell centroids and the hull of cell boundaries; and (3) the cell-level summarization of gene expression according to the coordinates of each detected transcript and the cell boundary identified from cell segmentation.

In SiGra, the single-cell spatial graph is constructed based on the spatial centroids of detected cells, with each node representing a cell and each edge representing two neighbouring cells (Euclidian distance shorter than 14–16 μm). Each node/cell within the spatial graph is accompanied by multimodal data (images and gene expression) extracted from the original spatial profiles. Specifically, for each cell, an image of 21.6 μm by 21.6 μm centred at the cell centroid is cropped from each immunohistochemistry (IHC) image. For example, as NanoString CosMx data consist of five channels (DAPI, PanCK, CD45, CD3, and CD298), each cell is associated with five single-cell images. In this way, SiGra achieves the graphical representation of spatial profiles, i.e., the single-cell spatial graph with each located cell’s multichannel images and gene expression.

The SiGra model comprises three graph transformer-based encoder-decoders (imaging, transcriptomics, and hybrid) with an attention mechanism (Fig. 1b) to incorporate the single-cell multimodal data for simultaneous data enhancement and spatial domain recognition. Regarding the imaging encoder-decoder, with a cell i represented by node vi, an array of single-cell IHC images Mi is converted to a vector xi and projected to the latent space as zM,i through multihead graph transformer layers (Supplementary Fig. 1a, Methods). This latent imaging feature zM,i then is used to reconstruct the gene expression profile g^M,i of cell i. For the transcriptomics encoder-decoder, the same architecture is used for the latent representation (zg,i) and the reconstruction (g^g,i) of the original expression gi in cell i. For the hybrid encoder-decoder, the latent imaging features zM,i and the latent expression features zg,i are concatenated and projected as a hybrid feature zh,i, which is used to reconstruct the gene expression g^h,i of cell i. Imaging and gene expression features of neighbouring cells, represented as neighbour nodes vjNvi in the spatial graph, are also used as the input for graph transformers so that the spatial cellular information is aggregated into the model.

SiGra learns the reconstructed gene expression via a self-supervised loss that combines the mean square error (MSE) from gene embedding LM,i, image embedding Lg,i and combined embedding Lh,i, with the loss function L=i=1Nλ1LM,i+λ2Lg,i+Lh,i, where the hyperparameters λ1,λ20, and N is the total cell number. After training, SiGra outputs the hybrid reconstruction g^=g^h,i as the final enhanced expression profile. The latent representation, z=zh,i, of the original SCST data is used for spatial data clustering.

With the introduced multihead attention mechanism in graph transformer layers, SiGra adaptively updates the contributions of neighbouring cells {vj} to cell vi by aggregating and propagating the extracted image features and the gene expression features from neighbours, eventually updating the latent representation of cells and the final reconstructed gene expression profiles. Through evaluation and benchmarking with current available methods, SiGra demonstrates exceptional performance on multiple spatial transcriptomics datasets from different platforms, especially on single-cell spatial profiling. Moreover, the enhanced spatial transcriptomics data by SiGra facilitate insights into cellular communications and underlying biological discoveries.

SiGra accurately identifies spatial domains in the single-cell spatial profiles of NanoString CosMx SMI

To evaluate the performance of SiGra in deciphering spatial domains, we compare it with five state-of-the-art clustering methods developed specifically for spatial transcriptomics: Seurat v410, Scanpy11, stLearn12, SpaGCN14, and BayesSpace13. For comparisons, we use the SCST dataset of Lung-9-1 generated by NanoString CosMx SMI. This dataset consists of 20 FOVs from lung cancer tumour tissue4, with 982 genes and 83,621 cells that cover eight major cell types, including lymphocytes, neutrophils, mast cells, endothelial cells, fibroblasts, epithelial cells, myeloid cells, and tumours. Details of these experimental data are provided in the Data Availability section. The identified spatial clusters of each method are annotated based on the matched overlap of spatial clusters and ground truth manually annotated in the original study4.

As described in the Methods, cell types are first identified and then organized into spatial domains. With the spatially heterogeneous cell types identified by different methods, the spatial organization of the 20 FOVs is shown in Fig. 2a. Specifically, SiGra detects the spatial distributions of different cell types that agree well with the original study, i.e., ground truth, with an overall adjusted Rand index (ARI) of 0.55, which is higher than that of Seurat (ARI = 0.37) and BayesSpace (ARI = 0.23). Seurat and BayesSpace significantly mislabelled more cells than SiGra across the 20 FOVs. Meanwhile, the other two methods show much lower accuracy (ARIs: 0.25 for Scanpy, 0.22 for SpaGCN, and 0.34 for stLearn). Of note, the addition of multichannel images (ARI = 0.59) improves the performance by 47.5% compared with using gene expression only as input (median ARI = 0.40). These results demonstrate that multimodal spatial information contributes to the superior performance of SiGra.

Figure 2b shows the ARI scores of all 20 FOVs. Notably, SiGra is shown to identify the most accurate spatial clusters of different cell types (median ARI = 0.59). Its performance is especially better than that of stLearn (median ARI = 0.22) and Scanpy (mean ARI = 0.25). Compared with SpaGCN (mean ARI = 0.27), Seurat (median ARI = 0.38) and BayesSpace (mean ARI = 0.32), SiGra has relatively better performance with identified clusters more consistent with manual annotations. These comparison results demonstrate that SiGra improves the identification of spatial clusters compared with existing methods for single-cell spatial profiles.

The spatial clustering results are further scrutinized at the individual FOV level (Fig. 2c). Of note, SiGra shows consistency between its identified cellular identities and the ground truth, with the continuous tumour region infiltrated with scattered immune cell clusters. In contrast, BayesSpace and Seurat misidentify the cellular anatomies as either a mixture of fragmental cell regions (FOV-1) or as highly blended cell types (FOV-2). For FOV-1, BayesSpace misidentifies the neutrophil as lymphocytes; meanwhile, it incorrectly identifies some tumour cells as myeloid cells or neutrophils. Seurat fails to disentangle epithelial cells from tumour cells. In FOV-2, BayesSpace misidentifies fibroblasts as a mixture of myeloid cells and lymphocytes, while Seurat mixes neutrophils with tumour cells without clear dissection of spatial heterogeneity. These results indicate that the compared methods lack the capability of deciphering major spatial regions in SCST data.

The performance of the spatial domains identified by summarizing the detected spatially heterogeneous cell identities is shown in Supplementary Fig. 5. The tumour slice is pathologically annotated as the tumour region (green), the desmoplasia region (red), and the adjacent normal region (orange). SiGra achieves an ARI of 0.60, better than other methods, including BayesSpace (ARI = 0.25), SpaGCN (ARI = 0.10), Seurat (ARI = 0.10), stLearn (ARI = 0.10), and Scanpy (ARI = 0.17). These results show that SiGra identifies reliable spatial domains based on its accurately identified cell identities in SCST data.

SiGra enhances gene expression patterns that distinguish intratumoral spatial heterogeneity

SiGra enhances the spatial gene expression data and improves downstream analysis for unveiling biological relevance. Herein, we perform UMAP on raw data and enhanced data (Fig. 3a and Supplementary Fig. 1b). Apparently, the enhanced data reveal better data topology with different cell types better separated in the UMAP results. Moreover, the enhanced cell type-specific gene markers show prevalently consistent expression in their corresponding cell types (Fig. 3b). For example, the enhanced fibroblast marker gene DCN19 demonstrates uniform high expression in fibroblasts and low expression in other cell types. In contrast, in raw data, DCN presents sporadic expression in fibroblasts but is highly expressed in other nonfibroblasts. Thus, SiGra not only denoises false-positive expressions (e.g., DCN expression in nonfibroblasts) and extreme values but also imputes missing values (e.g., missing values of DCN expression in fibroblasts). Meanwhile, SiGra-enhanced data exhibit topological expression of cell type-specific markers (Fig. 3c). For example, after enhancement, CD6820 and MGP21 show elevated expression in myeloid- and endothelial cell-enriched regions, respectively. The tumour-specific genes EPCAM22, SOX423, and KRT724 show strong and uniform enrichment in tumour regions, while these genes are not captured in the raw data of some tumour cells (Fig. 3d). In addition, the enhanced SCST data are also more comparable to the bulk RNA-seq data than the raw SCST data (Supplementary Fig. 2a and Supplementary Note 1). These results demonstrate the capability of SiGra to improve gene expression data for better spatial cellular characterization.

Fig. 3. SiGra enhances gene expression patterns that distinguish intratumoral spatial heterogeneity.

Fig. 3

a UMAP visualizations of raw data and the enhanced data of the nontumor cell population. b Violin plots of the raw expression and the enhanced expression of marker genes in different cell populations (endothelial: 4272; epithelial: 3458; fibroblast: 13,368; lymphocyte: 11,664; mast: 287; M-cell: 7560; neutrophil: 5731; tumors: 37,281). c UMAP visualization of the raw expression and the enhanced expression of marker genes (CD68, MGP, DCN, KRT7). d Spatial visualization of the raw expression and the enhanced expression of tumour-related genes (EPCAM, KRT7, SOX4) in two FOVs. e Scatter plot of significantly associated ligand‒receptor (L-R) pairs in the raw data and the enhanced data. Orange- and yellow-coloured dots represent the shared and specific L-R pairs, respectively. Source data are provided as a Source Data file. f Network representation of the weighted adjacent cell types. The edge width represents the adjacency between two cell types. g Adjacent cell communications considering both neighbouring cell weights and L-R interaction strength.

To further prove that the data enhanced by SiGra are useful for downstream analysis, we collect a combined list of candidate ligand‒receptor (L-R) pairs from the International Union of Pharmacology (IUPHAR)25, Connectome26, FANTOM526, HPRD27, the Human Plasma Membrane Receptome (HPMR)28, and the Database of Ligand‒Receptor Partners (DLRP)29, which encompass 815 ligands, 780 receptors, and 3,398 reliable L-R interaction pairs. Among them, genes of 660 L-R pairs are included in this NanoString CosMx dataset. Across the 660 total L-R interactions, 55 L-R pairs of enhanced data and 42 L-R pairs of raw data were significantly associated (false discovery rate (FDR) < 0.05), with 28 L-R pairs shared between enhanced and raw data (Fig. 3e). Further interrogation indicated that those raw-specific L-R pairs were more likely to be false positives, which may result from the original data noise and the low data quality (Supplementary Fig. 2b and Supplementary Note 1). These L-R-associated pairs in the enhanced data have great biological relevance and facilitate the mining of cellular communications. Specifically, we further reveal the adjacencies between different cell types (Fig. 3f, Methods) as well as the cell‒cell communications considering both the neighbouring cell weights and the L-R communication strength (Fig. 3g). Tumour-associated fibroblasts play a central role in the tumour microenvironment and are not only adjacent to tumour cells and lymphocytes (Fig. 3f) but also demonstrate strong communication with them (Fig. 3g). In contrast, lymphocytes and myeloid cells are close to each other but have less communication. Collectively, this evidence demonstrates that the enhanced data contribute to downstream analysis and are crucial for revealing cellular interactions, which otherwise would be hidden due to data sparsity.

SiGra enhances the single-cell spatial data of Vizgen MERSCOPE

SiGra is further evaluated on the other SCST dataset of mouse livers compiled by Vizgen MERSCOPE, which consists of 347 genes and 395,215 cells. In this dataset, SiGra reveals different spatial cell clusters (Supplementary Fig. 2c). For better visualization, we focused on the four major cell clusters (Fig. 4a). Cluster 1 (C-1) and cluster 2 (C-2) are located adjacent to the central and portal veins, respectively, while cluster 3 (C-3) and cluster 4 (C-4) are located at blood vessels. Importantly, the enhanced data by SiGra reveal histologically meaningful liver-specific gene expression patterns in different regions (Fig. 4b). For example, SiGra remarkably enhances hepatocyte hallmark genes Cyp2c3830 and Axin231, which are predominantly expressed near blood vessels. The endothelial cell markers Cd3432 (Fig. 4b) and Vwf33 (Supplementary Fig. 2d) were also clearly present in the central veins, portal veins, and sinusoids. The raw data, in contrast, show noisy expression of these genes in the nonrelevant anatomic regions. For example, Cd34 and Vwf show scattered false signals in the nonblood-vessel regions and missing expression in smaller veins, especially sinusoids. Thus, essential cellular anatomical structures in the liver tissue, such as central veins, portal veins, and sinusoids, can be clearly identified by the enhanced expressions of Cd34, Vwf, and Axin2, but not the noisy raw data, which are further confirmed by the UMAP plots (Fig. 4c). From the boxplots of the expression of these hallmark genes (Fig. 4d), both C-1 and C-2 are suggested to be hepatocytes (high Cyp2c38 and Axin2 expression), C-2 is enriched with periportal hepatocytes (higher Axin2 expression), C-4 contains mainly endothelial cells (high Cd34 and Vwf expression), and C-3 is likely to be hepatic stellate cells. Notably, the enhanced cell-type specific genes are only enriched in their restricted regions but not in irrelevant regions, suggesting that SiGra does not introduce noticeable artefacts in the enhanced data. Further comparison between enhanced data with bulk RNA-seq shows the improved spatial data quality by SiGra (Supplementary Fig. 2e and Supplementary Note 1).

Fig. 4. SiGra enhances the single-cell spatial data of Vizgen MERSCOPE.

Fig. 4

a Spatial visualization of the cell clusters in the single-cell spatial data from mouse liver tissue. b Spatial visualization of the raw expression and the enhanced expression of liver-related genes (Cyp2c38, Axin2, Cd34). c UMAP visualization of the raw expression and the enhanced expression of liver-related genes (Cyp2c38, Axin2, Cd34). d Boxplots of the raw expression and the enhanced expression of liver-specific genes in different cell clusters (C1: 63,300; C2: 44,173; C3: 39,823; C4: 29,170; Other: 190,645). In the boxplot, the centreline, box limits and whiskers denote the median, upper and lower quartiles, and 1.5× interquartile range, respectively. e Comparisons of the number of differentially expressed genes (DEGs) in cell clusters. The labelled number is the average logFC for that cell cluster. f Scatter plot of significantly associated ligand‒receptor (L-R) pairs in the raw data and the enhanced data. Orange- and yellow-coloured dots represent the shared and specific L-R pairs, respectively. Source data are provided as a Source Data file.

In addition, more differentially expressed genes (DEGs) were identified from the enhanced data than from the raw data (Fig. 4e). For example, the enhanced data recovered 59, 42, and 35 DEGs for C-1, C-2, and C-3, respectively, while the raw data only identified 12, 13, and 12 DEGs, respectively. The identified DEGs in the enhanced data also showed a higher average log2-fold change (logFC; C-1: 0.8; C-2: 0.89; C-3: 0.79) than the raw data. The large overlaps between the DEGs revealed by the enhanced spatial data and the single-cell RNA-seq data further verify the improved data quality after enhancement (Supplementary Fig. 2f and Supplementary Note 1). Moreover, the enhanced data reveal meaningful and associated L-R pairs. As shown in Fig. 4f, among the 64 L-R pairs identified in this dataset, 13 L-R pairs in the enhanced data and 12 L-R pairs in the raw data were significantly associated (FDR < 0.05), with 9 of these L-R pairs shared between the enhanced and raw data. Further investigation revealed that the enhanced-specific L-R pairs also presented strong associations in the bulk RNA-seq data of mouse livers34 (Wnt2-Fzd4: 0.581; Pkm-Cd44: 0.885; Col1a2-Itga2b: 0.641; Dll1-Notch2: 0.798). However, the raw-specific L-R pairs have no associations in the bulk data, indicating that those raw-specific L-R pairs are more likely to be false positives. These results demonstrate that SiGra facilitates the recovery of liver-specific genes and L-R interactions, which enables better characterization of the spatial architecture of mouse liver tissue.

SiGra improves the identification of known layers in brain tissues

To show that SiGra not only outperforms existing methods in single-cell spatial data but also in spot-based spatial transcriptomics data, here we analyse the 10x Visium datasets from the human dorsolateral prefrontal cortex (DLPFC). These datasets consist of 12 tissue slices of human brains, covering up to six neuronal layers and white matter manually annotated by the original study. To evaluate the benchmarking performance, the identified spatial clusters are annotated based on the matched overlap of spatial clusters and ground truth. Figure 5a shows the ARI scores for all 12 tissue slices (Supplementary Figs. 3 and 4), on which SiGra (median ARI: 0.57) outperforms Scanpy (median ARI: 0.28), Seurat (median ARI: 0.29), stLearn (median ARI: 0.39), SpaGCN (median ARI: 0.40), and BayesSpace (median ARI: 0.44).

Fig. 5. SiGra improves the identification of known layers in brain tissues.

Fig. 5

a Boxplot of the adjusted Rand index (ARI) scores of six methods in all 12 DLPFC slices. In the boxplot, the centreline, box limits and whiskers denote the median, upper and lower quartiles, and 1.5× interquartile range, respectively. Source data are provided as a Source Data file. b Spatial domains detected by different methods, including Scanpy, Seurat, stLearn, BayesSpace, SpaGCN, and SiGra, in DLPFC slice 151507. c Spatial domains detected by different methods, including Scanpy, Seurat, stLearn, BayesSpace, SpaGCN, and SiGra, in DLPFC slice 151676. d UMAP visualizations of latent embeddings generated by Scanpy, stLearn, SpaGCN, and SiGra in DLPFC slice 151676. SpaGCN and BayesSpace are not shown because they did not provide latent embeddings for UMAP visualization.

We further examined the DLPFC anatomical structures identified by different methods. For tissue slice 151,507 (Fig. 5b), SiGra reveals more accurate spatial regions than the other methods. Seurat identifies Layer 4 scattered in the regions of Layers 3 and 5 without clear boundaries. Scanpy, stLearn, and BayesSpace are not able to distinguish the anatomical shape of Layer 4. Figure 5c shows the other tissue slice 151,676 with spatial regions identified by different methods. Only SiGra deciphers the layer boundaries clearly, reaching good agreement with manual annotations (ARI = 0.62), while other methods can only achieve ARIs of less than 0.4. Specifically, stLearn intermingles Layer 2 with Layer 3, with additional mixtures of Layer 4 and white matter. BayesSpace mixes Layer 4 with Layer 5 and misidentifies some white matter as Layer 2, which leads to its poor performance. Interestingly, although stLearn also utilizes histology information from the haematoxylin and eosin (H&E) images to capture morphological features, its performance is substantially worse than that of SiGra, suggesting that SiGra incorporates multimodal spatial features in a more effective way. In addition, based on the latent embeddings of slice 151676 obtained by different methods (Fig. 5d), SiGra presents much clearer separations of different anatomical layers, while Scanpy and SpaGCN only discern white matter, failing to distinguish other neuronal layers. All these benchmarking results show that SiGra is able to better identify subtle spatial domains than other methods in spot-based spatial transcriptomics data.

SiGra improves spatial gene expression for better structural characterization

To further validate that SiGra enhances spatial gene expression, we detected the DEGs of each domain in slice 151676. Compared with the number of DEGs detected in raw data, SiGra detects more DEGs specific to individual regions (Supplementary Data 1). For example, with 232 DEGs of Layer 1 detected in raw data, 595 DEGs are found specific to Layer 1 from enhanced data. Moreover, for each of the neuronal layers, region-specific marker genes can be better identified after SiGra data enhancement (Fig. 6a). For example, MYH1135 presents enriched expression in Layer 1 (logFC = 2.96). C1QL236 and CUX236 are overexpressed in Layer 2 and Layer 3, with logFC values of 1.74 and 1.44, respectively. SYT237 and FEZF238 are enriched in Layer 4 (logFC = 1.31) and Layer 5 (logFC = 1.42). PAQR639 shows dominantly enriched expression (logFC = 2.9) in the white matter area. In contrast, these marker genes do not show clear expression patterns in raw data, indicating the limits that raw data face in distinguishing spatial domain boundaries. Violin plots further show the expression of marker genes in raw data and enhanced data (Fig. 6b). Such enhanced gene expression patterns are also observed in other DLPFC slices, for example, slice 151507 (Fig. 6c and Supplementary Data 2), where RELN40 (logFC = 3.24) and ADCYAP141 (logFC=2.81), i.e., markers of Layer 1 and Layer 2 present remarkable enhancement, in contrast to their sporadic expressions in raw data. In addition, we examined the layer-enriched gene markers identified in the enhanced data, which showed high consistency with those of the original study42 (Supplementary Note 2 and Supplementary Data 3). These results demonstrate the capability of SiGra to reduce noise and improve gene expression patterns in spot-based spatial transcriptomics data.

Fig. 6. SiGra improves spatial gene expression for better structural characterization.

Fig. 6

a Spatial visualization of the raw expression and the enhanced expression of marker genes (MYH11, C1QL2, CUX2, SYT2, FEZF2, PAQR6) in DLPFC slice 151676. Numbers of spots in each layer: Layer 1: 289; Layer 2: 254; Layer 3: 836; Layer 4: 254; Layer 5: 649; Layer 6: 616; WM: 533. b Violin plots of the raw expression and the enhanced expression of marker genes in DLPFC slice 151676. c Violin plots of the raw expression and the enhanced expression of marker genes in DLPFC slice 151,507. Numbers of spots in each layer: Layer 1: 817; Layer 2: 305; Layer 3: 1,215; Layer 4: 369; Layer 5: 675; Layer 6: 486; WM: 354.

Discussion

Spatial biology technology has rapidly evolved into the single-cell era2. Commercially available in situ hybridization platforms such as NanoString CosMx SMI and Vizgen MERSCOPE have enabled spatial gene expression profiling at subcellular resolution (50 nm) for 500–1000 targeted genes. Experimental in situ sequencing technologies such as ExSeq43 expand SCST to the whole transcriptome. Spot-array spatial transcriptomics technologies such as Stereo-seq44 and Seq-Scope45 are also reaching subcellular resolution (500 nm–600 nm). However, in all these technologies, the resulting SCST data are limited by the low total transcriptions per cell, noisy data, and substantial zeros, which raises challenges in effective downstream analysis15. To accurately reveal spatial and cellular anatomic structures and to enhance noisy gene expression data, we developed the SiGra method, a graph artificial intelligence model, to incorporate multimodal data, including multichannel IHC images, spatial adjacency cell graphs, and gene expression. The use of graph transformers over a spatially adjacent cell graph as well as the imaging-transcriptomics hybrid architecture allows SiGra to effectively leverage the rich information from the high-content IHC images as well as the spatial distribution. In SiGra, the multimodal information from images and original transcriptomics are summarized at the single-cell level, with the information from neighbouring cells selectively captured by the attention mechanism. With these technical advances, the SiGra model outperforms existing methods and significantly improves downstream data analysis.

SiGra is designed to utilize multimodalities, including multichannel images of cells and their niches, to address technological limitations and achieve augmented spatial profiles. Designed as a general-purpose tool for spatial transcriptomics data enhancement and spatial pattern profiling, SiGra can be directly used not only for SCST but also for spot-based spatial transcriptomics data. SiGra demonstrates superior performance on three different platforms, in both healthy and diseased tissues, and across different species, which provides a general solution for existing spatial transcriptomics data analysis pipelines. Notably, SiGra can identify spatial domains at different resolutions, depending on the data types and the applications. For the spot-level spatial data that have a low spatial resolution and consist of mixed cells/cell types in each spot, SiGra directly and accurately identifies the spatial structures (Fig. 5), such as the anatomical layers in the brain cortex on DLPFC slices, by clustering the latently represented spots. For the SCST with significantly high resolution, SiGra identifies spatial regions at the cellular level (Fig. 2). Meanwhile, on such high-resolution SCST data, SiGra is also able to reveal the regional anatomic spatial structures by further summarizing the Leiden clustering results with a dimensional moving window approach (Supplementary Fig. 5 and Supplementary Note 3). The effects of autofluorescence on SiGra are also examined in Supplementary Fig. 6 and Supplementary Note 4.

In addition to its superior performance and technical advantages, SiGra can be further improved in the future. First, as newer spatial omics technologies46 continue evolving and new data modalities continue to emerge, SiGra can be improved by incorporating new omics data types, new image types, 3-D spatial information, etc., to extend data exploration. The hybrid architecture allows SiGra to adapt additional spatial information and incorporate multiomics data. As an advanced deep learning model, SiGra also faces the limitations of the black-box nature of artificial intelligence4749. This can be ameliorated through downstream analysis, such as cell‒cell interaction analysis. Further development of SiGra will enhance the model interpretability that can address some of the problems and provide insights into the underlying mechanism in tissue ecosystems. As the capacity and efficiency of experimental technologies continue to improve, SiGra is anticipated to facilitate biological discoveries and insights into complex tissues and diseases.

Methods

Data preprocessing and graph representation

Spatial transcriptomics data generated by different platforms, including the NanoString CosMxTM SMI lung cancer dataset (Lung-9-1)4, Vizgen MERSCOPE mouse liver dataset L1R1 released in January 202215, and 10x Visium datasets from the human dorsolateral prefrontal cortex (DLPFC)42, are preprocessed and represented in uniform format (Fig. 1) for SiGra. The original spatial profiles are converted to single-cell (or spot) images, single-cell (or spot) expression, and a spatial graph of adjacent cells (or spots), which serve as the input for SiGra.

Regarding the NanoString Lung-9-1 dataset, the composite images of the DAPI, PanCK, CD45, and CD3 channels from 20 FOVs, the cell centre coordinates (from the cell metadata file), and the single-cell gene expression file of 960 genes are used. For each cell, four 120-by-120 pixel (21.6 μm-by-21.6 μm) images with the cell at the centre are cropped from the images. Edges in the spatial adjacency graph are constructed if the cell-to-cell distance (Euclidian distance) ≤ 80 pixels (14.4 μm). NanoString’s annotations of cell types are obtained from their provided Giotto object. Regarding the Vizgen L1R1 dataset, images of the DAPI staining and the three IHC boundary staining, the single-cell expression data of 347 genes, and the cell centre coordinates are used. The images in the middle of the z-packs (z3) are used, as recommended by Vizgen. These images are cropped into single-cell 200-by-200 pixel (21.6 μm -by-21.6 μm) images. Edges in the spatial adjacency graph are constructed if the cell-to-cell distance ≤ 150 pixels (16.2 μm). Regarding the 10x Visium DLPFC dataset, the high-resolution H&E images as well as the .h5 files (“filtered_feature_bc_matrix.h5”) are used as input. For each spot, three spot-specific images (for the RGB channels) are extracted, with 50-by-50 pixel (38.7 μm-by-38.7 μm) images. The cut-off distance for generating the spatial graph between spots is 150 pixels (116 μm). The top 3000 highly variable genes were identified using the Seurat standard pipeline10 and used for analysis. For all datasets, the raw counts of gene expression were normalized by multiplying by 10,000, followed by log-transformation. The parameters of the size of single-cell images and the cut-off of cell-to-cell distance for constructing the spatial graph are determined empirically depending on the cellular anatomy of the tissue. In the spatial adjacency graph, most cells have 5–6 neighbouring cells.

In this way, the final graph representation of the original single-cell or spot spatial transcriptomics data is a spatial graph G=V,E, with viV representing the i th cell with i=1,,n representing the total N cells, eijE representing the spatial proximity between two cells vi and vj, and A as the adjacency matrix of the graph. Each cell vi on the spatial graph is accompanied by multichannel images Mi=Mi,c, with c=1,,C representing each imaging channel, and gene expression gi=gi,k, with k=1,,K representing genes.

The SiGra model

SiGra is a hybrid multimodal graph transformer framework with three transcriptomics reconstruction modules: the imaging-based encoder-decoder, the transcriptomics-based encoder-decoder, and the hybrid encoder-decoder.

  1. Imaging-based encoder-decoder. For a cell vi, the multichannel images Mi are transformed to a vector xivecMi,1,,vecMi,cT. An encoder with a series of multihead graph transformer layers is used to project the imaging vector to the latent space as zM,i and then reconstruct the gene expression profile of this cell vi as g^M,i. The images Mj from neighbouring cell vjNvi are also used as the input, where N represents the neighbours in the graph G.

  2. Transcriptomics-based encoder-decoder. The original gene expression profile gi for cell vi, with gj for adjacent cells vjNvi also as the input, is projected to the latent space as zg,i, which is then used to reconstruct the gene expression of cell vi as g^g,i.

  3. Hybrid encoder-decoder. The latent representation of the imaging and transcriptomics features are catenated as [zM,i,zg,i], further projected to hybrid latent feature zh,i, and then used to reconstruct the gene expression for cell vi as g^h,i through graph transformer layers. The latent features zM,j and zg,j from neighbouring cells {vj} are also used by the graph transformers.

Graph transformer convolutional layer

Multihead graph transformer50 layers with an attention mechanism (Supplementary Fig. 1) are the main components of the SiGra model. Briefly, for a cell vi, the propagation of the graph transformer from the l layer to the l+1 layer is defined as hil+1=ReLU(W1lhil+vjNviαi,jVjl), where the rectified linear unit (ReLU51) is used as the nonlinear gated activation function. The attention module is defined as αi,j=softmaxQil,KjluNiQil,Kul, where:

query:Qi(l)=WQ(l)hi(l)+bQ(l) 1
key:Kj(l)=WK(l)hj(l)+bK(l) 2
value:Vj(l)=WV(l)hj(l)+bV(l) 3

and Q,KexpQTK/dim(hil). The multihead attention values, whose notation is omitted for simplicity, are concatenated.

Loss function

SiGra learns the reconstructed gene expression via a self-supervised loss of combined MSE from gene embedding, image embedding and combined embedding, with the loss function

L=i=1Nλ1LM,i+λ2Lg,i+Lh,i 4

where LM,i=1Ni=1Ngig^M,i2, Lg,i=1Ni=1Ngig^g,i2, Lh,i=1Ni=1Ngig^h,i2. In this work, the optimal parameters of λ1 and λ2 were determined through grid-based hyperparameter fine turning. For single-cell spatial transcriptomics data, the optimal parameters are λ1 = 0.1 and λ2 = 0.1. For 10x Visium data, the optimal parameters are λ1 = 1 and λ2 = 1. Details are provided in Supplementary Fig. 7a and Supplementary Note 5.

The other hyperparameters of SiGra include two graph transformer layers for the imaging and the transcriptomics encoders (with dimensions of 512 and 30 for the 1st and the 2nd layers, respectively), one graph transformer layer for the hybrid encoder (based on gene embeddings and image embeddings from the transcriptomics encoder and from the imaging encoder), and two graph transformer layers for imaging, transcriptomics, and hybrid decoders (where the dimension of the first layer is 512, and the dimension of the second layer is same as that of the corresponding transcriptomics data). These hyperparameters were determined by grid search (Supplementary Fig. 7b and Supplementary Note 5). After training, SiGra outputs the hybrid reconstruction g^=g^h,i as the final enhanced expression profile. The latent representation, z=zh,i, of the original SCST data is used for spatial data clustering with the Leiden algorithm52 from the SCANPY package11.

Spatial domain detection

For the spot-level spatial data that have a low spatial resolution and consist of mixed cells/cell types in each spot, SiGra directly detects the spatial domains by clustering the latent-represented spots using Leiden. For single-cell spatial data, SiGra first identifies the cell types for each individual cell by clustering the latent representation using Leiden and then reveals spatial domains via a dimensional moving window agglomeration approach53. Specifically, the spatially distributed cells are summarized by a circular window of diameter d sliding in both the x and y directions across the whole image with a given stride length s. At each stop Ci,j with the coordinate (xi,yj), a vector ci,j[q1,,qt] representing the proportions of the SiGra-identified clusters (t) covered by the sliding window is calculated. All the stops {Ci.j} are recursively merged to k groups a1,,ak by hierarchical clustering according to the cluster proportion vectors {ci.j}. These agglomerated groups are defined as spatial domains. The window radius d used in Supplementary Fig. 5 is 100 μm, which is consistent with the 10x Visium spatial resolution, with a stride s of 10 μm. For fair comparisons, the same moving window agglomeration approach is used in benchmarking methods (Supplementary Fig. 5). The ground truth of the anatomic spatial domains for the DLPFC slices and lung cancer slices was obtained from the original study7 and the certified pathologist at Indiana University Health (T.H.).

Benchmarking methods and comparison measurement

To evaluate the performance of SiGra, we compare it with five existing methods: Seurat v410, Scanpy11, stLearn12, SpaGCN14, and BayesSpace13. Seurat and Scanpy are implemented based on their provided vignettes. Briefly, for data preprocessing, 3000 highly variable genes were selected for log normalization, and the top 30 principal components (PCs) were calculated for spatial data clustering. BayesSpace is implemented based on their package vignette. Specifically, the input is the top 15 PCs of the log-normalized expression of the top 2000 HVGs. The nrep parameter is set to 50,000, and the gamma parameter is set to 3. For stLearn, based on its tutorial, the stLearn.SME.SME_normalized() function is performed on raw counts with parameters use_data = “raw” and weights = “physical_distance”. The top 30 PCs of the SME normalized matrix are then used for spatial data clustering and visualization. SpaGCN is applied according to its recommended parameters in the package vignette. That is, the top 15 PCs of the log-normalized expression of the top 3000 spatial variable genes are used for spatial data clustering. Two hundred epochs are used for identifying and refining spatial domains. The resolution parameter is selected to ensure that the number of clusters is equal to the ground truth.

Moreover, we comprehensively compared SiGra with MUSE54 and STAGATE55 based on simulation data, SCST data, and 10x Visium data. Additional ablation studies were also performed to investigate the contributions of different components in the SiGra model. Details of benchmarking and ablation studies are provided in Supplementary Figs. 8, 9, and Supplementary Note 6.

To evaluate the performance of each method, we use the adjusted Rand index (ARI) to assess the agreement between the identified spatial clusters and the manual annotation. Suppose Y^=yi^i=1n represents the spatial clusters and Y=yii=1n represents the ground truth of n cells divided into k clusters. Then,

ARI=lsnls2lnl2sns2n2lnl2+sns22lnl2sns2n2 5

where l and s denote the k clusters, nl=inIyi^=l, ns=inIyi=s, nls=i,jnIyi^=lIyi=s, and Ix=y=1 when x=y, else Ix=y=0. The ARI ranges from 0 to 1 for increasing match between the identified clusters with ground truth.

Identifying differentially expressed genes and adjacent cell communications

To identify the differentially expressed genes (DEGs), the Wilcoxon test from the Scanpy package11 was used. DEGs of each spatial region were selected with a 5% FDR threshold (Benjamin-Hochberg adjustment) and a log2-fold change greater than 1 (logFC > 1).

To reveal the neighbours of each cell type, we aggregate its neighbouring cells by cell type and divide the average number to reveal its weighted neighbours. These weighted neighbours are further used to characterize the adjacent cell communications. Specifically, the interaction strength of each L-R pair is calculated by multiplying their association score and their average expression. Then, we aggregate the interaction strength of each L-R pair by cell type to be the communication strength of two cell types. The neighbouring weight of two cell types is further multiplied by the communication strength of these two cell types for the final adjacent cell communications. In this way, the higher the value of the adjacent communications, the stronger the interaction between two neighbouring cell types.

Reporting summary

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

Supplementary information

Supplementary File (2.5MB, pdf)
Peer Review File (8.3MB, pdf)
Reporting Summary (1.1MB, pdf)
41467_2023_41437_MOESM4_ESM.pdf (83.9KB, pdf)

Description of Additional Supplementary Files

Supplementary Data 1 (208.4KB, xlsx)
Supplementary Data 2 (272.8KB, xlsx)
Supplementary Data 3 (29.5KB, xlsx)

Source data

Source Data (73.9KB, xlsx)

Acknowledgements

Q.S. is supported by the Bioinformatics Shared Resources under the NCI Cancer Center Support Grant to the Comprehensive Cancer Center of Wake Forest University Health Sciences (P30CA012197), and the National Institute of General Medical Sciences of the National Institutes of Health (R35GM151089). J.S. is partially financially supported by the Indiana University Precision Health Initiative and by the Indiana University Melvin and Bren Simon Comprehensive Cancer Center Support Grant from the National Cancer Institute (P30CA 082709). J.S. is also supported by R01LM013771.

Author contributions

Q.S., J.S., and B.Y. developed the structure and arguments and wrote the manuscript. Q.S. and Z.T. implemented the method, applications, and visualization. Z.L. implemented the web interface. T.H. annotated the pathological spatial domains. T.Z. reviewed and edited the manuscript. All the authors reviewed and approved the final manuscript.

Peer review

Peer review information

Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.

Data availability

The single-cell spatial dataset of NanoString CosMx SMI contains 20 FOVs, which is profiled by the CosMx SMI on Formalin-Fixed Paraffin-Embedded (FFPE) samples of the non-small-cell lung cancer (NSCLC) tissue4. The dataset (Lung-9-1) and other lung cancer slices are available from https://nanostring.com/products/cosmx-spatial-molecular-imager/nsclc-ffpe-dataset/. We used the Vizgen MERFISH Mouse Liver Map dataset that contains a MERFISH measurement of a 347 gene panel. Sample L1R1 (liver 1, replicate 1) was used and downloaded from https://info.vizgen.com/mouse-liver-data?submissionGuid=da03b470-e111-425a-b6d2-16d34342f4fe, which includes the list of detected transcripts, gene counts per cell matrix, additional spatial cell metadata, cell boundary polygons, and DAPI images. The human dorsolateral prefrontal cortex (DLPFC) 10x Genomics Visium datasets consists of 12 samples42. Each of the samples is manually annotated with up to six cortical layers and white matter. Transcriptomics data and hematoxylin and eosin (H&E) images of corresponding tissue sections are downloaded from http://research.libd.org/spatialLIBD/Source data are provided with this paper.

Code availability

SiGra is provided as a Python package available at https://github.com/QSong-github/SiGra56, with detailed tutorials for general applicability on different SCST platforms. The web interface (SiGra Viewer) is available at http://sigra.sulab.io and enables users to explore the enhanced data in UMAP figures and spatial domains.

Competing interests

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.

Contributor Information

Baijian Yang, Email: byang@purdue.edu.

Jing Su, Email: su1@iu.edu.

Qianqian Song, Email: qsong@wakehealth.edu.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-023-41437-w.

References

  • 1.Moffitt JR, Lundberg E, Heyn H. The emerging landscape of spatial profiling technologies. Nat. Rev. Genet. 2022;23:741–759. doi: 10.1038/s41576-022-00515-3. [DOI] [PubMed] [Google Scholar]
  • 2.Moses L, Pachter L. Museum of spatial transcriptomics. Nat. Methods. 2022;19:534–546. doi: 10.1038/s41592-022-01409-2. [DOI] [PubMed] [Google Scholar]
  • 3.Palla G, Fischer DS, Regev A, Theis FJ. Spatial components of molecular tissue biology. Nat. Biotechnol. 2022;40:308–318. doi: 10.1038/s41587-021-01182-1. [DOI] [PubMed] [Google Scholar]
  • 4.He S, et al. High-plex imaging of RNA and proteins at subcellular resolution in fixed tissue by spatial molecular imaging. Nat. Biotechnol. 2022;40:1794–1806. doi: 10.1038/s41587-022-01483-z. [DOI] [PubMed] [Google Scholar]
  • 5.Crosetto N, Bienko M, van Oudenaarden A. Spatially resolved transcriptomics and beyond. Nat. Rev. Genet. 2015;16:57–66. doi: 10.1038/nrg3832. [DOI] [PubMed] [Google Scholar]
  • 6.Fang R, et al. Conservation and divergence of cortical cell organization in human and mouse revealed by MERFISH. Science. 2022;377:56–62. doi: 10.1126/science.abm1741. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Giacomello S, et al. Spatially resolved transcriptome profiling in model plant species. Nat. Plants. 2017;3:17061. doi: 10.1038/nplants.2017.61. [DOI] [PubMed] [Google Scholar]
  • 8.Berglund E, et al. Spatial maps of prostate cancer transcriptomes reveal an unexplored landscape of heterogeneity. Nat. Commun. 2018;9:2419. doi: 10.1038/s41467-018-04724-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Thrane K, Eriksson H, Maaskola J, Hansson J, Lundeberg J. Spatially resolved transcriptomics enables dissection of genetic heterogeneity in stage III cutaneous malignant melanoma. Cancer Res. 2018;78:5970–5979. doi: 10.1158/0008-5472.CAN-18-0747. [DOI] [PubMed] [Google Scholar]
  • 10.Hao Y, et al. Integrated analysis of multimodal single-cell data. Cell. 2021;184:3573–3587.e3529. doi: 10.1016/j.cell.2021.04.048. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Wolf FA, Angerer P, Theis FJ. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol. 2018;19:15. doi: 10.1186/s13059-017-1382-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Pham, D. et al. stLearn: integrating spatial location, tissue morphology and gene expression to find cell types, cell-cell interactions and spatial trajectories within undissociated tissues. BioRxiv. 2020-05 (2020).
  • 13.Zhao E, et al. Spatial transcriptomics at subspot resolution with BayesSpace. Nat. Biotechnol. 2021;39:1375–1384. doi: 10.1038/s41587-021-00935-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Hu J, et al. SpaGCN: Integrating gene expression, spatial location and histology to identify spatial domains and spatially variable genes by graph convolutional network. Nat. Methods. 2021;18:1342–1351. doi: 10.1038/s41592-021-01255-8. [DOI] [PubMed] [Google Scholar]
  • 15.Liu J, et al. Concordance of MERFISH spatial transcriptomics with bulk and single-cell RNA sequencing. Life Sci. Alliance. 2023;6:e202201701. doi: 10.26508/lsa.202201701. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Niu Z, Zhong G, Yu H. A review on the attention mechanism of deep learning. Neurocomputing. 2021;452:48–62. [Google Scholar]
  • 17.Yun S, Jeong M, Kim R, Kang J, Kim HJ. Graph transformer networks. Adv. Neural Inf. Process. Syst. 2019;32:11983–11993. [Google Scholar]
  • 18.Shi, Y. et al. Masked label prediction: unified message passing model for semi-supervised classification. arXiv preprint arXiv:2009.03509. (2020).
  • 19.Hutton C, et al. Single-cell analysis defines a pancreatic fibroblast lineage that supports anti-tumor immunity. Cancer Cell. 2021;39:1227–1244.e1220. doi: 10.1016/j.ccell.2021.06.017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Betjes MG, Haks MC, Tuk CW, Beelen RH. Monoclonal antibody EBM11 (anti-CD68) discriminates between dendritic cells and macrophages after short-term culture. Immunobiology. 1991;183:79–87. doi: 10.1016/S0171-2985(11)80187-7. [DOI] [PubMed] [Google Scholar]
  • 21.Yao J, et al. Matrix Gla protein regulates differentiation of endothelial cells derived from mouse embryonic stem cells. Angiogenesis. 2016;19:1–7. doi: 10.1007/s10456-015-9484-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Mohtar MA, Syafruddin SE, Nasir SN, Low TY. Revisiting the roles of pro-metastatic EpCAM in cancer. Biomolecules. 2020;10:255. doi: 10.3390/biom10020255. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Wang D, Hao T, Pan Y, Qian X, Zhou D. Increased expression of SOX4 is a biomarker for malignant status and poor prognosis in patients with non-small cell lung cancer. Mol. Cell. Biochem. 2015;402:75–82. doi: 10.1007/s11010-014-2315-9. [DOI] [PubMed] [Google Scholar]
  • 24.Sen M, et al. Transcriptional profiling of single tumour cells from pleural effusions reveals heterogeneity of epithelial to mesenchymal transition and extra-cellular matrix marker expression. Clin. Transl. Med. 2022;12:e888. doi: 10.1002/ctm2.888. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Sharman JL, et al. IUPHAR-DB: updated database content and new features. Nucleic Acids Res. 2012;41:D1083–D1088. doi: 10.1093/nar/gks960. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Ramilowski JA, et al. A draft network of ligand-receptor-mediated multicellular signalling in human. Nat. Commun. 2015;6:7866. doi: 10.1038/ncomms8866. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Prasad TS, Kandasamy K, Pandey A. Human protein reference database and human proteinpedia as discovery tools for systems biology. Methods Mol. Biol. 2009;577:67–79. doi: 10.1007/978-1-60761-232-2_6. [DOI] [PubMed] [Google Scholar]
  • 28.Ben-Shlomo I, Yu Hsu S, Rauch R, Kowalski HW, Hsueh AJ. Signaling receptome: a genomic and evolutionary perspective of plasma membrane receptors involved in signal transduction. Sci. STKE. 2003;2003:RE9. doi: 10.1126/stke.2003.187.re9. [DOI] [PubMed] [Google Scholar]
  • 29.Graeber TG, Eisenberg D. Bioinformatic identification of potential autocrine signaling loops in cancers from gene expression profiles. Nat. Genet. 2001;29:295–300. doi: 10.1038/ng755. [DOI] [PubMed] [Google Scholar]
  • 30.Graves JP, et al. Characterization of the tissue distribution of the mouse Cyp2c subfamily by quantitative PCR analysis. Drug Metab. Dispos. 2017;45:807–816. doi: 10.1124/dmd.117.075697. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Sun T, et al. AXIN2(+) pericentral hepatocytes have limited contributions to liver homeostasis and regeneration. Cell Stem Cell. 2020;26:97–107.e106. doi: 10.1016/j.stem.2019.10.011. [DOI] [PubMed] [Google Scholar]
  • 32.de Boer WB, Segal A, Frost FA, Sterrett GF. Can CD34 discriminate between benign and malignant hepatocytic lesions in fine-needle aspirates and thin core biopsies? Cancer. 2000;90:273–278. [PubMed] [Google Scholar]
  • 33.Haberichter SL. von Willebrand factor propeptide: biology and clinical utility. Blood. 2015;126:1753–1761. doi: 10.1182/blood-2015-04-512731. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Tabula Muris C, et al. Single-cell transcriptomics of 20 mouse organs creates a Tabula Muris. Nature. 2018;562:367–372. doi: 10.1038/s41586-018-0590-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Hrvatin S, et al. Single-cell analysis of experience-dependent transcriptomic states in the mouse visual cortex. Nat. Neurosci. 2018;21:120–129. doi: 10.1038/s41593-017-0029-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Zeisel A, et al. Brain structure. Cell types in the mouse cortex and hippocampus revealed by single-cell RNA-seq. Science. 2015;347:1138–1142. doi: 10.1126/science.aaa1934. [DOI] [PubMed] [Google Scholar]
  • 37.Sommeijer JP, Levelt CN. Synaptotagmin-2 is a reliable marker for parvalbumin positive inhibitory boutons in the mouse visual cortex. PLoS One. 2012;7:e35323. doi: 10.1371/journal.pone.0035323. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Tsyporin J, et al. Transcriptional repression by FEZF2 restricts alternative identities of cortical projection neurons. Cell Rep. 2021;35:109269. doi: 10.1016/j.celrep.2021.109269. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Lin H, et al. Whole blood gene expression and white matter Hyperintensities. Mol. Neurodegener. 2017;12:67. doi: 10.1186/s13024-017-0209-5. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Camacho J, Ejaz E, Ariza J, Noctor SC, Martinez-Cerdeno V. RELN-expressing neuron density in layer I of the superior temporal lobe is similar in human brains with autism and in age-matched controls. Neurosci. Lett. 2014;579:163–167. doi: 10.1016/j.neulet.2014.07.031. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Arnsten AFT, Woo E, Yang S, Wang M, Datta D. Unusual molecular regulation of dorsolateral prefrontal cortex layer III synapses increases vulnerability to genetic and environmental insults in schizophrenia. Biol. Psychiatry. 2022;92:480–490. doi: 10.1016/j.biopsych.2022.02.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Maynard KR, et al. Transcriptome-scale spatial gene expression in the human dorsolateral prefrontal cortex. Nat. Neurosci. 2021;24:425–436. doi: 10.1038/s41593-020-00787-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Alon S, et al. Expansion sequencing: spatially precise in situ transcriptomics in intact biological systems. Science. 2021;371:eaax2656. doi: 10.1126/science.aax2656. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Chen A, et al. Spatiotemporal transcriptomic atlas of mouse organogenesis using DNA nanoball-patterned arrays. Cell. 2022;185:1777–1792.e1721. doi: 10.1016/j.cell.2022.04.003. [DOI] [PubMed] [Google Scholar]
  • 45.Cho CS, et al. Microscopic examination of spatial transcriptome using Seq-Scope. Cell. 2021;184:3559–3572.e3522. doi: 10.1016/j.cell.2021.05.010. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Lewis SM, et al. Spatial omics and multiplexed imaging to explore cancer biology. Nat. Methods. 2021;18:997–1012. doi: 10.1038/s41592-021-01203-6. [DOI] [PubMed] [Google Scholar]
  • 47.Ghosh A, Kandasamy D. Interpretable artificial intelligence: why and when. AJR. Am. J. Roentgenol. 2020;214:1137–1138. doi: 10.2214/AJR.19.22145. [DOI] [PubMed] [Google Scholar]
  • 48.Moore JH, et al. Preparing next-generation scientists for biomedical big data: artificial intelligence approaches. Pers. Med. 2019;16:247–257. doi: 10.2217/pme-2018-0145. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Filipp FV. Opportunities for artificial intelligence in advancing precision medicine. Curr. Genet. Med. Rep. 2019;7:208–213. doi: 10.1007/s40142-019-00177-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Vaswani A, et al. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017;30:5998–6008. [Google Scholar]
  • 51.Agarap, A. F. Deep learning using rectified linear units (relu). arXiv preprint arXiv:1803.08375. (2018).
  • 52.Traag VA, Waltman L, van Eck NJ. From Louvain to Leiden: guaranteeing well-connected communities. Sci. Rep. 2019;9:5233. doi: 10.1038/s41598-019-41695-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Park J, et al. Cell segmentation-free inference of cell types from in situ transcriptomics data. Nat. Commun. 2021;12:3545. doi: 10.1038/s41467-021-23807-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Bao F, et al. Integrative spatial analysis of cell morphologies and transcriptional states with MUSE. Nat. Biotechnol. 2022;40:1200–1209. doi: 10.1038/s41587-022-01251-z. [DOI] [PubMed] [Google Scholar]
  • 55.Dong K, Zhang S. Deciphering spatial domains from spatially resolved transcriptomics with an adaptive graph attention auto-encoder. Nat. Commun. 2022;13:1739. doi: 10.1038/s41467-022-29439-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Tang, Z. et al. SiGra: Single-cell spatial elucidation through an image-augmented graph transformer. 10.5281/zenodo.8124962 (2023). [DOI] [PMC free article] [PubMed]

Associated Data

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

Supplementary Materials

Supplementary File (2.5MB, pdf)
Peer Review File (8.3MB, pdf)
Reporting Summary (1.1MB, pdf)
41467_2023_41437_MOESM4_ESM.pdf (83.9KB, pdf)

Description of Additional Supplementary Files

Supplementary Data 1 (208.4KB, xlsx)
Supplementary Data 2 (272.8KB, xlsx)
Supplementary Data 3 (29.5KB, xlsx)
Source Data (73.9KB, xlsx)

Data Availability Statement

The single-cell spatial dataset of NanoString CosMx SMI contains 20 FOVs, which is profiled by the CosMx SMI on Formalin-Fixed Paraffin-Embedded (FFPE) samples of the non-small-cell lung cancer (NSCLC) tissue4. The dataset (Lung-9-1) and other lung cancer slices are available from https://nanostring.com/products/cosmx-spatial-molecular-imager/nsclc-ffpe-dataset/. We used the Vizgen MERFISH Mouse Liver Map dataset that contains a MERFISH measurement of a 347 gene panel. Sample L1R1 (liver 1, replicate 1) was used and downloaded from https://info.vizgen.com/mouse-liver-data?submissionGuid=da03b470-e111-425a-b6d2-16d34342f4fe, which includes the list of detected transcripts, gene counts per cell matrix, additional spatial cell metadata, cell boundary polygons, and DAPI images. The human dorsolateral prefrontal cortex (DLPFC) 10x Genomics Visium datasets consists of 12 samples42. Each of the samples is manually annotated with up to six cortical layers and white matter. Transcriptomics data and hematoxylin and eosin (H&E) images of corresponding tissue sections are downloaded from http://research.libd.org/spatialLIBD/Source data are provided with this paper.

SiGra is provided as a Python package available at https://github.com/QSong-github/SiGra56, with detailed tutorials for general applicability on different SCST platforms. The web interface (SiGra Viewer) is available at http://sigra.sulab.io and enables users to explore the enhanced data in UMAP figures and spatial domains.


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

RESOURCES