Giter Club home page Giter Club logo

tgsa's Introduction

TGSA

TGSA: Protein-Protein Association-Based Twin Graph Neural Networks for Drug Response Prediction with Similarity Augmentation

Overview

Here we provide an implementation of Twin Graph neural networks with Similarity Augmentation (TGSA) in Pytorch and PyTorch Geometric. The repository is organised as follows: Cancel changes

  • data/ contains the necessary dataset files;
  • models/ contains the implementation of TGDRP and SA;
  • TGDRP_weights contains the trained weights of TGDRP;
  • utils/ contains the necessary processing subroutines;
  • preprocess_gene.py preprocessing for genetic profiles;
  • smiles2graph.py construct molecular graphs based on SMILES;
  • main.py main function for TGDRP (train or test);

Requirements

Implementation

Step1: Data Preprocessing

  • data/CellLines_DepMap/CCLE_580_18281/census_706/ - Raw genetic profiles from CCLE and the processed features. You can also preprocess your own data with preprocess_gene.py.

  • data/similarity_augment/ - Directory edge contains edges of heterogeneous graphs; directory dict contains necessary data and dictionaries for mapping between drug data or cell line data.

  • data/Drugs/drug_smiles.csv - SMILES for 170 drugs. You can generate pyg graph object with smiles2graph.py

  • data/PANCANCER_IC_82833_580_170.csv - There are 82833 ln(IC50) values across 580 cel lines and 170 drugs.

  • data/9606.protein.links.detailed.v11.0.txt and data/9606.protein.info.v11.0.txt - Extracted from https://stringdb-static.org/download/protein.links.detailed.v11.0/9606.protein.links.detailed.v11.0.txt.gz

Step2: Model Training/Testing

  • You can run python main.py --mode "train" to train TGDRP or run python main.py --mode "test" to test trained TGDRP.

Step3: Similarity Augment

  • First, you can run heterogeneous_graph.py to generate edges of heterogeneous graphs.

  • Then, you can run main_SA.py to generate node features of heterogeneous graphs using two GNNs from TGDRP/TGDRP_pre and to fine-tune sequentially the remained parameters from TGDRP/TGDRP_pre. To be specific, you can use the instruction python main_SA.py --mode "train"/"test" --pretrain 0/1 to fine-tune TGDRP/TGDRP_pre or to test fine-tuned SA/SA_pre.

License

MIT

tgsa's People

Contributors

ouyangzhenqiu avatar violet-sto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tgsa's Issues

Not able to run predictions for new drugs

Hi! I've succeed on running the model, but I would like to predict sensitivity for new drugs. The cell lines I'm using are already in the data set you used but the drugs are not. I've managed to get the drug features, etc. but I don't now how to proceed with other files, for example, the similarity matrix. Could you assist me on how to get the model running predictions for new drugs?

Thanks

P.S.: I only want to run prediction, not to retrain the model nor fine-tune

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.