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;
  • 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.2.7.post2.tar.gz (16.1 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.2.7.post2-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file spagcn_modern-1.2.7.post2.tar.gz.

File metadata

  • Download URL: spagcn_modern-1.2.7.post2.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.9

File hashes

Hashes for spagcn_modern-1.2.7.post2.tar.gz
Algorithm Hash digest
SHA256 5a6ccc7f16c6f48ce312c78b37c8a2d838e4e162df96681fed67bd068bf88b0a
MD5 63ddc508bb0363cc2f5cd667ac40595a
BLAKE2b-256 32cee5e80a6bd014fef0d6f9b93dee54e10820d9aece2b44ca9a17d4b63dcace

See more details on using hashes here.

File details

Details for the file spagcn_modern-1.2.7.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for spagcn_modern-1.2.7.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 780a07207001e572d6a79761e7cdf0f80744a03afd418d32aa25aeedf95e09d6
MD5 ee5babd1d0ccbeca18c5798f45d33f1d
BLAKE2b-256 6d9985dfaf298194feb9d1ce62c922bc981a67a4792dc5af93e098a975ada7ed

See more details on using hashes here.

Supported by

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