Code Monkey home page Code Monkey logo

dgraphdta's Introduction

DGraphDTA

Inspired by GraphDTA, a method for predicting the affinity of drug-protein based on graph neural network is proposed, which is called DGraphDTA (double Graph DTA predictor). The method can predict the affinity only using the molecule SMILES and protein sequence. This repo gits from GraphDTA, and compared with GraphDTA, the method constructs both the graph of protein and small molecule at the same time to improve the accuracy. The protein graph is constructed according to contact map.

dependencies

numpy == 1.17.4
kreas == 2.3.1
Pconsc4 == 0.4
pytorch == 1.3.0
PyG (torch-geometric) == 1.3.2
hhsuite (https://github.com/soedinglab/hh-suite)
rdkit == 2019.03.4.0
ccmpred (https://github.com/soedinglab/CCMpred)

data preparation

  1. Prepare the data need for train. Get all msa files of the proteins in datasets (for more detail description of datasets, please refer to datasets), and using Pconsc4 to predict all the contact map. A script in the repo can be run to do all the steps:
    python scripts.py

  2. And if you want to skip the long time preparation, please directly download the contact map and msa files which we already generated from files. For more detailed generating information, please refer to the "scripts.py". Then copy the corresponding two folders to each dataset dir. For example:
    (1) download the data.zip and unzip it.
    (2) copy two folders called "aln" and "pconsc4" from davis to the /data/davis of your repo, so do the KIBA.

train (cross validation)

5 folds cross validation.
python training_5folds.py 0 0 0
where the parameters are dataset selection, gpu selection, fold (0,1,2,3,4).

test

This is to do the prediction with the models we trained. And this step is to reproduce the experiments.
python test.py 0 0
and the parameters are dataset selection, gpu selection.

Beacuse our memory limitation, only 8 combinations were fitted for the best result. It is worth mentioning that if more model combinations were explored, there may be better results.

dgraphdta's People

Contributors

595693085 avatar

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.