Abstract
Single-cell RNA sequencing (scRNA-seq) enables genome-wide gene expression profiling at single-cell resolution but loses the spatial context essential for interpreting cell identity and tissue organization. In contrast, spatially resolved transcriptomics (SRT) preserves spatial information but typically lacks single-cell resolution or complete transcriptome coverage. To obtain a more comprehensive view of heterogeneous spatial domains and cellular gene expression, we present Cell2Map, an unsupervised deep learning method that integrates scRNA-seq and SRT data from the same tissue region. Cell2Map assigns individual cells to SRT spots using a graph attention autoencoder equipped with a specially designed multi-term objective function that jointly optimizes expression-based, density-based, and embedding-level similarity and distance constraints. On benchmark datasets from mouse cerebellum and hippocampus, Cell2Map achieves higher single-cell mapping precision and overall accuracy than three popular methods (Celloc, CytoSPACE, Tangram) across a range of noise levels and spot cell densities. In real cancer applications, Cell2Map resolves intratumoral heterogeneity by accurately localizing tumor subclones and separating normal epithelial cells from ductal carcinoma in situ regions, and more faithfully reconstructs tumor microenvironments and immune-cell localization than competing approaches. Across breast cancer and myocardial infarction datasets, Cell2Map consistently attains higher sensitivity with fewer false positives, in close agreement with histological and biological annotations.
Keywords: spatially resolved transcriptomics, scRNA-seq, unsupervised deep learning, graph attention autoencoder, data integration
Introduction
Single-cell sequencing technologies have transformed our ability to dissect the complexity of biological systems over the past decade. Among them, single-cell RNA sequencing (scRNA-seq) provides genome-wide gene expression profiles at single-cell resolution, enabling characterization of cell types, functional states, developmental trajectories, and disease progression within tissues. However, scRNA-seq requires enzymatic digestion or mechanical dissociation of tissues, which disrupts the spatial context that is critical for understanding cell states, cellular niches, and microenvironmental interactions [1–3]. Spatially resolved transcriptomics (SRT) technologies complement scRNA-seq by preserving positional information in tissue sections. Sequencing-based platforms such as 10x Visium [4], Slide-seq [5], and Stereo-seq [6] provide transcriptome-wide coverage but typically at multicellular or subcellular spot resolution, whereas image-based approaches, including MERFISH [7], smFISH [8], seqFISH+ [9], and STARmap [10], achieve near single-cell or subcellular resolution but are limited in the number of profiled genes. Thus, there is an inherent trade-off between spatial resolution and transcriptome breadth. Computational integration of SRT with scRNA-seq data is therefore essential to bridge these complementary strengths, improve cell-type and biomarker identification, and gain a more comprehensive view of tissue architecture in health and disease [11–13]. Even with recently developed high-resolution platforms such as Visium HD (~2 μm resolution) [14], integration with scRNA-seq remains valuable because different protocols capture distinct aspects of transcriptional and technical variation [15].
A large number of existing methods, such as Cell2location [16], SpatialDWLS [17], SpaDecon [18], SpatialScope [19], CARD [20], DSTG [21], SpatialcoGCN [22], and LETSmix [23], focus primarily on deconvolving SRT spots into cell-type proportions rather than explicitly assigning individual scRNA-seq data to spatial locations. While these approaches improve cell-type composition estimates, they do not provide single-cell resolution maps and therefore offer limited support for downstream analyses, such as single-cell clustering, lineage tracing or cell-cell communication [24]. To address this, several recent methods, including Tangram [25], CellTrek [26], CytoSPACE [27], and Celloc [28], attempt to map individual scRNA-seq cells to SRT spots. For example, Tangram enforces consistency between predicted cell density and gene expression profiles at each spatial spot, whereas CytoSPACE further constrains cell-type proportions during mapping. In contrast, Celloc incorporates an autoencoder-based strategy to learn latent representations and applies a correlation-based scoring strategy within the embedding space to guide cell-to-spot assignment. Related models such as CeLEry [29] and CellContrast [30] instead infer spatial coordinates for scRNA-seq cells via supervised learning or spatial smoothness assumptions, but they do not perform explicit one-to-one cell-to-spot mapping. Technically, they are not designed for data integration analysis, but for spatial information inference of cells in scRNA-seq data by training the relationship between gene expression profiles and spatial locations based on a large number of supervised profile-to-location samples or based on the assumption that spatially proximate cells exhibit similar expression. Although Tangram, CytoSPACE, and Celloc can perform single cell-to-spot mapping by optimizing different objective functions to estimate mapping matrices from single cells to spatial spots, their objective functions typically capture only limited or partial features during optimization. For example, Tangram’s objective emphasizes consistency in cell density and gene expression within each spot before and after mapping, whereas CytoSPACE additionally incorporates the fractional abundance of each cell type in the spatial transcriptomics data. Celloc, in turn, uses a mapping score based on Pearson correlation in an embedding space. Therefore, a promising direction is to jointly optimize multiple complementary criteria, such as distance- and correlation-based measures in both the original expression space and learned latent spaces, to improve mapping accuracy and robustness [13, 15].
Here, we introduce Cell2Map, a new deep learning framework that integrates scRNA-seq and SRT data to achieve flexible, high-resolution cell-to-spot assignment. Cell2Map builds on a graph attention autoencoder (GATE) to learn low-dimensional embeddings of both scRNA-seq cells and SRT spots, using graphs constructed from spatial adjacency (for SRT) and expression similarity (for scRNA-seq). On top of these embeddings, Cell2Map optimizes a mapping matrix via a multi-term objective function that combines density, correlation, and distance-based terms in both expression and latent spaces. This design enables Cell2Map to leverage complementary information from scRNA-seq and SRT data while improving mapping accuracy and robustness across diverse experimental settings. On simulated mouse cerebellum and hippocampus benchmarks, Cell2Map outperforms Celloc, CytoSPACE, and Tangram in mapping precision and overall accuracy across varying noise levels and spot cell densities. In real datasets [breast cancer and myocardial infarction (MI)], Cell2Map better resolves tissue heterogeneity and cell-type localization with higher sensitivity and fewer false positives, consistent with histological and biological annotations.
Materials and methods
Overview of Cell2Map
To leverage complementary spatial and transcriptional information to improve mapping accuracy and stability, Cell2Map maps scRNA-seq cells to SRT spots by jointly modeling the two modalities with a GATE (Fig. 1a). Specifically, Cell2Map constructs two graphs from matched tissue samples: an SRT spot graph, where nodes are spots connected by spatial adjacency and an scRNA-seq cell graph, where nodes are cells connected based on gene-expression similarity. These graphs are encoded and decoded within a shared GATE framework to learn low-dimensional embeddings for both cells and spots, while simultaneously optimizing an unknown cell-to-spot mapping matrix
.
Figure 1.
Cell2Map framework for mapping single cells in scRNA-seq to spatial transcriptomics spots; (a) Cell2Map integrates scRNA-seq and SRT data using a GATE to learn low-dimensional embeddings; modality-aligned embeddings for spatial spots and individual cells; (b) the cell-to-spot mapping matrix is estimated jointly by optimizing an objective function comprising four complementary constraints.
To estimate
robustly, Cell2Map employs a four-term objective function that combines four complementary constraints (Fig. 1b). It retains an expression-based mapping term (MT) to align mapped spot-level expression with observed SRT profiles and introduces three additional terms to capture information that is not fully represented by expression alignment alone. Two of these constraints are computed in the latent embedding space to reduce computational complexity and improve robustness: (i) a cosine-similarity term that encourages high correlation between mapped cells and spots, and (ii) an embedding-distance term (DiT) (e.g. Euclidean and Mahalanobis) that promotes proximity between matched cell and spot embeddings. Together with a cell-density term that regularizes cell allocation across spots, these four terms jointly guide
toward accurate and stable cell-to-spot assignments across diverse settings.
Data preprocessing and preparation
The Python package SCANPY (version1.9.6) [31] was used for preprocessing and filtering the raw scRNA-seq data and SRT data from the same tissue sample. Specifically, we (a) removed genes expressed in fewer than one cell or spot, (b) filtered out low-quality cells and spots expressing fewer than three genes, (c) normalized counts to counts per million using “scanpy.pp.normalize_total(data, target_num = 1e6)” and applied log-transformation with “scanpy.pp.log1p(),” and (d) retained the intersection of genes shared by both modalities. After preprocessing, we obtained two aligned expression matrices
and
, representing gene expression profiles for
cells,
spatial spots and
genes.
To incorporate spot-level cell density information, we estimated the number of cells per spot
from Hematoxylin and Eosin (H&E) images and derived the normalized density vector
, where
. StarDist [32] is used for nucleus segmentation on H&E images to count cells per spot. When H&E-based estimates are unavailable, we default to setting a uniform cell density of each spot to
.
The goal of Cell2Map is to obtain an optimal mapping matrix
from
cells to
spots, where
is the probability of the
-th cell being within the
-th spot, representing a soft assignment of the
-th cell to the
-th spot. The mapping satisfies the normalization constraint
for each cell
For downstream analyses requiring discrete assignments, the soft mapping can be converted to hard assignments by assigning each cell to the spot with the highest probability.
Graph attention autoencoder
Cell2Map employs a GATE to learn low-dimensional latent representations from the two preprocessed matrices
and
. To ensure that the low-dimensional latent representations of single cell and spot expression profiles are embedded in the same embedding space, we concatenate
and
, and then input them into the same GATE, which consists of an encoder and a decoder.
For scRNA-seq data, the KNN (k-nearest neighbors) algorithm is employed to construct a KNN graph, in which each node has
nearest nodes based on expression profiles. For SRT data, the cKDTree method (the “scipy.spatial.cKDTree” class) [33] is used to construct a neighbor graph for all nodes (spots) in a given spatial radius. The two graphs are merged and saved as an adjacency matrix.
In each layer of the encoder, the hidden representation of each node is aggregated from the features of its neighboring nodes. To learn hidden representations of each node, we need to combine the node features with the graph structure in each hidden embedding space. To measure the importance of various neighbors, different weights are adaptively assigned to edges incident with different neighbors. Formula (1) is used to compute the representation of node
in the
-th encoder layer.
![]() |
(1) |
Here,
denotes the output representation of node
,
denotes the neighbors of node
,
is the trainable weight matrix,
denotes the attention coefficient indicating the importance of neighbor node
to node
, and
is a nonlinearity activation function (here Exponential Linear Unit is used). Note that the initial node representations
are the preprocessed expression profiles of cells or spots.
To calculate the attention coefficient
, we first measure the importance of neighbor node
to node
, represented by
, and then normalize across all neighbor nodes
with a softmax function to make them comparable easily across nodes. The calculation functions for
and
are shown in Formulas (2) and (3), respectively.
![]() |
(2) |
![]() |
(3) |
In Formula (2),
,
, and
are trainable weights, where
is the dimension of node representations in the
-th layer, and
is an activation function.
The encoder consists of
layers, and the output of the last encoder layer is the latent embedding
whose
is the cell embedding and
is the spot embedding.
is set as the input of the decoder. The decoder is symmetric to the encoder with the same number of layers, and the process of each decoder layer is the reversal of its symmetric encoder layer. There are normalized attention coefficients
in the
-th decoder (where
) as
in the
-th encoder. The
-th decoder layer is reconstructed from the
-th decoder layer by Formula (4).
![]() |
(4) |
Here,
denotes the node
in the
-th decoder layer. After applying all decoder layers, the outputs of the last decoder layer
are the reconstructed profiles of node
. The autoencoder is trained by minimizing the reconstruction loss as shown in Formula (5) with Adam Optimizer.
![]() |
(5) |
Cell-to-spot mapping algorithm
To learn the cell-to-spot mapping matrix
, each of whose elements represents the mapping score from a cell to a spot, we construct an objective function and try to minimize the objective function
shown in Formula (6), which satisfies
and
by applying the softmax function along all spots for each cell.
![]() |
(6) |
where
and
represent the vector composed of the
-th row and the vector of the
-th column in a matrix (·), respectively, and
, and
are five adjustable parameters.
The objective function
consists of four terms. The first term is the density term (DeT): we enforce that the learned density distribution
for spots is as close as possible to the expected distribution
. Each component
of the vector
is calculated using
and regarded as the predicted cell density. The second term is the embedding-based cosine similarity term (CST) composed of two parts: the first part enforces that each column
of reconstructed spatial embedding, which is predicted by the mapping matrix
and the cell embedding
, is proportional to the column
of the spot embedding
; the second part enforces that each row
is proportional to the row
. The third term is the expressed-based MT: it enforces that the difference, represented by Kullback-Leibler divergence, between the merged gene expression of the mapped cells mapped to a spot and the expression of the spot should be minimized as much as possible. The last term is the embedding-based DiT composed of two distance metrics: the first part is the sum of the Euclidean distance between reconstructed spatial embedding
and spot embedding
for all spots
; the second part is the sum of the Mahalanobis distance between
and
for all spots
, in which
is the inverse matrix of the covariance matrix
. Gradient-based optimization with the PyTorch library is employed to minimize the objective function
.
Once the matrix
is obtained, for each cell
, the spot
with the highest probability value
among all spots will be labeled. Then, for each spot
, if the number of labeled cells is less than the estimated number of cells
, all these labeled cells are assigned to the spot
, otherwise, the top
labeled cells with the highest values are assigned to spot
. Subsequently, the assigned cells and the spots that have been filled to the full are removed from
. The above process is repeated until there are no more spots or cells left.
Benchmark datasets and case study for Cell2Map evaluation
To fairly evaluate the performance of Cell2Map, we first utilized simulated SRT datasets. The simulated SRT datasets were designed in CytoSPACE [27] and created from the mouse cerebellum and hippocampus data generated using Slide-seq [5], a platform with spatial single-cell resolution and limited transcriptome representation. The single-cell expression profiles in the Slide-seq data were first replaced by the most correlated profiles from an independent scRNA-seq dataset [34] of the same brain region. Then, the spatial space was split into grids and the replaced expression profiles in each grid were merged together into pseudo-bulk transcriptomes to form a spot. To simulate SRT data with different resolutions, the grid size was adjusted so that each spot covers an average of 5, 15, and 30 cells. Finally, to simulate the differentiation of technology and platform between scRNA-seq and SRT datasets, varying amounts of noise (noise perturbation levels of 5%, 10%, and 25%) were added to the scRNA-seq dataset. The detailed information of simulated benchmark datasets is summarized in Supplementary Table S1.
To evaluate performance on real SRT datasets, we next ran Cell2Map on data of mouse MI and two types of human cancer: human ductal carcinoma in situ (DCIS) and breast cancer (summarized in Supplementary Table S2). The scRNA-seq data in the MI dataset consists of 11 492 single cardiac cells from a mouse model of pressure overload [35], and the MI SRT data were sequenced from some frozen samples of 7-day post-MI [36]. The DCIS dataset consists of two samples, a pure DCIS sample (DCIS1) and a DCIS tissue with synchronous invasive ductal carcinoma (DCIS2), both obtained from CellTrek [26]. The DCIS1 sample consists of 6828 single cells and 1567 SRT spots. The DCIS2 sample consists of 3748 single cells and 2063 SRT spots. The breast cancer dataset consists of a HER2+ FFPE (formalin-fixed, paraffin-embedded) breast cancer scRNA-seq atlas [37] and a fresh frozen breast cancer specimens profiled by the Visium platform of 10X Genomics.
Parameter training and sensitivity analysis
The weights of GATE in Cell2Map were optimized using the Adam optimizer implemented in PyTorch. The initial learning rate was set to 0.1, with a default batch size of 100 and 200 training epochs. The Cell2Map objective function contains four major objective terms controlled by five weighting hyperparameters. The default hyperparameters were selected by grid search using the simulated mouse cerebellum and mouse hippocampus benchmark datasets with 5% noise (Supplementary Tables S3 and S4). The searched ranges were
,
, and
. Based on this grid search, the default values were set to
,
,
,
, and
.
To assess parameter robustness, we performed sensitivity analyses on the simulated benchmark datasets. First,
and
were varied while fixing
,
,
. As shown in Supplementary Table S3, the default setting
and
achieved the best overall performance across the tested mouse cerebellum and mouse hippocampus datasets under different spot-density conditions. We then varied
and
while fixing
and
. As summarized in Supplementary Table S4, the default setting
and
provided the most stable and accurate performance across the benchmark datasets. The dataset-specific values of
and
used for real-data analyses are listed in Supplementary Table S5. We further evaluated the sensitivity of Cell2Map to graph-construction and training parameters. The KNN setting of
achieved the best performance among the tested values, with nearby values showing comparable results (Supplementary Table S6). Meanwhile, the spatial neighbor radius of 5 achieved the best performance among the tested radii (Supplementary Table S7). Similarly, the default learning rate of 0.1 yielded the best performance among the tested learning rates (Supplementary Table S8).
Methods comparison and evaluation metrics
We compared Cell2Map with three popular cell-to-spot alignment algorithms: Tangram [25], CytoSPACE [27], and Celloc [28]. Tangram is the first widely used single-cell-to-spot mapping algorithm. CytoSPACE and Celloc are the two best performing mapping methods on the benchmark data in the latest study. We excluded CellTrek [26] because it can assign the same cell to multiple spots. We used default settings for all methods. All experiments were run on a single machine with an NVIDIA RTX 4090 GPU (24 GB), an Intel Core i9-13900K CPU, and 64 GB RAM. We employed two metrics to evaluate the performance of each method on the benchmark data for the single-cell-to-spot mapping tasks. The first metric is the single-cell mapping precision (
) defined as Formula (7), representing the percentage of cells mapped to the correct spots in a cell type.
![]() |
(7) |
In Formula (7),
denotes the number of cells that were assigned to correct spots, and
denotes the number of all mapped cells with known ground truth spots for a cell type. The second is the overall accuracy metric (
), which calculates the accuracy of all cells (from all cell types) mapped to spots, defined as
![]() |
(8) |
where
represents the number of cells assigned correctly, and
is the number of all assigned cells for all cell types.
To evaluate the mapping accuracy of a certain cell type in real data, the overlapping rate between mapped spot areas and annotated spot area for a certain cell type is defined as
![]() |
(9) |
where
refers to the number of spots fully mapped by this cell type and
stands for the number of spots fully annotated as this cell type.
Detect differentially expressed genes and data visualization
Differentially expressed genes (DEGs) were identified to characterize transcriptional differences between the selected cell populations versus others by using Wilcoxon rank-sum test in the SCANPY (version1.9.6) [31]. To control for multiple hypothesis testing, p-values were adjusted using the Benjamini-Hochberg false discovery rate. Genes satisfying the predefined thresholds of adjusted P-value <.05 and log2(fold change) >0.5 were considered significant DEGs. To visualize the DEG results, volcano plots were generated by plotting log2(fold change) against the
log10(adjusted p-value). Heatmaps were further generated to display the spatial expression patterns of representative DEGs across cells. To support biological interpretation, the functional annotations of significant DEGs were obtained from the GeneCards database [38]. In addition, the relevance of selected marker genes to breast cancer was manually curated through literature review using PubMed, focusing on their reported roles in tumor initiation, progression, metastasis, therapeutic response, and tumor microenvironment regulation. Uniform manifold approximation and projection (UMAP) was used to project high-dimensional data into a two-dimensional space for visualization of cell populations and clustering patterns [39].
Results
Cell2Map exhibits superior performance on benchmark datasets
We evaluated the performance of Cell2Map using simulated spatial transcriptomics datasets derived from mouse cerebellum and hippocampus scRNA-seq data. The simulated cerebellum datasets contain 11 cell types, while the hippocampus datasets contain 17 cell types. For each dataset, we assessed single-cell mapping precision (
) for individual cell types and ACC across all cell types. To ensure robustness, each method was run 10 independent times using recommended parameter settings. We evaluated performance under varying experimental conditions, including three noise levels (5%, 10%, and 25%) and three spot resolutions corresponding to an average of 5, 15, and 30 cells per spot. We compared Cell2Map against three state-of-the-art cell-to-spot alignment methods, Celloc, CytoSPACE, and Tangram. The distributions of ACC and
scores are shown as boxplots in Fig. 2. The detailed ACC scores are summarized in Supplementary Tables S9 and S10, and the
scores for the 11 cell types in the mouse cerebellum dataset and the 17 cell types in the mouse hippocampus dataset are presented in Supplementary Tables S11 and S12, respectively.
Figure 2.
Performance comparison among four methods; the ACC and
scores of four cell-to-spot alignment algorithms on each cell type of the simulated mouse cerebellum (a) and mouse hippocampus (b) datasets with different noise levels (5%, 10%, and 25%); the mean and SDs of ACC scores are presented in Supplementary Tables S9 and S10, and
scores are presented in Supplementary Tables S11 and S12.
As shown in Fig. 2a and b, when the spot resolution is high (average of five cells per spot), Cell2Map consistently and significantly outperforms the other three methods on both mouse cerebellum and hippocampus datasets across all tested noise levels (5%, 10%, and 25%). The performance gains are evident across nearly all cell types, demonstrating Cell2Map’s superior ability to resolve fine-grained cellular localization under low-density conditions. For datasets with an intermediate resolution (15 cells per spot), Cell2Map maintains a clear advantage at low and moderate noise levels (5% and 10%), while performance differences among methods diminish at 25% noise, where increased spot complexity and noise limit discrimination power for all approaches. At lower-resolution settings (30 cells per spot), the performance gap between methods further narrows across noise levels. Nevertheless, Cell2Map consistently achieves equal or slightly higher
scores compared with competing methods, indicating stable performance even in highly mixed spot scenarios.
For the simulated mouse hippocampus datasets spanning different noise levels and cell densities, we further evaluated the overall ACC scores across all cell types. Because the ACC values showed minimal variation among the 10 repeated experiments for each dataset, we summarized the results using the mean ACC score and corresponding SD for each dataset (Supplementary Table S10). Notably, the SDs of ACC scores for Cell2Map across all datasets were consistently below 0.02, indicating stable performance across repeated runs. Across all simulated datasets, Cell2Map consistently achieved higher ACC scores than the other three methods.
We also evaluated the computational efficiency of Cell2Map by comparing runtime and peak GPU memory usage with Celloc, CytoSPACE, and Tangram on representative simulated and real datasets. As shown in Supplementary Table S13, Cell2Map completed the simulated cerebellum and hippocampus analyses within ~4–5 min and completed the real-data analyses within ~2 min. In addition, Cell2Map showed comparable peak graphics processing unit (GPU) memory usage relative to the other methods (Supplementary Table S14). Although Cell2Map required slightly higher GPU memory for some simulated datasets, its memory usage remained within the capacity of a standard high-end GPU and was comparable across real biological datasets. Together, these results demonstrate that Cell2Map provides more accurate and robust cell-to-spot mapping across diverse simulation settings, particularly under low cell-density and high-noise conditions, while maintaining practical runtime and memory requirements as spot complexity increases.
Multiple terms in the Cell2Map objective function and the GATE model interactively improve the performance
Cell2Map employs a multi-term objective function that integrates four complementary components: a cell DeT, an embedding-based CST, an embedding-based DiT, and an expression-based MT. To quantify the individual contribution of each term and assess their interactions, we conducted systematic ablation experiments by removing one term at a time from the full objective function. As summarized in Table 1, removing any component leads to a noticeable degradation in performance, confirming that all four terms contribute meaningfully to accurate cell-to-spot mapping.
Table 1.
The results of ablation experiments on the simulated cerebellum dataset with 5% noise and five-cell-per-spot resolution.
| Objective function | All terms | Without DeT | Without CST | Without DiT | Without MT | |
|---|---|---|---|---|---|---|
| ACC |
0.9356
(0.002) |
0.8833 (0.004) |
0.9314 (0.001) |
0.8906 (0.014) |
0.0009 (0.000) |
|
of 11 cell types |
Astrocyte |
0.9296
(0.003) |
0.8319 (0.007) |
0.9244 (0.001) |
0.8207 (0.019) |
0 (0.000) |
| Bergmann |
0.9286
(0.001) |
0.8529 (0.004) |
0.9146 (0.001) |
0.8482 (0.015) |
0.0007 (0.000) |
|
| Choroid |
0.8634
(0.007) |
0.8407 (0.008) |
0.8581 (0.002) |
0.8344 (0.014) |
0 (0.000) |
|
| Endothelial |
0.9221
(0.001) |
0.8188 (0.006) |
0.9122 (0.001) |
0.9058 (0.011) |
0.0017 (0.002) |
|
| Fibroblast |
0.9078
(0.003) |
0.8601 (0.001) |
0.9047 (0.000) |
0.8656 (0.018) |
0 (0.000) |
|
| Granule |
0.9525
(0.002) |
0.9028 (0.002) |
0.9509 (0.000) |
0.9167 (0.014) |
0.0008 (0.000) |
|
| Microglia |
0.9485
(0.001) |
0.8861 (0.006) |
0.9418 (0.001) |
0.9165 (0.017) |
0 (0.000) |
|
| Nnat |
0.9093
(0.003) |
0.8689 (0.003) |
0.9025 (0.001) |
0.8416 (0.017) |
0 (0.000) |
|
| Oligodendrocyte |
0.9177
(0.004) |
0.9071 (0.001) |
0.9142 (0.001) |
0.8722 (0.010) |
0.0013 (0.000) |
|
| Purkinje |
0.9075
(0.001) |
0.8974 (0.006) |
0.8945 (0.000) |
0.8599 (0.017) |
0.0011 (0.000) |
|
| Pvalb |
0.9296
(0.003) |
0.8423 (0.010) |
0.9217 (0.000) |
0.8869 (0.009) |
0 (0.000) |
|
Bold values indicate the highest value for each evaluation metric among the compared methods.
In particular, removing the MT results in a near-zero overall accuracy and cell-to-spot precision across all cell types, indicating that this term is essential for establishing meaningful correspondence between scRNA-seq cells and spatial spots. MT is the only term in the objective function that establishes a direct correspondence between scRNA-seq cells and SRT spots in the original gene-expression space, and the remaining three terms (DeT, CST, DiT) act as regularization or refinement terms operating in the latent embedding space or on cell-density distributions. Without MT, the optimization has no anchor that links cell identity to spot identity through gene expression, and the model fails to recover biologically meaningful mappings. The DeT also plays a critical role by enforcing consistency between predicted and observed cell densities across spots. Its removal leads to substantial decreases in overall accuracy (ACC drops from 0.9356 to 0.8833) and pronounced performance loss across most cell types, highlighting its importance in maintaining realistic spatial cell allocations. The DiT further enhances performance by encouraging mapped cells and spots to be close in latent space. Excluding this term results in consistent accuracy reductions (ACC = 0.8906), demonstrating that distance-based constraints provide complementary structural information beyond expression alignment alone. Finally, the CST contributes additional robustness by promoting directional consistency between cell and spot embeddings. Although its removal causes the smallest performance decline among the four terms (ACC = 0.9314), the consistent decrease across multiple cell types indicates that CST still provides a meaningful, albeit auxiliary, contribution to overall mapping accuracy.
The spatial neighbor graph in Cell2Map is constructed solely from the spatial coordinates of SRT spots. It encodes the intrinsic spatial geometry of the tissue section, where neighboring spots are physically adjacent in the SRT data. To evaluate the contribution of the graph-based representation, we replaced the GATE architecture with either principal component analysis (PCA) or a conventional autoencoder to obtain low-dimensional latent embeddings, while keeping the same four-term objective function. As shown in Table 2 and Supplementary Table S15, both PCA-based and autoencoder-based baselines achieved lower ACC and
scores than the full Cell2Map model. For example, on the simulated mouse cerebellum dataset with 5% noise and five-cell-per-spot resolution, Cell2Map achieved an ACC of 0.9356, compared with 0.7216 for PCA plus the four-term objective and 0.8505 for autoencoder plus the four-term objective. Similarly, on the simulated mouse hippocampus dataset, Cell2Map achieved an ACC of 0.6848, compared with 0.5656 for PCA plus the four-term objective and 0.5082 for autoencoder plus the four-term objective. These results demonstrate that the graph-based GATE architecture provides a clear performance advantage and that the improvement is not simply due to the four-term objective function alone. Together, these ablation results demonstrate that the graph-based GATE architecture provides a clear performance advantage beyond the four-term objective function alone, while the four objective terms act synergistically to achieve accurate, stable, and biologically consistent cell-to-spot assignments under noisy and heterogeneous conditions.
Table 2.
The results of ablation experiments on the simulated mouse cerebellum dataset with 5% noise and five-cell-per-spot resolution with two different baselines.
| Model | PCA+ four-term objective | Autoencoder + four-term objective | Cell2Map | |
|---|---|---|---|---|
|
0.7216 | 0.8505 | 0.9356 | |
of 11 cell types |
Astrocyte | 0.7040 | 0.8064 | 0.9296 |
| Bergmann | 0.6881 | 0.7782 | 0.9286 | |
| Choroid | 0.6661 | 0.8314 | 0.8634 | |
| Endothelial | 0.7153 | 0.8253 | 0.9221 | |
| Fibroblast | 0.7740 | 0.8269 | 0.9078 | |
| Granule | 0.7469 | 0.8872 | 0.9525 | |
| Microglia | 0.7770 | 0.8781 | 0.9485 | |
| Nnat | 0.6429 | 0.8459 | 0.9093 | |
| Oligodendrocyte | 0.7543 | 0.8222 | 0.9177 | |
| Purkinje | 0.6494 | 0.8292 | 0.9075 | |
| Pvalb | 0.7079 | 0.8318 | 0.9296 | |
Bold values indicate the highest value for each evaluation metric among the compared methods.
Cell2Map identifies the tumor heterogeneity of DCIS
Tumor cells generally consist of multiple subclones, and it is difficult to distinguish them directly through SRT data and H&E images. To validate the ability of Cell2Map to distinguish tumor cell subtypes, here we used the DCIS2 dataset of ductal carcinoma and mapped the scRNA-seq cells to the SRT spots. The scRNA-seq data in the DCIS2 dataset have been annotated as four nontumor cell types [EndoVas, Fibroblast (FB), Myeloid, and natural killer T cells (NK/T)] and three subclones of tumor cells (Subclone1, Subclone2, and Subclone3) [26]. On the tissue H&E image of the DCIS2 SRT data, ductal tumor regions are enclosed with red lines (Fig. 3a). In the DCIS2 scRNA-seq data, the tumor cells can be clustered into three clusters, corresponding to three subclones, respectively (Fig. 3b). We assume that the average number of cells per spot is five. After running Cell2Map and the compared algorithms separately on DCIS2 dataset, we obtained the mapping relationship from scRNA-seq cells to SRT spots. Thus, these scRNA seq cells labeled with cell types were spatially reconstructed.
Figure 3.
Visualization of mapping DCIS2 scRNA-seq data to DCIS2 SRT data; (a) the H&E image in the DCIS2 SRT data with histologically annotated ductal tumor regions outlined; (b) UMAP plot of DCIS2 scRNA-seq data 3587 cells annotated with major cell types, including three tumor subclones; (c) spatial mapping results of scRNA-seq onto SRT spots; dashed outlines indicate regions of correct localization and/or mis-localization relative to histologically defined tumor areas, illustrating differences in spatial specificity and tumor-normal separation across methods; (d) spatial expression of markers for tumor and epithelial cells.
As shown in Fig. 3c, spatial reconstructions of all cell types defined in the scRNA-seq reference are visualized across tissue spots, with distinct colors indicating different cell populations. Overall, Cell2Map, Celloc, CytoSPACE, and Tangram produce qualitatively different spatial distributions, revealing marked differences in their ability to resolve tumor architecture and cellular heterogeneity. Cell2Map and Celloc both localize tumor cells (annotated as three tumor subclones) to regions that are highly consistent with the tumor areas identified from the H&E image in Fig. 3a, indicating accurate tumor localization by both methods. However, Cell2Map produces a more structured and biologically coherent spatial organization of tumor subclones. Specifically, subclone 1 is predominantly concentrated on the left side of the tissue section, subclone 3 is mainly distributed in the middle and right regions, and subclone 2 is preferentially localized along tumor boundaries (e.g. regions highlighted by black dotted circles). In contrast, Celloc shows less spatial separation among the three subclones, with greater intermixing across tumor regions. By comparison, CytoSPACE and Tangram display markedly reduced spatial specificity for tumor cells. We also computed the overlapping rate
between the mapped spot areas and the annotated spot area for the three tumor subclones for each compared method, and found that Cell2Map achieves the highest overlapping rate (
) (Supplementary Table S16). Tumor subclones predicted by these methods are highly colocalized with normal epithelial cells (blue dotted triangles in Fig. 3c), suggesting substantial misassignment of malignant and non-malignant populations. Importantly, Cell2Map clearly separates normal epithelial cells from tumor regions, as illustrated in the third-row subpanels of Fig. 3c, where normal epithelial cells are largely excluded from malignant areas. In contrast, CytoSPACE and Tangram incorrectly place a substantial fraction of normal epithelial cells within tumor regions (red dotted triangles in Fig. 3c), leading to pronounced overlap with malignant cell distributions.
To further validate the spatial assignments generated by Cell2Map, we identified DEGs between tumor cells and normal epithelial cells based on the mapped scRNA-seq data (Supplementary Fig. S1). The volcano plots highlight genes significantly enriched in tumor cells versus other cell types (Supplementary Fig. S1a) and genes preferentially expressed in normal epithelial cells (Supplementary Fig. S1b). Several well-known tumor-associated markers, including RAB25, FOXA1, CD24, AGR2, FXYD3, AGR3, CLDN4, and RHOC, show strong upregulation in tumor cells [40–42], whereas genes such as N4BP2L2, SON, CDK5RAP3, DDX17, RSRP1, PNISR, CCNL2, and ANKRD30A are significantly enriched in epithelial cells [43–45]. These DEG results provide candidate markers for validating the spatial reconstruction of tumor and epithelial populations (see annotation details in Supplementary Table S17). We next examined the spatial expression patterns of representative markers selected from these DEG analyses (upper row in Fig. 3d and Supplementary Fig. S1c). Tumor-associated markers exhibit strong expression signals that are predominantly localized within the ductal tumor regions identified in the H&E image (Fig. 3a). Meanwhile, markers associated with normal epithelial cells display expression patterns largely outside tumor boundaries and are consistent with non-malignant epithelial regions in the tissue section (lower row in Fig. 3d and Supplementary Fig. S1c). Notably, the clear spatial separation between tumor marker expression and normal epithelial marker expression provides independent biological evidence and demonstrates that Cell2Map effectively distinguishes malignant from non-malignant epithelial populations.
Cell2Map detects spatial tumor microenvironment in diverse cancer types
To evaluate Cell2Map’s ability to reconstruct the spatial tumor microenvironment, we applied Cell2Map, Celloc, CytoSPACE, and Tangram to the DCIS1 dataset. The H&E image of the tissue section includes histologically annotated DCIS regions (Fig. 4a), and the matched scRNA-seq reference resolves into nine major cell types (Fig. 4b). As shown in Fig. 4c, Cell2Map provides the most accurate spatial reconstruction by mapping tumor cells predominantly to the histologically defined DCIS regions, with
(Supplementary Table S16), while localizing NK/T cells to the peritumoral and stromal areas surrounding the ducts. In contrast, although Celloc also assigns tumor cells within the DCIS-labeled regions, the predicted tumor regions are noticeably smaller than the annotated tumor areas (e.g. red dashed circles in Fig. 4c). Importantly, Cell2Map shows reduced mislabeling of immune cells within tumor cores. In the NK/T cell maps (third row of Fig. 4c), Cell2Map exhibits lower spurious localization of NK/T cells inside DCIS tumor regions (black circles), whereas other methods display more scattered NK/T assignments within tumor interiors. This pattern suggests that Cell2Map better preserves the expected spatial segregation between malignant compartments and immune-rich peripheral regions, thereby yielding a more faithful reconstruction of tumor microenvironment structure with fewer false-positive assignments.
Figure 4.
Spatial reconstruction of the DCIS1 tumor microenvironment; (a) H&E image of the DCIS1 tissue section from the SRT data with annotated ductal tumor regions surrounded; (b) UMAP plot of the matched DCIS1 scRNA-seq data annotated with major cell types; (c) spatial mapping results of scRNA-seq cell types onto SRT spots using four methods; dashed outlines mark representative regions where methods differ in tumor coverage (dashed ellipse) and in tumor cores (circle), illustrating differences in spatial specificity and false-positive assignments across methods; (d) spatial expression of representative markers for tumor cells (upper row: ERBB2, PSMD3, MIEN1, TOB1) and NK/T cells (lower row: PTPRC, CD3D, CD3E, CD3G); circled regions indicate the histologically annotated DCIS tumor boundary; color scales are normalized gene expression levels and are shown consistently across subpanels.
We next examined DEGs and their spatial expression patterns for tumor and immune cell populations (Supplementary Fig. S2 and Fig. 4d). DEG analysis identified several genes significantly enriched in tumor cells compared with other cell types, including ERBB2, PSMD3, MIEN1, TOB1, PHB1, MRPL27, COPRS, and HOXB2 [46–48], while NK/T cells showed strong enrichment of immune lineage markers such as PTPRC, TRAC, TRBC1, TRBC2, CD3D, CD3E, CD3G, and CD2 [49–51] (Supplementary Fig. S2a and b). These genes are widely recognized as breast cancer marker genes and their coordinated upregulation is consistent with malignant epithelial identity and supports their functional relevance to breast cancer development and progression (see annotation details in Supplementary Table S18). Mapping the spatial expression of representative markers further confirmed the accuracy of the reconstructed tissue architecture. As shown in Fig. 4d, tumor-associated markers such as ERBB2, PSMD3, MIEN1, and TOB1 display strong expression signals that are predominantly localized within the DCIS tumor regions identified in the H&E image (Fig. 4a), consistent with the spatial tumor localization predicted by Cell2Map. The annotated tumor boundaries (circles in Fig. 4d) further highlight the spatial concordance between marker expression and histologically defined malignant regions. In contrast, immune markers including PTPRC, CD3D, CD3E, and CD3G are enriched in regions surrounding the tumor ducts rather than within the tumor cores, consistent with the spatial distribution of NK/T cells observed in the reconstructed maps (Fig. 4c). Additional markers highlighted in Supplementary Fig. S2c further support this spatial segregation, with tumor markers (PHB1, MRPL27, COPRS, HOXB2) and NK/T markers (CD2, TRAC, TRBC1, TRBC2) exhibiting spatial patterns that align with the tumor and immune compartments inferred by Cell2Map.
We further evaluated spatial mapping performance in an MI dataset. The H&E image of the 10X Visium SRT data from a frozen sample at 7 days post-MI shows macrophages (MPs) diffusing outward from the fibrotic core (highlighted by red lines in Supplementary Fig. S3a). UMAP clustering of the scRNA-seq reference data identified five major cell types, including cardiomyocytes, endothelial cells, FBs, MPs, and smooth muscle cells (Supplementary Fig. S3b). Consistent with the biological expectation, Cell2Map accurately localized FBs and MPs within the fibrotic region and showed better agreement with known pathological patterns than Celloc, CytoSPACE, and Tangram (Supplementary Fig. S3c). In particular, CytoSPACE labeled very sparse FBs, indicating low sensitivity and potential under-detection. Tangram, while identifying more FBs, showed broader spatial distribution beyond the fibrotic region, suggesting increased false positives. These results demonstrate Cell2Map’s superior precision and biological consistency in mapping fibrosis-associated cell types in the MI spatial dataset.
Cell2Map is robust in mapping different scRNA-seq datasets to breast cancer SRT data
To assess the robustness of Cell2Map to different scRNA-seq reference datasets, we evaluated its performance using two independent references mapped to the same SRT sample. Specifically, we used (1) the DCIS1 scRNA-seq dataset analyzed previously and (2) a HER2+ FFPE breast cancer scRNA-seq dataset reported in CellTrek [26]. Each reference was independently mapped, using Cell2Map, Celloc, CytoSPACE, and Tangram, to a 10X Visium SRT dataset generated from a fresh-frozen invasive ductal carcinoma breast tissue section. Tumor regions were annotated based on the corresponding H&E image (Fig. 5a), and the average number of cells per spot was set to five for all methods.
Figure 5.
Robust cell-to-spot mapping of a breast cancer SRT dataset using different scRNA-seq reference datasets; (a) H&E-stained image of a 10X Visium breast cancer SRT tissue section, with histologically annotated tumor regions outlined; (b) UMAP plot of the scRNA-seq reference dataset annotated with major cell types; (c) spatial mapping results using a scRNA-seq reference in which epithelial cells are not subdivided into malignant and non-malignant subtypes (HER2+ FFPE breast cancer reference); (d) spatial mapping results using an alternative scRNA-seq reference DCIS1 that explicitly separates epithelial cells into tumor cells and two normal epithelial subtypes.
The HER2+ FFPE scRNA-seq reference resolves 11 major cell types (Fig. 5b). When mapping this reference to the SRT data (Fig. 5c), Cell2Map localized epithelial cells more accurately to the histologically defined tumor regions than the other methods, with an overlap rate of
(Supplementary Table S16). Moreover, Cell2Map produced biologically plausible distributions of immune cells, particularly NK/T cells, around tumor boundaries and stromal regions. In contrast, CytoSPACE and Tangram yielded sparse and fragmented epithelial cell assignments, suggesting reduced sensitivity in capturing tumor-associated epithelial populations. We then examined differentially expressed tumor epithelial markers and their spatial expression patterns. Differential expression analysis identified several genes strongly enriched in epithelial populations, including AZGP1, WFDC2, TACSTD2, TM4SF1, EMP1, AK5, FXYD3, and TPM1 (Supplementary Fig. S4a, see annotation details Supplementary Table S19), which are frequently associated with epithelial and tumor-related processes [52–54]. Visualization of these markers across the spatial transcriptomics tissue section shows widespread expression signals consistent with epithelial-rich regions of the breast tissue, supporting the reliability of the epithelial cell assignments derived from Cell2Map (Supplementary Fig. S4b).
We further evaluated robustness using the DCIS1 scRNA-seq reference, which includes nine cell types and explicitly separates epithelial cells into tumor cells and two normal epithelial subtypes. As shown in Fig. 5d, Cell2Map consistently mapped tumor cells and epithelial subtypes to the annotated tumor regions with higher spatial coverage and coherence than competing methods. Although Celloc also placed epithelial and tumor cells within tumor regions, the number and spatial extent of mapped tumor cells were lower than those produced by Cell2Map. CytoSPACE and Tangram again exhibited sparse, diffuse, or inconsistent mappings, particularly for tumor-associated epithelial populations. We then examined the differential expression and spatial distribution of lineage-specific marker genes. Differential expression analysis identified several genes significantly enriched in NK/T cells, including CD3D, CD3E, PTPRC, IL32, CD2, CD3G, FYB1, and IL7R [49, 55, 56] (Supplementary Fig. S5a, see annotation details Supplementary Table S20). Visualization of their spatial expression patterns revealed that these immune markers are primarily localized in scattered stromal and peritumoral regions rather than within epithelial tumor cores (Supplementary Fig. S5b), consistent with the NK/T cell distributions reconstructed by Cell2Map. In parallel, tumor-associated markers identified from tumor-versus-other differential expression analysis, such as HOXB3, SIX1, SOX11, ONECUT2, EPN3, PRR15L, QPRT, and ST8SIA6-AS1 [57–59], display strong spatial enrichment in epithelial-rich tumor regions (Supplementary Fig. S6, see annotation details Supplementary Table S20). The spatial segregation between epithelial/tumor markers and immune NK/T markers further supports the accuracy of the reconstructed tumor microenvironment. Collectively, these results demonstrate that Cell2Map is robust to variation in scRNA-seq reference composition and annotation granularity, consistently reconstructing tumor regions and associated immune microenvironments with higher spatial fidelity than existing mapping approaches.
Discussion and conclusion
In this study, we introduce Cell2Map, a deep learning framework for high-resolution mapping of scRNA-seq cells to SRT spots. By jointly modeling transcriptional similarity and spatial structure using a GATE and a multi-term objective function, Cell2Map addresses key challenges in cell-to-spot alignment, including data sparsity, noise, and heterogeneous spot composition. Systematic evaluations on simulated benchmarks and multiple real cancer datasets demonstrate that Cell2Map consistently outperforms existing methods in both single-cell mapping precision and overall accuracy. Our benchmark analyses show that Cell2Map achieves superior performance across a wide range of noise levels and spot resolutions. Notably, Cell2Map exhibits high sensitivity in detecting true cell-to-spot associations under low-density and noisy conditions, while maintaining stable performance as spot complexity increases. Ablation studies further confirm that the four objective terms, expression-based mapping, cell-density regularization, and embedding-based similarity and distance constraints, act synergistically to improve robustness and prevent overfitting, highlighting the importance of integrating complementary signals during optimization.
In real-world applications, Cell2Map more faithfully reconstructs tissue architecture and tumor microenvironments than competing approaches. Across multiple breast cancer datasets, including DCIS and invasive carcinoma samples, Cell2Map accurately localizes tumor cells to histologically annotated regions, resolves intratumoral subclone structure, and minimizes false-positive assignments of immune or normal epithelial cells within tumor cores. These results demonstrate Cell2Map’s ability to preserve biologically meaningful spatial boundaries and cell-type segregation, which is critical for downstream studies of tumor heterogeneity and immune interactions. Importantly, Cell2Map is robust to variation in scRNA-seq reference datasets, performing consistently across references with different cell-type compositions and annotation granularity. This flexibility enhances its applicability to diverse experimental settings, including cases in which high-quality or finely annotated reference data are not available [24]. Furthermore, an important line of evidence supporting the accuracy of Cell2Map comes from the spatial expression patterns of lineage-specific marker genes across multiple cell types and independent studies. For example, tumor-associated markers (e.g. ERBB2 [47], HOXB2 [46], FOXA1 [60]) were enriched within histologically defined malignant regions, whereas markers (e.g. PTPRC [49], CD3D [50], ANKRD30A [61]) for normal epithelial or immune populations (e.g. NK/T cells) were predominantly localized outside tumor cores or within stromal and peritumoral regions. The strong agreement between projected cell locations and independently observed marker-gene expression provides orthogonal biological validation that the reconstructed maps are not merely computationally plausible, but are also consistent with tissue morphology and known cell-type-specific transcriptional programs. These validations establish Cell2Map as a sensitive, accurate, and robust framework for integrating scRNA-seq and SRT data, enabling improved spatial resolution of cellular organization and providing a valuable tool for studying complex tissues and disease microenvironments.
One limitation of the current study is that the benchmark simulations mainly evaluate Cell2Map under settings in which the scRNA-seq reference contains the major cell populations present in the spatial transcriptomics data. In real applications, however, the scRNA-seq reference may be incomplete, and some cell types may be missing or under-represented in the reference dataset. Therefore, if a cell type is completely absent from the reference, Cell2Map may not be able to explicitly identify that missing population and may instead assign those cells to transcriptionally similar cell types. Similarly, when rare cell populations are strongly under-represented in the reference, the accuracy of their spatial mapping may decrease. Future work will include systematic benchmarking under incomplete-reference scenarios, including removing selected cell types from the reference, down-sampling rare populations, and evaluating robustness across different donors, batches, and tissue conditions.
Several directions may further improve Cell2Map and extend its applicability. First, the current framework could be enhanced by incorporating additional biological priors, such as known cell-cell interaction networks [62], ligand receptor signaling [63], or histology-derived features (e.g. morphology or texture from H&E images) [64], to provide complementary constraints beyond transcriptional and spatial proximity. Second, methodologically, future versions of Cell2Map could explore more expressive latent representations, including hierarchical or multi-resolution embeddings that explicitly model spatial structure at different scales. Integrating uncertainty estimation may further reduce false positives by quantifying confidence in cell-to-spot assignments. In the current framework, the soft mapping matrix provides a natural basis for per-cell uncertainty quantification: the entropy of each cell’s assignment distribution can be used to flag ambiguous assignments, especially under high noise or low spot resolution. Cells with high entropy may benefit from follow-up analysis or could be flagged as uncertain in downstream workflows. Third, Cell2Map uses fixed weighting coefficients to maintain interpretability, reproducibility, and ease of implementation. Future work may incorporate adaptive or data-driven weighting strategies, such as Bayesian optimization, uncertainty-based weighting, multi-objective learning, or attention-based parameter estimation, to automatically balance different objective terms according to dataset-specific characteristics. In addition, extending the framework to jointly integrate multiple spatial modalities (e.g. single-cell spatial proteomics [65, 66] or imaging-based transcriptomics [67]) and to leverage transfer learning or foundation models trained on large spatial datasets could substantially improve performance in data-limited settings. Implementation of these directions will further advance Cell2Map into a more general and extensible platform for spatial multi-omics integration.
Key Points
Cell2Map is an unsupervised deep learning method that accurately maps single-cell RNA-seq profiles to spatial transcriptomics spots for high-resolution cell localization.
Cell2Map uses the graph attention autoencoder architecture with a four-term objective function to jointly optimize transcriptional similarity, spatial structure, cell density, and embedding-level relationships.
Cell2Map accurately reconstructs tumor subclones, fibrosis-associated cell localization, and tumor microenvironments, aligning closely with histological annotations and marker-gene expression patterns.
Supplementary Material
Contributor Information
Yanan Chen, Department of Data Science, College of Computer and Information Engineering, Tianjin Normal University, 393 Binshui West Road, Xiqing District, Tianjin, Tianjin 300387, China.
Ruoyu Chen, Department of Physiology, College of Arts and Sciences, University of Pennsylvania, 3600 Market Street, Philadelphia, PA 19104, United States.
Shaoqiang Zhang, Department of Data Science, College of Computer and Information Engineering, Tianjin Normal University, 393 Binshui West Road, Xiqing District, Tianjin, Tianjin 300387, China.
Yong Chen, Department of Biological and Biomedical Sciences, College of Science and Mathematics, Rowan University, 201 Mullica Hill Road, Glassboro, NJ 08028, United States.
Author contributions
Shaoqiang Zhang and Yong Chen (initiated the concept and supervised the study), Shaoqiang Zhang and Yong Chen (designed the methodology), Yanan Chen (implemented the software), Yanan Chen, Ruoyu Chen, and Shaoqiang Zhang (performed the data analysis), Shaoqiang Zhang and Yong Chen (drafted and reviewed the paper). All authors read and edited the final manuscript.
Conflicts of interest
None declared.
Funding
This work was supported by the NSF CAREER Award DBI-2239350 to Y.C.; a key project of Natural Science Foundation of Tianjin City (19JCZDJC35100) and the National Science Foundation of China (61572358) to S.Z.
Data availability
The simulated data of mouse cerebellum and hippocampus can be obtained from https://github.com/digitalcytometry/cytospace. The scRNA-seq data of DCIS1 and DCIS2 of ductal carcinoma can be obtained from the National Center for Biotechnology Information Gene Expression Omnibus (NCBI GEO) with accession numbers GSM5493629 and GSM5493631, respectively. The SRT data of DCIS1 and DCIS2 can be obtained from the Spatial Transcript Omics DataBase with accession numbers STSP0000956 and STSP0000958, respectively. The HER2+ breast cancer scRNA-seq data can be obtained from the GEO with accession number GSE176078. The Visium breast cancer SRT data are available in https://www.10xgenomics.com/datasets/human-breast-cancer-visium-fresh-frozen-whole-transcriptome-1-standard. The MI scRNA-seq data can be obtained from the GEO with accession number GSE129175. The SRT data of MI can be obtained from the GEO with accession number GSE165857. The code for Cell2Map is available at https://github.com/shaoqiangzhang/Cell2Map.
References
- 1. Lu T, Ang CE, Zhuang X. Spatially resolved epigenomic profiling of single cells in complex tissues. Cell 2022;185:4448–4464.e17. 10.1016/j.cell.2022.09.035 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2. Yan C, Zhu Y, Chen M et al. Integration tools for scRNA-seq data and spatial transcriptomics sequencing data. Brief Funct Genomics 2024;23:295–302. 10.1093/bfgp/elae002 [DOI] [PubMed] [Google Scholar]
- 3. Zormpas E, Queen R, Comber A et al. Mapping the transcriptome: realizing the full potential of spatial data analysis. Cell 2023;186:5677–89. 10.1016/j.cell.2023.11.003 [DOI] [PubMed] [Google Scholar]
- 4. Ji AL, Rubin AJ, Thrane K et al. Multimodal analysis of composition and spatial architecture in human squamous cell carcinoma. Cell 2020;182:497–514.e22. 10.1016/j.cell.2020.05.039 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Rodriques SG, Stickels RR, Goeva A et al. Slide-seq: a scalable technology for measuring genome-wide expression at high spatial resolution. Science 2019;363:1463–7. 10.1126/science.aaw1219 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Chen A, Liao S, Cheng M et al. Spatiotemporal transcriptomic atlas of mouse organogenesis using DNA nanoball-patterned arrays. Cell 2022;185:1777–1792.e21. 10.1016/j.cell.2022.04.003 [DOI] [PubMed] [Google Scholar]
- 7. Chen KH, Boettiger AN, Moffitt JR et al. Spatially resolved, highly multiplexed RNA profiling in single cells. Science 2015;348:aaa6090. 10.1126/science.aaa6090 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. Codeluppi S, Borm LE, Zeisel A et al. Spatial organization of the somatosensory cortex revealed by osmFISH. Nat Methods 2018;15:932–5. 10.1038/s41592-018-0175-z [DOI] [PubMed] [Google Scholar]
- 9. Eng C-HL, Lawson M, Zhu Q et al. Transcriptome-scale super-resolved imaging in tissues by RNA seqFISH+. Nature 2019;568:235–9. 10.1038/s41586-019-1049-y [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10. Wang X, Allen WE, Wright MA et al. Three-dimensional intact-tissue sequencing of single-cell transcriptional states. Science 2018;361:eaat5691. 10.1126/science.aat5691 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Chen W, Zhang P, Tran TN et al. A visual-omics foundation model to bridge histopathology image with transcriptomics. Res Sq 2025;22:1568–82. 10.1038/s41592-025-02707-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Noorbakhsh J, Foroughi Pour A, Chuang J. Emerging AI approaches for cancer spatial omics. Gigascience 2025;14:14. 10.1093/gigascience/giaf128 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13. Luo J, Fu J, Lu Z et al. Deep learning in integrating spatial transcriptomics with other modalities. Brief Bioinform 2024;26:bbae719. 10.1093/bib/bbae719 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Oliveira MF, Romero JP, Chung M et al. High-definition spatial transcriptomic profiling of immune cell populations in colorectal cancer. Nat Genet. 2025;57:1512–23. 10.1038/s41588-025-02193-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Si Y, Lee JS, Jun G et al. Spatial omics enters the microscopic realm: opportunities and challenges. Trends Genet 2025;41:774–87. 10.1016/j.tig.2025.05.002 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Kleshchevnikov V, Shmatko A, Dann E et al. Cell2location maps fine-grained cell types in spatial transcriptomics. Nat Biotechnol 2022;40:661–71. 10.1038/s41587-021-01139-4 [DOI] [PubMed] [Google Scholar]
- 17. Dong R, Yuan GC. SpatialDWLS: accurate deconvolution of spatial transcriptomic data. Genome Biol 2021;22:145. 10.1186/s13059-021-02362-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Coleman K, Hu J, Schroeder A et al. SpaDecon: cell-type deconvolution in spatial transcriptomics with semi-supervised learning. Commun Biol 2023;6:378. 10.1038/s42003-023-04761-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19. Wan X, Xiao J, Tam SST et al. Integrating spatial and single-cell transcriptomics data using deep generative models with SpatialScope. Nat Commun 2023;14:7848. 10.1038/s41467-023-43629-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20. Ma Y, Zhou X. Spatially informed cell-type deconvolution for spatial transcriptomics. Nat Biotechnol 2022;40:1349–59. 10.1038/s41587-022-01273-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21. Song Q, Su J. DSTG: deconvoluting spatial transcriptomics data through graph-based artificial intelligence. Brief Bioinform 2021;22:bbaa414. 10.1093/bib/bbaa414 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Yin W, Wan Y, Zhou Y. SpatialcoGCN: deconvolution and spatial information-aware simulation of spatial transcriptomics data via deep graph co-embedding. Brief Bioinform 2024;25:bbae130. 10.1093/bib/bbae130 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23. Zhan Y, Zhang Y, Hu Z et al. LETSmix: a spatially informed and learning-based domain adaptation method for cell-type deconvolution in spatial transcriptomics. Genome Med 2025;17:16. 10.1186/s13073-025-01442-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Heumos L, Schaar AC, Lance C et al. Best practices for single-cell analysis across modalities. Nat Rev Genet 2023;24:550–72. 10.1038/s41576-023-00586-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Biancalani T, Scalia G, Buffoni L et al. Deep learning and alignment of spatially resolved single-cell transcriptomes with Tangram. Nat Methods 2021;18:1352–62. 10.1038/s41592-021-01264-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26. Wei R, He S, Bai S et al. Spatial charting of single-cell transcriptomes in tissues. Nat Biotechnol 2022;40:1190–9. 10.1038/s41587-022-01233-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27. Vahid MR, Brown EL, Steen CB et al. High-resolution alignment of single-cell and spatial transcriptomes with CytoSPACE. Nat Biotechnol 2023;41:1543–8. 10.1038/s41587-023-01697-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28. Yin W, Wu X, Chen L et al. Accurate and flexible single cell to spatial transcriptome mapping with Celloc. Small Sci 2024;4:2400139. 10.1002/smsc.202400139 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29. Zhang Q, Jiang S, Schroeder A et al. Leveraging spatial transcriptomics data to recover cell locations in single-cell RNA-seq with CeLEry. Nat Commun 2023;14:4050. 10.1038/s41467-023-39895-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30. Li S, Ma J, Zhao T et al. CellContrast: reconstructing spatial relationships in single-cell RNA sequencing data via deep contrastive learning. Patterns 2024;5:101022. 10.1016/j.patter.2024.101022 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31. Wolf FA, Angerer P, Theis FJ. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol 2018;19:15. 10.1186/s13059-017-1382-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Schmidt, U., Martin Weigert, Coleman, Broaddus, Gene Myers. Cell detection with star-convex polygons. In: Frangi AF, Schnabel JA, Davatzikos C et al. (eds.), Medical Image Computing and Computer Assisted Intervention – MICCAI 2018. Lecture Notes in Computer Science, vol. 11071. Cham: Springer International Publishing, 2018. p. 265–73. 10.1007/978-3-030-00934-2_30. [DOI] [Google Scholar]
- 33. Virtanen P, Gommers R, Oliphant TE et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat Methods 2020;17:261–72. 10.1038/s41592-019-0686-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34. Saunders A, Macosko EZ, Wysoker A et al. Molecular diversity and specializations among the cells of the adult mouse brain. Cell 2018;174:1015–1030.e16. 10.1016/j.cell.2018.07.028 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35. Ren Z, Yu P, Li D et al. Single-cell reconstruction of progression trajectory reveals intervention principles in pathological cardiac hypertrophy. Circulation 2020;141:1704–19. 10.1161/CIRCULATIONAHA.119.043053 [DOI] [PubMed] [Google Scholar]
- 36. Jung S-H, Hwang BH, Shin S et al. Spatiotemporal dynamics of macrophage heterogeneity and a potential function of Trem2hi macrophages in infarcted hearts. Nat Commun 2022;13:4580. 10.1038/s41467-022-32284-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37. Wu SZ, al-Eryani G, Roden DL et al. A single-cell and spatially resolved atlas of human breast cancers. Nat Genet 2021;53:1334–47. 10.1038/s41588-021-00911-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38. Stelzer G, Rosen N, Plaschkes I et al. The GeneCards suite: from gene data mining to disease genome sequence analyses. Curr Protoc Bioinformatics 2016;54:1 30 1–33. 10.1002/cpbi.5 [DOI] [PubMed] [Google Scholar]
- 39.McInnes L, Healy J, Saul N et al. UMAP: Uniform Manifold Approximation and Projection. Journal of Open Source Software 2018;3:861. 10.21105/joss.00861 [DOI] [Google Scholar]
- 40. Metovic J, Borella F, D’Alonzo M et al. FOXA1 in breast cancer: a luminal marker with promising prognostic and predictive impact. Cancers (Basel) 2022;14:4699. 10.3390/cancers14194699 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41. Mitra S, Federico L, Zhao W et al. Rab25 acts as an oncogene in luminal B breast cancer and is causally associated with snail driven EMT. Oncotarget 2016;7:40252–65. 10.18632/oncotarget.9730 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42. Jian L, Xie J, Guo S et al. AGR3 promotes estrogen receptor-positive breast cancer cell proliferation in an estrogen-dependent manner. Oncol Lett 2020;20:1441–51. 10.3892/ol.2020.11683 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43. Dastsooz H, Anselmi F, Lauria A et al. Involvement of N4BP2L1, PLEKHA4, and BEGAIN genes in breast cancer and muscle cell development. Front Cell Dev Biol 2024;12:1295403. 10.3389/fcell.2024.1295403 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44. Liu NQ, Cao WH, Wang X et al. Cyclin genes as potential novel prognostic biomarkers and therapeutic targets in breast cancer. Oncol Lett 2022;24:374. 10.3892/ol.2022.13494 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45. Minguillon J, Ramírez MJ, Rovirosa L. CDK5RAP3, a new BRCA2 partner that regulates DNA repair, is associated with breast cancer survival. Cancers (Basel) 2022;14:353. 10.3390/cancers14020353 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46. Oh JH, Kim CY, Jeong DS et al. The homeoprotein HOXB2 limits triple-negative breast carcinogenesis via extracellular matrix remodeling. Int J Biol Sci 2024;20:1045–63. 10.7150/ijbs.88837 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47. Plum PS, Gebauer F, Krämer M et al. HER2/neu (ERBB2) expression and gene amplification correlates with better survival in esophageal adenocarcinoma. BMC Cancer 2019;19:38. 10.1186/s12885-018-5242-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48. Zhao T, Meng W, Chin Y et al. Identification of miR-25-3p as a tumor biomarker: regulation of cellular functions via TOB1 in breast cancer. Mol Med Rep 2021;23:406. 10.3892/mmr.2021.12045 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49. Li P, Wang W, Wang S et al. PTPRC promoted CD8+ T cell mediated tumor immunity and drug sensitivity in breast cancer: based on pan-cancer analysis and artificial intelligence modeling of immunogenic cell death-based drug sensitivity stratification. Front Immunol 2023;14:1145481. 10.3389/fimmu.2023.1145481 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50. Zhu Z, Ye W, Wu X et al. Comprehensive analysis reveals a prognostic and therapeutic biomarker CD3D in the breast carcinoma microenvironment. Biosci Rep 2021;41:BSR20202898. 10.1042/BSR20202898 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 51. Huang G, Wei Y, Hou X et al. CD2-CD58 axis orchestrates cytotoxic T lymphocyte function and metabolic crosstalk in breast cancer brain metastasis. J Cell Commun Signal 2025;19:e70040. 10.1002/ccs3.70040 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52. Qin H, Yuan Y, Yuan M et al. Degradation of AZGP1 suppresses the progression of breast cancer cells via TRIM25. Environ Toxicol 2024;39:882–9. 10.1002/tox.24016 [DOI] [PubMed] [Google Scholar]
- 53. Coelho RC, Ruppenthal RD, Graudenz MS. Trop-2 is highly expressed in early luminal-like breast cancer. J Histochem Cytochem 2023;71:529–35. 10.1369/00221554231195659 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54. Jin Y, Eum DY, Lee C et al. Breast cancer malignancy is governed by regulation of the macroH2A2/TM4SF1 axis, the AKT/NF-kappaB pathway, and elevated MMP13 expression. Mol Carcinog 2024;63:714–27. 10.1002/mc.23683 [DOI] [PubMed] [Google Scholar]
- 55. Novikov DV, Fomina SG, Gurina NN et al. The correlation of expression of MUC1, ICAM1, IL32, FcyR3A and FoxP3 in tumor niduses of patients with breast cancer. Klin Lab Diagn 2017;62:35–9. [PubMed] [Google Scholar]
- 56. Arikan-Soylemez ES, Çilekar M, Akici M et al. Investigation of the IL7Ralpha gene polymorphism rs6897932 and the expression levels of the CDH1, TTPAL, and FHIT genes in patients with breast cancer. P R Health Sci J 2023;42:283–90. [PubMed] [Google Scholar]
- 57. Guo L, Li F, Liu H et al. SIX1 amplification modulates stemness and tumorigenesis in breast cancer. J Transl Med 2023;21:866. 10.1186/s12967-023-04679-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58. Treekitkarnmongkol W, Shah V, Kai K et al. Epigenetic activation of SOX11 is associated with recurrence and progression of ductal carcinoma in situ to invasive breast cancer. Br J Cancer 2024;131:171–83. 10.1038/s41416-024-02697-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59. Liu Y, Zeng Y. Expression of the genes QPRT, RAB26, and SRPRB in cancer tissue from patients with triple-negative breast cancer as a biomarker for diagnosis, pharmacotherapy strategy, and survival: evidence from bioinformatic database analysis. Int J Clin Pharmacol Ther 2025;63:575–83. 10.5414/CP204751 [DOI] [PubMed] [Google Scholar]
- 60. Blawski R, Toska E. A unique FOXA1-associated chromatin state dictates therapeutic resistance in lobular breast cancer. Cancer Res 2022;82:3668–70. 10.1158/0008-5472.CAN-22-2594 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61. Biserni GB, di Oto E, Moskovszky LE et al. Preferential expression of NY-BR-1 and GATA-3 in male breast cancer. J Cancer Res Clin Oncol 2018;144:199–204. 10.1007/s00432-017-2542-z [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62. Noh JY, Lee HI, Choi JH et al. CCIDB: a manually curated cell-cell interaction database with cell context information. Database (Oxford) 2023;2023:baad057. 10.1093/database/baad057 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 63. Xin Y, Amanullah M, Qian C et al. Lignature: a comprehensive database of ligand signatures to predict cell-cell communication. bioRxiv. 2025;2025.03.22.644770. 10.1101/2025.03.22.644770 [DOI]
- 64. Tafavvoghi M, Bongo LA, Shvetsov N et al. Publicly available datasets of breast histopathology H&E whole-slide images: a scoping review. J Pathol Inform 2024;15:100363. 10.1016/j.jpi.2024.100363 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65. Qin R, He F, Qin W. Spatial proteomics using S4P. Bio Protoc 2026;16:e5620. 10.21769/BioProtoc.5620 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66. Yoo S, Young C, Li L et al. Single-cell spatial proteomics uncovers molecular interconnectivity among hallmarks of aging. bioRxiv. 2026;2026.02.26.708335. 10.64898/2026.02.26.708335 [DOI]
- 67. Beachum AH, Xiao X, Zhou Y et al. Advances in predicting omics profiles from imaging data. Brief Bioinform 2026;27:bbag090. 10.1093/bib/bbag090 [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
The simulated data of mouse cerebellum and hippocampus can be obtained from https://github.com/digitalcytometry/cytospace. The scRNA-seq data of DCIS1 and DCIS2 of ductal carcinoma can be obtained from the National Center for Biotechnology Information Gene Expression Omnibus (NCBI GEO) with accession numbers GSM5493629 and GSM5493631, respectively. The SRT data of DCIS1 and DCIS2 can be obtained from the Spatial Transcript Omics DataBase with accession numbers STSP0000956 and STSP0000958, respectively. The HER2+ breast cancer scRNA-seq data can be obtained from the GEO with accession number GSE176078. The Visium breast cancer SRT data are available in https://www.10xgenomics.com/datasets/human-breast-cancer-visium-fresh-frozen-whole-transcriptome-1-standard. The MI scRNA-seq data can be obtained from the GEO with accession number GSE129175. The SRT data of MI can be obtained from the GEO with accession number GSE165857. The code for Cell2Map is available at https://github.com/shaoqiangzhang/Cell2Map.














