Skip to main content

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_raw behavior in plot_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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spagcn_modern-1.3.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spagcn_modern-1.3.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file spagcn_modern-1.3.0.tar.gz.

File metadata

  • Download URL: spagcn_modern-1.3.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for spagcn_modern-1.3.0.tar.gz
Algorithm Hash digest
SHA256 15c7e6f9c37f68397e9172e413cbb0a2d4f3f93e25f1b1d8aa883b126dac3f77
MD5 79efe00871a19c27d19fe753475cdc57
BLAKE2b-256 2eee2006ddcb9174c562d55a0df735251c6e8ad800be0c19e6f667e60578282a

See more details on using hashes here.

Provenance

The following attestation bundles were made for spagcn_modern-1.3.0.tar.gz:

Publisher: publish.yml on cafferychen777/SpaGCN

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spagcn_modern-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: spagcn_modern-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for spagcn_modern-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f84ff752d54a0142f3c5a557fc6a350cd768617da23911f5ac5bed67dc79323
MD5 c55a700585adc6a02e4a0e2b6851fa8a
BLAKE2b-256 aa3e645c748cf5021512df12359806f84edd665bbe8dd8fe7f56eeb19c008ae5

See more details on using hashes here.

Provenance

The following attestation bundles were made for spagcn_modern-1.3.0-py3-none-any.whl:

Publisher: publish.yml on cafferychen777/SpaGCN

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page