Skip to content

Gene Expression Prediction from Histology Images via Hypergraph Neural Networks

License

Notifications You must be signed in to change notification settings

QSong-github/HGGEP

Repository files navigation

Gene Expression Prediction from Histology Images via Hypergraph Neural Networks

Spatial transcriptomics reveals the spatial distribution of genes in complex tissues, providing crucial insights into biological processes, disease mechanisms, and drug development. The prediction of gene expression based on cost-effective histology images is a promising yet challenging field of research. Existing methods for gene prediction from histology images exhibit two major limitations. First, they ignore the intricate relationship between cell morphological information and gene expression. Second, these methods do not fully utilize the different latent stages of features extracted from the images. To address these limitations, this paper proposes a novel hypergraph neural network model, HGGEP, to predict gene expressions from histology images. HGGEP includes a gradient enhancement module to enhance the model’s perception of cell morphological information. A lightweight backbone network extracts multiple latent stage features from the image, followed by attention mechanisms to refine the representation of features at each latent stage and capture their relations with nearby features. To explore higher-order associations among multiple latent stage features, we stack them and feed into the hypergraph to establish associations among features at different scales. Experimental results on multiple datasets from disease samples including cancers and tumor disease, demonstrate the superior performance of our HGGEP model than existing methods.

(Variational) gcn

Installation

Download HGGEP:

git clone https://github.com/QSong-github/HGGEP

System environment

Required package:

  • PyTorch >= 1.10
  • pytorch-lightning >= 1.4
  • scanpy >= 1.8
  • python >= 3.7
  • torch_geometric

HGGEP pipeline

See tutorial.ipynb

NOTE: Run the following command if you want to run the script tutorial.ipynb

  1. Please run the script download.sh in the folder data

or

Run the command line git clone https://github.com/almaan/her2st.git in the dir data

  1. Run gunzip *.gz in the dir HGGEP/data/her2st/data/ST-cnts/ to unzip the gz files

Datasets

Trained models

All Trained models of our method on HER2+ and cSCC datasets can be found at synapse

Train models

# go to /path/to/HGGEP
# for HER2+ dataset
python HGGEP_train.py --data "her2st"

# for cSCC dataset
python HGGEP_train.py --data "cscc"

Test models

See test_model.ipynb

About

Gene Expression Prediction from Histology Images via Hypergraph Neural Networks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published