Giter VIP home page Giter VIP logo

dti-lm's Introduction

DTI-LM: Language Model Powered Drug-target interaction prediction

This repository contains code for DTI-LM, a drug-target interaction prediction framework that leverages pretrained language model and graph attention network to find representations of drugs and proteins.DTI-LM offers following advantages over existing literature.

  1. State-of-the-art prediction results.
  2. Requires minimum input data in terms of protein amino acid and drug SMILES sequences.
  3. Faster runtime than comparable methods.
  4. Investigates the current standing of language model-based DTI prediction capability and limitations.

Overall framework

Run Locally

Clone the project

  git clone https://github.com/compbiolabucf/DTI-LM.git

Go to the project directory

  cd DTI

Install dependencies

  conda env create -f environment.yml

Run the code

  python run.py --config-name bindingDB_train_GAT.yaml "tuning.param_search.tune=False" "datamodule.splitting.balanced=True" "datamodule.splitting.splitting_strategy=random"

Documentation

Using own data

1. Modify utils.PREPROCESS to add the data name
2. Add a preprocessing script in utils that returns     
    X_drug: nx1 pd.DataFrame, index=drug names, Column 1=SMILES sequence. 
    X_target: mx1 pd.DataFrame, index=target names, Column 1=protein sequence. 
    DTI: mxn (available) pd.DataFrame, index: 0-mxn, Column 1=Drug names matching X_drug index, Column 2=Target names matching X_target index, Column 3= interaction label (0,1)
3. Add a train.yaml (bindingDB_train_GAT.yaml) in configs defining preprocess and datamodule

Using own featurizer

1. add new featurizers in module.featurizer.drug_featurizer and prot_featurizer. Return nxq and mxp embedding (p,q embedding size)
2. Modify configs.featurizer
3. Modify drug_dim and prot_dim in configs.module.GAT

Using own classifier

1. Add a new pipeline in module (Similar to GAT.py and MLP.py).
2. Add necessary file in configs.module following config.module.GAT for GAT.py

Hyperparameter tuning

1. Set tuning.param_search.tune=True
2. Define search space in configs.tuning
3. Modify utils.setup_config_tune to add missing hyperparameter
4. Add best hyperparameter file in config.best_params and link it to train.yaml

dti-lm's People

Contributors

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