Giter Club home page Giter Club logo

molecule_library_synthesis's Introduction

Molecule_library_synthesis

This is the code repository for optimization of synthesis plans for multiple molecules. the conda environment tested for running the following code is stored as environment.yml.

Step 1. Retrosynthesis

The code will require external dependency of the ASKCOS software, which need to be downloaded at git clone https://github.com/Coughy1991/ASKCOS.

After downloading the repository, the folder ASKCOS as well as the subfolder ASKCOS/askcos should be added to PYTHONPATH

The pipeline for running the code include the following steps:

  1. create a folder to store the results (e.g. case_1), and input the SMILES of target molecules in the "targets.csv" file
  2. run KERAS_BACKEND=theano python tree_builder_for_multiple_target.py case_1 to construct the reaction network for multiple molecule targets
  3. run KERAS_BACKEND=theano python predict_conditions_and_evaluate.py case_1 to evaluate the reactions

Step 2. Optimization

The GUROBI optimizer is needed for running the optimization. The instruction for installation and obtaining a free academic license can be found at https://www.gurobi.com/

Run the following command for optimizing synthesis plans:

python optimize_synthesis_plan_for_library.py [-h] [-directory [DIRECTORY]] [-separate] [-decomposition] [-weights WEIGHTS WEIGHTS WEIGHTS]

e.g. python optimize_synthesis_plan_for_library.py -directory case_1 -decomposition -weights 10 1 0.1

will run combined synthesis planning for case_1 with the decomposition method used, and weights beging 10,1 and 0.1.

molecule_library_synthesis's People

Contributors

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