SpaGCN Modern
spagcn-modern is an independently maintained fork of
SpaGCN, a graph convolutional network
for identifying spatial domains and spatially variable genes from gene
expression, spatial coordinates, and histology.
The distribution keeps the original SpaGCN import package and numerical API
while supporting current Python, SciPy, Scanpy, and AnnData releases. Graph
initialization uses the maintained Leiden implementation built into igraph.
Installation
pip install spagcn-modern
The import name remains unchanged:
import SpaGCN
Maintenance scope
This repository contains only the maintained Python distribution. Tutorials, sample outputs, prebuilt distributions, and paper assets remain available in the original repository and are not runtime dependencies.
Compatibility fixes in this fork include:
- current SciPy sparse-array conversion through
toarray(); - corrected
use_rawbehavior inplot_log_exp; - mathematically correct DEC soft assignments using the Student's t kernel;
- native sparse PCA plus cached resolution-search preprocessing;
- bounded Gaussian-kernel workspaces and zero-copy float32 tensor conversion;
- minimal runtime dependency metadata derived from imports;
- maintained igraph Leiden initialization instead of the obsolete Louvain extension;
- isolated wheel builds and sparse-data smoke tests in CI.
Citation
Please cite the original SpaGCN publication:
Hu J, et al. SpaGCN: Integrating gene expression, spatial location and histology to identify spatial domains and spatially variable genes by graph convolutional network. Nature Methods (2021).
Attribution and license
SpaGCN was created by Jian Hu and collaborators. This maintained fork preserves
the original MIT license and records its upstream base in
NOTICE.md.
Metadata
Release files for spagcn-modern 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spagcn_modern-1.3.0.tar.gz | 19.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spagcn_modern-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.1 kB
Release files / spagcn_modern-1.3.0.tar.gz
| Download URL | spagcn_modern-1.3.0.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15c7e6f9c37f68397e9172e413cbb0a2d4f3f93e25f1b1d8aa883b126dac3f77
|
|
BLAKE2b-256 checksum How to use checksums |
2eee2006ddcb9174c562d55a0df735251c6e8ad800be0c19e6f667e60578282a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logRelease files / spagcn_modern-1.3.0-py3-none-any.whl
| Download URL | spagcn_modern-1.3.0-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f84ff752d54a0142f3c5a557fc6a350cd768617da23911f5ac5bed67dc79323
|
|
BLAKE2b-256 checksum How to use checksums |
aa3e645c748cf5021512df12359806f84edd665bbe8dd8fe7f56eeb19c008ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency log