Skip to main content

GSG: A generative self-supervised graph learning framework for spatial transcriptomics

Project description

A masked generative graph representation learning framework empowering precise spatial domain identification

GitHub Repo stars    GitHub watchers    GitHub


✨ Overview

Recent advances in spatial transcriptomics (ST) have opened new avenues for preserving spatial information while measuring gene expression. Yet, the challenge of seamlessly integrating this data into accurate and transferable representation remains. Here, we introduce a generative self-supervised graph (GSG) learning framework to achieve an effective joint embedding of location and gene expression within ST data. Our approach surpasses existing methods in identifying spatial domains within the human dorsolateral prefrontal cortex. Moreover, it can offer reliable analyses across various techniques, including Stereo-seq, Slide-seq, and seqFISH, irrespective of spatial resolution. Furthermore, GSG addresses dropout defects, enhancing gene expression by smoothing spatial patterns, extracting critical features, reducing batch effects, and enabling the integration of disparate datasets. Additionally, we performed spatial transcriptomic analysis on fetal human hearts, and applied GSG to extract biological insights. These experiments highlight GSG's accuracy in identifying spatial domains, uncovering specific APCDD1 expression in fetal endocardium, and implicating its role in congenital heart disease. Our results showcase GSG's superiority and underscore its valuable contributions to advancing spatial-omics analysis.

🛠️ Installation

[!NOTE] !!! The recommended operating system is Ubuntu 18.04 LTS. Some packages may not download correctly on Windows.

Use python virutal environment with conda

conda create -n gsg python=3.8
conda activate gsg
# Need install cudnn based on your CUDA version.Refer to https://developer.nvidia.com/cudnn-archive
# conda install cudnn[=version]

Install GSG

Install GSG and dgl(for gpu) from PyPi:

pip install GSG==0.5.8
pip install dgl-cu110 -f https://data.dgl.ai/wheels/repo.html

Required packages include:

torch==1.9.0, cudnn==8.4, numpy==1.22.0, scanpy==1.8.2, anndata==0.8.0, dgl==0.9.0,
pandas==1.2.4, scipy==1.7.3, scikit-learn==1.0.1, tqdm==4.64.1, matplotlib==3.5.3,
tensorboardX==2.5.1, pyyaml==6.0.1, plotly==5.21.0, kaleido==0.2.1, igraph==0.9.8

🚀 Quick Start

See our model document details from Docs.

We provide the scripts for reproducing the quantitative and visualization results of the paper in /docs/tutorials/.

📚 Citation

Wang C, Zhang T, Sun H, et al. A masked generative graph representation learning framework empowering precise spatial domain identification[J]. Bioinformatics, 2026, 42(6). ++https://doi.org/10.1093/bioinformatics/btag333.++

📩 Contact

If you have any questions, feel free to contact chuyao25@mails.jlu.edu.cn.

Project details


Download files

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

Source Distribution

gsg-0.6.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

gsg-0.6.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file gsg-0.6.0.tar.gz.

File metadata

  • Download URL: gsg-0.6.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.12

File hashes

Hashes for gsg-0.6.0.tar.gz
Algorithm Hash digest
SHA256 2934041b9cdbf22f2317dcb1cadf4c12e012bc90cd15a6902389165c62ba0775
MD5 d5e27ad4bfb6c011c27d37b823322a96
BLAKE2b-256 1aefb6d97ed39a41586e5a352196ad5cab04c68535ba47453ac438bae693b263

See more details on using hashes here.

File details

Details for the file gsg-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: gsg-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.12

File hashes

Hashes for gsg-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a2047ac4ae780065572ba630b5e239fa2eeaaaac9680f805ca544e50c159f1
MD5 47abfcbbfb833e55a5ebc9b06413fd4d
BLAKE2b-256 1807bdd927f47437e6122ce5401268f1b29cdb2d189fe1bc3406143566c326e4

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 Pingdom Monitoring Sentry Error logging StatusPage Status page