Giter Site home page Giter Site logo

dockrl's Introduction

DockRL

Setup

You'll need PyTorch, NumPy, and a protein-ligand docking simulation program called Smina, which can be downloaded from SourceForge, to use this repository. Smina is a fork of open-source Autodock Vina and has a static executable that needs to be placed in the repositories root folder.

I am using Ubuntu 18 and virtualenv for virtual environment management, but other Linux distributions and/or anaconda should not be too different. To initialize and activate a new virtual environment:

virtualenv /env_path --python=python3
ource /env_path/bin/activate

DockRL uses MPI for training parallelization. In order to use mpip4py, you'll also need to install some dev tools.

sudo apt update && sudo apt install libopenmpi-dev

Next all you need to do is run setup.py to make sure your virtual environment contains dependencies and that python knows where to look for dockrl modules.

python setup.py develop

Usage

Starting a typical training run looks like this

python dockrl/cmaes.py -pi GraphNN -p 64 -g 100 -c 10

-pi designates the policy to use, of which there are currently 3 options. "MLP" is a simple feed forward MLP, "GraphNN" utilizes a self-attentive graph neural network, and "Params" will apply CMA-ES to the scoring function parameters directly. The flags -p, -g, and -c designate the population size, total number of generations, and cpu threads to utilize during CMA-ES training. Note that Smina can also take advantage of parallelism, but the flag for exhaustiveness must be equal to or greater than the number of cpu threads you want smina to use. That being said you may want to balance the number of threads used for CMA-ES and docking to match your machine, as each individual worker will call a seperate instance of Smina. Also remember to add 1 to the total number of CMA-ES workers to account for the mantle process that orchestrates everything.

dockrl's People

Contributors

rivesunder avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rnaimehaom

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.