Skip to content

crstngc/GraphDRP-cgc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resources:

  • README.md: this file.
  • data: GDSC dataset

source codes:

  • preprocess.py: create data in pytorch format
  • utils.py: include TestbedDataset used by create_data.py to create data, performance measures and functions to draw loss, pearson by epoch.
  • models/ginconv.py, gat.py, gat_gcn.py, and gcn.py: proposed models GINConvNet, GATNet, GAT_GCN, and GCNNet receiving graphs as input for drugs.
  • training.py: train a GraphDRP model.
  • saliancy_map.py: run this to get saliency value.

Dependencies

Step-by-step running:

1. Create data in pytorch format

python preprocess.py --choice 0

choice:       0: create mixed test dataset       1: create saliency map dataset       2: create blind drug dataset       3: create blind cell dataset

This returns file pytorch format (.pt) stored at data/processed including training, validation, test set.

2. Train a GraphDRP model

python training.py --model 0 --train_batch 1024 --val_batch 1024 --test_batch 1024 --lr 0.0001 --num_epoch 300 --log_interval 20 --cuda_name "cuda:0"

model:       1: GINConvNet       2: GATNet       3: GAT_GCN       4: GCNNet

To train a model using training data. The model is chosen if it gains the best MSE for testing data.

This returns the model and result files for the modelling achieving the best MSE for testing data throughout the training.

3. Get saliency value

python saliency_map.py --model 0 --num_feature 10 --processed_data_file "data/processed/GDSC_bortezomib.pt" --model_file "model_GINConvNet_GDSC.model" --cuda_name "cuda:0"

The model and model_file must be the same kind of graph neural network. This outputs most important abberations with corresponding saliency value.

IMPROVE framework development

  • Create computational env
  • Run frm_workflow_within.sh or frm_workflow_cross.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.4%
  • Shell 6.0%
  • R 1.6%