Skip to content

Code and analyses related to the ExaLearn drug design efforts

Notifications You must be signed in to change notification settings

exalearn/covid-drug-design

Repository files navigation

Reinforcement Learning for COVID Drug Design

Software created to design molecules for COVID thereputics. The repository will cotnain both the packages and analysis scripts created to assess the performn of our techniques.

Installation

The necessary packages for running this package are listed in environment.yml. Install them with Conda:

conda env create --file environment.yml

Current Functionality

MolDQN

The core of this repository is a minimal port of the MolDQN approach of Zhou et al. from Tensorflow with a custom environment description to Keras with OpenAI Gym environment specifications.

This port is currently missing the bootstrapped version of the DQN used by Zhou et al.

DISCLAIMER: The main logic for this package is copied from Google's implementation of DQN. Files directly taken from Google's repository are marked with the original Google copyright and license headers in the files.

Training the RL Agent

The run_rl.py script trains the RL agent and has a few command line options for expeirmenting with the training process. Run python run_rl.py --help to see the command line options.

Running the script with default settings (i.e., python run_rl.py) should take less than 10 minutes.

Each run of this agent will produce a subdirectory of ./rl_tests/ that contains the configuration used for the experiment and a log containing records at each step:

  • episode: Episode number
  • step: Step number within that episode
  • epsilon: Degree of randomness used in selecting next step
  • smiles: State of the molecule after choosing an action in this step
  • reward: Observed reward value for choosing that action
  • q: The predicted Q value for this move
  • random: Whether move was randomly-selected or based on argmax(q)
  • loss: Training loss for the Q network at each step

About

Code and analyses related to the ExaLearn drug design efforts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published