Giter VIP home page Giter VIP logo

synprepy's Introduction

Retrosynthesis Plan

Python Version

python3.6

Install Requirements

  • RDKit
# install rdkit
conda install -c conda-forge rdkit
# install pytorch
install from https://pytorch.org/
# install pyg
install from https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html
# install others requirements
cd synprepy #
pip install -r requirements.txt

Prepare Data

  1. Prepare reaction data file with .tsv format
rid rxn_smi
0 [OH:2][N:3]1[N:4]=[N:5][C:6]2=[C:7]1[CH:8]=[CH:9][CH:10]=[CH:11]2>>[OH:2][N:3]1[N:4]=[N:5][C:6]2=[C:7]1[CH:8]=[CH:9][CH:10]=[CH:11]2
1 [O:13]1[CH2:14][CH2:15][CH2:16][CH2:17]1>>O:13[CH3:17]

write config file (config.json)

{
    "root": "存储反应数据和反应模板数据的文件夹路径",
    "rxn_data_tsv_file_name": "反应数据文件名(该文件必须处于上个设置的root文件夹内)",
    "rid_with_rxn_template_tsv_file_name": "保持默认即可",
    "rxn_centralized_template_tsv_file_name": "保持默认即可",
    "rxn_extended_template_tsv_file_name": "保持默认即可",
    "rid_with_tid_tsv_file_name": "保持默认即可",
    "rxn_centralized_template_selector_config": {
        "root": "存储中心反应模板选择器的相关文件的文件夹",
        "train_rids_file_name": "保持默认即可",
        "test_rids_file_name": "保持默认即可",
        "train_temp_dir_name": "保持默认即可",
        "test_temp_dir_name": "保持默认即可",
        "min_num_covered_rxns_by_rxn_centralized_template": "过滤模板时要求模板的最少覆盖反应数",
        "filter_tids_file_name": "保持默认即可",
        "device": "cpu或者cuda",
        "batch_size": 1000,
        "epoch_num": 200,
        "lr_start": 0.0005,
        "lr_end": 1e-7
    },

  "min_num_covered_rxns_by_rxn_extended_template": 50
}

synprepy's People

Contributors

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