Git Product home page Git Product logo

graphormerdti's Introduction

GraphormerDTI

A graph transformer-based approach for drug-target interaction prediction.

Requirements and Installation

pip install -r requirements.txt

Preprocess

Under transductive setting, please run the code

python preprocess_transductive_setting.py

Under drug inductive setting, please run the code

python preprocess_drug_inductive_setting.py

Under drug-protein inductive setting, please run the code

python preprocess_drug_protein_inductive_setting.py

Using the Davis dataset under transductive setting as an example, the preprocessing might output the following log

Train in Davis
proteins load finished
data shuffle
10157 2540 12696
10157 finished
2540 finished
12696 finished
train dataset finished
valid dataset finished
test dataset finished
10157 2540 12696

The logs show that under the current random seed, the training set, validation set and test set include 10157, 2540 and 12696 drug-protein pairs, respectively. The pre-processing result is stored in ./molecule_data/Davis_transductive_setting_SEED.pkl.

Run

Under transductive setting, please run the code

python main_transductive_setting.py

Under drug inductive setting, please run the code

python main_drug_inductive_setting.py

Under drug-protein inductive setting, please run the code

python main_drug_protein_inductive_setting.py

We will continue to use the Davis dataset under transductive setting as an example, using ./protein_data/Davis.txt and the preprocessed output pkl file as inputs for model training and prediction. During the process, logs may be output as follows:

Train in Davis
proteins load finished
data shuffle
10157 2540 12696
train, val, test sizes : 10157 2540 12696
molecules load finished
Training...
The stable model's results:...

The log output includes the results of the validation set after each epoch and the final test set results, which are stored in ./Davis_transductive_setting folder.

graphormerdti's People

Contributors

mengmeng34 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.