Code Monkey home page Code Monkey logo

drlinker's Introduction

#DRlinker

This is the code for the "DRlinker: Deep Reinforcement Learning for optimization in fragment linking Design".

To implement our models we were based on OpenNMT-py (v0.4.1).

Install requirements

Create a new conda environment:

conda env create -f environment.yml
conda activate DRlinker

Pre-processing

The tokenized datasets can be found on the data/ folder.

We use the same datasets as SyntaLinker, the data was originated from the ChEMBL database.

We use a shared vocabulary. The vocab_size and seq_length are chosen to include the whole datasets.

Pre-training

Pre-training can be started by running the training.sh script using ChEMBL dataset

The pre-trained models can be found on the checkpoints/ folder.

Notice

Because the file is too large to upload, we will publish all the data and pre-trained models on MultCloud.

Please click the link to download and replace the original data/ and checkpoints/ folders.

Fine-tuning and Testing

fine-tuning script fine-tuning-test.sh can be run after pre-training using ChEMBL testing dataset or real drug case.

The final predictions can be found on the case/ folder.

RL (beam search & Multinomial sampling)

There are two strategies to sample for the fine-tuning and testing stages, training in beam search can use train_type as B and in multinomial sampling can use train_type as M.

In most of cases, multinomial sampling performs better because of its ability to explore larger chemical space.

The input of cases can refer to case/

To train the RL model use the train_agent_ms.py script:

Model training of beam search can be started by running the train_agent_ms.sh script.

Example

bash fine-tuning-test.sh

drlinker's People

Contributors

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