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.post1.tar.gz (16.2 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.post1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spagcn_modern-1.2.7.post1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for spagcn_modern-1.2.7.post1.tar.gz
Algorithm Hash digest
SHA256 1842d4a802b437312a534ff7dcef6a64482dbb21184f3f5b83e073203e712410
MD5 516404a069444c4e8e1abd427ac7a983
BLAKE2b-256 bdc6ced1a0738ec212d0106b0f812be703400b42539087d2bf1edc9f44d52020

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for spagcn_modern-1.2.7.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 391055cec499d8bffceab94064d2ed74d51c2f92568fe579b020590656293eb1
MD5 bcd36989adfc9877678a88bfe6c18eb4
BLAKE2b-256 8ae9fd58814196fe8cd6d656d6f47593102b448057c8fcf2b3f7d5f11f36834c

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