Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GCNG
using graph convolutional neural network and spaital transcriptomics data to infer cell-cell interactions
# Title, GCNG: Graph convolutional networks for inferring cell-cell interactions
# GCNG: Graph convolutional networks for inferring cell-cell interactions
# https://genomebiology.biomedcentral.com/articles/10.1186/s13059-020-02214-w
## date: Nov 1, 2019

Expand All @@ -11,39 +11,39 @@ GCNG for extracellular gene relationship inference. (A) GCNG model using spatial

># 2, Code environment

>>## Users need to install python and ‘spektral’, ‘Keras’ and ‘Tensorflow’ modules, and all ohther modules required by the code. We recommend Anaconda to do this.
>>## Users need to install python and ‘spektral’, ‘Keras’ and ‘Tensorflow’ modules, and all other modules required by the code. We recommend Anaconda to do this.
Author's environment is python 3.6.3 in a Linux server which is now running Centos 6.5 as the underlying OS and Rocks 6.1.1 as the cluster management revision.

Please used the old version of spektral as "spektral"github suggests : https://github.com/danielegrattarola/spektral#tensorflow-1-and-keras
Please used the old version of spektral as "spektral" github suggests : https://github.com/danielegrattarola/spektral#tensorflow-1-and-keras

># 3, Example for running
Users should first set the path as the downloaded folder.
>>## 3.1 Training and test data generation for ligand-receptor prediction
>>## 3.1 Training and test data generation for ligand-receptor prediction
>>>### Usage:

python data_generation_interaction_ten_fold.py

`data_generation_interaction_ten_fold.py` uses the spatial location data to generate normalized adjacent matrix of cells, and save it in `seqfish_plus` folder; also uses the expression data to generate expression matrix for ten fold cross validation, and save it in `rand_1_10fold` folder.
`data_generation_interaction_ten_fold.py` uses the spatial location data to generate normalized adjacent matrix of cells, and saves it in `seqfish_plus` folder; also uses the expression data to generate expression matrix for ten fold cross validation, and saves it in `rand_1_10fold` folder.

>>## 3.2 Training and test model

python gcn_LR2_LR_as_nega_big.py

`gcn_LR2_LR_as_nega_big.py` exocrine GNCG that uses normalized adjacent matrix to generate normalized laplacian matrix, and then uses laplacian matrix to train and test GCNG models in ten fold cross validation.
`gcn_LR2_LR_as_nega_big.py` exocrine GNCG that uses normalized adjacent matrix to generate normalized laplacian matrix, and then uses laplacian matrix to train and test GCNG models in ten-fold cross validation.

(

python gcn_LR2_LR_as_nega_big_plus_autocrine.py

`gcn_LR2_LR_as_nega_big_plus_autocrine.py` autocrine plus GNCG that uses adjacent matrix plus diagonal matrix to generate laplacian matrix, and then uses laplacian matrix to train and test GCNG models in ten fold cross validation
`gcn_LR2_LR_as_nega_big_plus_autocrine.py` autocrine plus GNCG that uses adjacent matrix plus diagonal matrix to generate Laplacian matrix, and then uses Laplacian matrix to train and test GCNG models in ten-fold cross validation.

)

>>## 3.3 get optimal model

python gcn_LR2_LR_as_nega_big_layer_predict_min.py

`gcn_LR2_LR_as_nega_big_layer_predict_min.py` tries to find the optimal model during the trainning, by monitoring the validation dataset's accuracy.
`gcn_LR2_LR_as_nega_big_layer_predict_min.py` tries to find the optimal model during the training, by monitoring the validation dataset's accuracy.

>>## 3.4 get performance of optimal model for ten fold cross validation

Expand Down