Single-cell RNA sequencing can reveal which genes are active in individual cells, but the process of separating cells from tissue removes information about where those cells originally lived.
That spatial information matters because cells behave differently depending on their neighbors and their position within a tissue. Researchers at Shandong University have developed Cell2space, a deep learning framework that combines single-cell RNA sequencing with spatial transcriptomics to reconstruct cellular organization.
Overview of Cell2space
(a) The inputs of Cell2space include scRNA-seq (SC) data and ST with domain annotations. (b) The gene expression profiles from scRNA-seq and ST are integrated into a unified feature space to mitigate technical discrepancies and align the distributional differences between the two modalities. (c) Cell2space establishes a universal spatial affinity function, parameterized by a dense MLP, by contrasting spatially adjacent positive pairs and distant negative pairs in the shared latent feature space. (d) Once trained, the MLP-based affinity function predicts the affinity between each single cell and reference ST spots, enabling spatial domain assignment by aggregating spot-level affinities within each domain. (e) Based on the shared latent representations of query cells, the trained MLP-based spatial affinity function computes pairwise cell–cell affinities, which are further refined using domain-level topological constraints to infer spatial cell–cell neighborhood relationships. (f) By restoring the spatial context of single-cell profiles, Cell2space enables deep biological insights, including high-resolution tissue mapping, neighborhood relationship analysis, and the expansion of the spatial transcriptomic landscape.
Adding location back to single-cell data
Spatial transcriptomics preserves information about where gene expression occurs in a tissue, while single-cell RNA sequencing usually provides greater detail about individual cells.
Cell2space combines these strengths. It uses a spatial transcriptomics reference to learn how gene expression relates to physical location, then applies that information to single-cell RNA sequencing data.
Rather than trying to predict an exact coordinate for every cell, Cell2space first assigns cells to broader tissue regions, then refines those assignments by predicting which cells are likely to be neighbors.
Learning spatial relationships with deep learning
The framework learns what the researchers call a spatial affinity function.
This function estimates how likely two cells or locations are to be close together based on their gene expression patterns. Cell2space first places cells into large-scale spatial domains, then uses those domain assignments to help reconstruct smaller-scale cell-to-cell neighborhoods.
This stepwise strategy helps preserve biologically realistic tissue structure rather than treating spatial reconstruction as a simple coordinate prediction problem.
Reconstructing tissue architecture
The researchers evaluated Cell2space using several benchmark datasets and reported strong performance for both spatial domain assignment and neighborhood reconstruction.
They then applied the framework to mouse visual cortex and human skin data.
In the mouse visual cortex, Cell2space identified markers associated with specific cortical layers and revealed continuous gene expression gradients across the tissue. It also expanded the effective gene coverage of a targeted spatial transcriptomics dataset by integrating it with whole-transcriptome single-cell data.
In human skin, the method reconstructed the layered organization of the tissue without requiring prior cell annotations.
Combining single-cell and spatial transcriptomics
Single-cell RNA sequencing provides detailed information about cellular identity, while spatial transcriptomics shows where biological signals occur.
Cell2space connects these two types of information by restoring spatial relationships to dissociated single cells.
This type of analysis can help researchers investigate tissue architecture, cell neighborhoods and cellular microenvironments with greater detail, especially in complex tissues where both cell identity and physical location influence biological function.
Availability – The open-source Python implementation of Cell2space is available on GitHub at https://github.com/SDU-Math-SunLab/Cell2space.
Pan J, Guan Q, Sun D. (2026) Stepwise multi-scale reconstruction of cell spatial organization from single-cell RNA sequencing data with Cell2space. Briefings in Bioinformatics 27(5): bbag531. [article]
Single-cell RNA sequencing can reveal which genes are active in individual cells, but the process of separating cells from tissue removes information about where those cells originally lived.
That spatial information matters because cells behave differently depending on their neighbors and their position within a tissue. Researchers at Shandong University have developed Cell2space, a deep learning framework that combines single-cell RNA sequencing with spatial transcriptomics to reconstruct cellular organization.
Overview of Cell2space
(a) The inputs of Cell2space include scRNA-seq (SC) data and ST with domain annotations. (b) The gene expression profiles from scRNA-seq and ST are integrated into a unified feature space to mitigate technical discrepancies and align the distributional differences between the two modalities. (c) Cell2space establishes a universal spatial affinity function, parameterized by a dense MLP, by contrasting spatially adjacent positive pairs and distant negative pairs in the shared latent feature space. (d) Once trained, the MLP-based affinity function predicts the affinity between each single cell and reference ST spots, enabling spatial domain assignment by aggregating spot-level affinities within each domain. (e) Based on the shared latent representations of query cells, the trained MLP-based spatial affinity function computes pairwise cell–cell affinities, which are further refined using domain-level topological constraints to infer spatial cell–cell neighborhood relationships. (f) By restoring the spatial context of single-cell profiles, Cell2space enables deep biological insights, including high-resolution tissue mapping, neighborhood relationship analysis, and the expansion of the spatial transcriptomic landscape.
Adding location back to single-cell data
Spatial transcriptomics preserves information about where gene expression occurs in a tissue, while single-cell RNA sequencing usually provides greater detail about individual cells.
Cell2space combines these strengths. It uses a spatial transcriptomics reference to learn how gene expression relates to physical location, then applies that information to single-cell RNA sequencing data.
Rather than trying to predict an exact coordinate for every cell, Cell2space first assigns cells to broader tissue regions, then refines those assignments by predicting which cells are likely to be neighbors.
Learning spatial relationships with deep learning
The framework learns what the researchers call a spatial affinity function.
This function estimates how likely two cells or locations are to be close together based on their gene expression patterns. Cell2space first places cells into large-scale spatial domains, then uses those domain assignments to help reconstruct smaller-scale cell-to-cell neighborhoods.
This stepwise strategy helps preserve biologically realistic tissue structure rather than treating spatial reconstruction as a simple coordinate prediction problem.
Reconstructing tissue architecture
The researchers evaluated Cell2space using several benchmark datasets and reported strong performance for both spatial domain assignment and neighborhood reconstruction.
They then applied the framework to mouse visual cortex and human skin data.
In the mouse visual cortex, Cell2space identified markers associated with specific cortical layers and revealed continuous gene expression gradients across the tissue. It also expanded the effective gene coverage of a targeted spatial transcriptomics dataset by integrating it with whole-transcriptome single-cell data.
In human skin, the method reconstructed the layered organization of the tissue without requiring prior cell annotations.
Combining single-cell and spatial transcriptomics
Single-cell RNA sequencing provides detailed information about cellular identity, while spatial transcriptomics shows where biological signals occur.
Cell2space connects these two types of information by restoring spatial relationships to dissociated single cells.
This type of analysis can help researchers investigate tissue architecture, cell neighborhoods and cellular microenvironments with greater detail, especially in complex tissues where both cell identity and physical location influence biological function.
Availability – The open-source Python implementation of Cell2space is available on GitHub at https://github.com/SDU-Math-SunLab/Cell2space.
Pan J, Guan Q, Sun D. (2026) Stepwise multi-scale reconstruction of cell spatial organization from single-cell RNA sequencing data with Cell2space. Briefings in Bioinformatics 27(5): bbag531. [article]












Stay Connected