SpaceFlow
SpaceFlow, a graph network that embeds spatial transcriptomics data with spatial regularization.
Molecules, proteins and genomics · 140 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
- 155.2K
- Operations
- 140
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2022, Nature Communications
- Cited by
- 242 (as of 26 October 2026)
- Authors
- Honglei Ren, Benjamin L. Walker, Zixuan Cang, Qing Nie
- Source
- GitHub: hongleir/SpaceFlow
- 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
- m20509
- Graph hash
- 6e3370d59b3c5c8b65cc3855befd8a00150cebceb89d332eb7ad6f405e077ca3
- Skeleton hash
- fec14feac970571f5fe26d044acd86b21c359d8472e8f2996c98f48bd41f5838
- Architecture hash
- 12693f0b4eb391ceecf104282b0a9e182f1feec507ab1ee205a6ba776ed89cf5
- Diagram SHA-256
- cb695ccd3084877c98bddd7d48fbcee4266b41f96a4c0bb983c521ff2827d8b2
- 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
SpaceFlow is a graph network for spatial transcriptomics, data made of an expression count matrix plus the spatial coordinates of each cell or spot in a tissue. It turns that data into a low-dimensional embedding in which nearby points are similar in expression and also close in space. From the embedding the method builds a segmentation of the tissue into domains and a pseudo-Spatiotemporal Map (pSM), a spatially coherent pseudotime ordering of cells.
The network input is a spatial expression graph, where each node is a cell with its expression profile and the edges model which cells are spatially adjacent. The paper describes the encoder as a two-layer Graph Convolutional Network with Parametric ReLU activations. Training follows the Deep Graph Infomax (DGI) framework, with a copy of the graph whose nodes are randomly permuted serving as the negative input. SpaceFlow then adds a spatial regularization term to the DGI objective, so that distance in the embedding reflects distance in the tissue as well as expression.
The paper compares SpaceFlow with five existing methods on six spatial transcriptomics datasets and reports competitive performance on those benchmarks. The default embedding size is 50. The regularization loss is quadratic in the number of cells or spots, which is why the paper adds a subsampling strategy for large datasets.
Key idea. SpaceFlow combines a Deep Graph Infomax framework with spatial regularization to produce spatially consistent low-dimensional embeddings of spatial transcriptomics data.
- spaceflow
- spatial transcriptomics
- spatial domain segmentation
- pseudo-spatiotemporal map
- psm
- pseudotime
- cell embedding
- spatially regularized graph network
- graph convolutional encoder
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Ren_2022, title={Identifying multicellular spatiotemporal organization of cells with SpaceFlow}, volume={13}, ISSN={2041-1723}, url={http://dx.doi.org/10.1038/s41467-022-31739-w}, DOI={10.1038/s41467-022-31739-w}, number={1}, journal={Nature Communications}, publisher={Springer Science and Business Media LLC}, author={Ren, Honglei and Walker, Benjamin L. and Cang, Zixuan and Nie, Qing}, year={2022}, month=July }