Giter VIP home page Giter VIP logo

bayesian_retro's Introduction

Bayesian Retrosynthesis

This is the code for the "A Bayesian retrosynthesis algorithm"

Requirements

The forward prediction model (fine-tuned Molecular Transformer), ranking model (glmnet) and files storing nearest neighbors of each reactant candidate can be found here Download these files and put them to appropriate directories.

wget -O nearest_neighbor.zip https://ndownloader.figshare.com/articles/11954913/versions/1
unzip nearest_neighbor.zip -d data/
rm nearest_neighbor.zip
wget -O forward_models/fine_tuned_model_on_liu_dataset_0p02.pt https://ndownloader.figshare.com/files/21945630
wget -O utils/glmnet_grouped.RData https://ndownloader.figshare.com/files/21947469

A new conda environment can be created by BayesRetro_environment.sh

./BayesRetro_environment.sh

Sequential Monte Carlo algorithm for retrosynthesis

quick_start.sh is an example to try the SMC algorithm for retrosynthesis. Each step of SMC takes about 30 sec. Step number is set to 600. The total search will take 6 h .

./quick_start.sh

Ranking candidate synthetic routes

The ranking model is in single-step/ranking directory. Install R packages glmnet and reticulate from CRAN to use this model.

install.packages("glmnet")
install.packages("reticulate")

Rank the detected synthetic routes

./ranking.sh

t-SNE embedding

bayesian_retro's People

Contributors

tsumina avatar zguo235 avatar

Watchers

 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.