SpaGCN
A graph convolutional network that clusters the spots of a spatial transcriptomics slide into spatial domains.
Molecules, proteins and genomics · 16 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 2.9K
- Operations
- 16
- Framework
- PyTorch
- Recurrent
- No
- Published
- Nature Methods 2021
- Cited by
- 1,103 (as of 23 October 2026)
- Authors
- Jian Hu, Xiangjie Li, Kyle Coleman and others
- Source
- GitHub: jianhuupenn/SpaGCN
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m2868
- Graph hash
- 69b5e67f73c7255f2723f1f555df05d1c267bc343b0121568f3b07edf791485b
- Skeleton hash
- 92e221449241654f13b96cfa13aa671679177521cbb955ac002460e368c9a6ce
- Architecture hash
- f85dba41d7d0a4e205f8623b6d1ac15292ab400446121eebd1005fe3b9507824
- Diagram SHA-256
- 8c98a5973c784d44ff71f5ad7813ff4666ee138c39a9a71c17bc2e2992e57b54
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
SpaGCN is a graph convolutional network for spatially resolved transcriptomics (SRT), data that record gene expression at many spots across a tissue slide. It combines gene expression, spatial location and histology to find spatial domains, meaning regions with coherent expression and histology.
All spots of a slide are placed in one undirected weighted graph built from gene expression, spatial locations and histological pixel intensities. The input features are the top 50 principal components of the expression matrix. A graph convolutional layer aggregates the expression of each spot from its neighboring spots according to the edge weights, and the result goes to a deep embedding clustering algorithm that assigns spots to domains. Cluster centroids are initialized with Louvain's method. The assignments are then refined iteratively by minimizing a Kullback-Leibler (KL) divergence loss.
Once the domains are found, genes enriched in each one are detected by differential expression analysis between domains. The paper analyzes seven SRT datasets and reports that SpaGCN detects genes with more enriched spatial expression patterns than competing methods. The authors describe it as applicable both to in-situ transcriptomics with single-cell resolution and to spatial barcoding based transcriptomics.
Key idea. SpaGCN integrates gene expression, spatial location and histology in a graph convolutional network to identify spatial domains and spatially variable genes.
- SpaGCN
- spatial transcriptomics
- spatially resolved transcriptomics
- spatial domain detection
- spatially variable genes
- graph convolutional network
- GCN
- histology
- 10x Visium
- deep embedding clustering
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Hu_2021, title={SpaGCN: Integrating gene expression, spatial location and histology to identify spatial domains and spatially variable genes by graph convolutional network}, volume={18}, ISSN={1548-7105}, url={http://dx.doi.org/10.1038/s41592-021-01255-8}, DOI={10.1038/s41592-021-01255-8}, number={11}, journal={Nature Methods}, publisher={Springer Science and Business Media LLC}, author={Hu, Jian and Li, Xiangjie and Coleman, Kyle and Schroeder, Amelia and Ma, Nan and Irwin, David J. and Lee, Edward B. and Shinohara, Russell T. and Li, Mingyao}, year={2021}, month=Oct, pages={1342–1351} }