MCPcopy Index your code
hub / github.com/clinfo/SBMolGen

github.com/clinfo/SBMolGen @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
61 symbols 291 edges 11 files 3 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Structure-based de novo Molecular Generator (SBMolGen)

Supporting Information for the paper "Structure-Based de Novo Molecular Generator Combined with Artificial Intelligence and Docking Simulations".

In this study, we developed a new deep learning-based molecular generator, SBMolGen, that integrates a recurrent neural network, a Monte Carlo tree search, and docking simulations. The results of an evaluation using four target proteins (two kinases and two G protein-coupled receptors) showed that the generated molecules had a better binding affinity score (docking score) than the known active compounds, and they possessed a broader chemical space distribution. SBMolGen not only generates novel binding active molecules but also presents 3D docking poses with target proteins, which will be useful in subsequent drug design.

SBMolGen uses and modifies some ChemTS features. For more information on ChemTS, please see the paper of ChemTS.

Requirements

  1. Python>=3.7
  2. Keras (version 2.0.5) If you installed the newest version of keras, some errors will show up. Please change it back to keras 2.0.5 by pip install keras==2.0.5.
  3. tensoflow (version 1.15.2, ver>=2.0 occurred error.)
  4. rdkit
  5. rDock

How to use

  1. Get SBMolGen.
git clone https://github.com/clinfo/SBMolGen.git
cd SBMolGen

Set the system path, here is the example for bash.

export SBMolGen_PATH=/Path to SBMolGen/SBMolGen
export PATH=${SBMolGen_PATH}:${PATH}
export RBT_ROOT=/Path to rDock 
export LD_LIBRARY_PATH=${RBT_ROOT}/lib:${LD_LIBRARY_PATH}
  1. Train the RNN model.
cd train_RNN
python train_RNN.py train_RNN.yaml
  1. Make a setting file for molecule generate.

A sample of setting file.

setting.yaml

c_val: 1.0
loop_num_nodeExpansion: 1000
target: 'CDK2'
target_path: /home/apps/SBMolGen/example_ligand_design
hours: 1
score_target: 'SCORE.INTER'
docking_num: 10
base_rdock_score: -20
sa_threshold: 3.5
# rule5 1: weigth < 500 logp <5 donor < 5 acceptor < 10, 2: weigth < 300 logp <3 donor < 3 acceptor < 3 rotbonds <3
rule5: 1
radical_check: True
simulation_num: 3
hashimoto_filter: True
model_name: model
  1. Prepare the target file.

Refer to the rDock Tutorials for instructions on preparing the required files for docking.

  1. Molecule generate.
cd example_ligand_design
python ${SBMolGen_PATH}/sbmolgen.py setting.yaml

License

This package is distributed under the MIT License.

Core symbols most depended-on inside this repo

Update
called by 4
sbmolgen.py
aEstateMol
called by 3
utils/filter.py
Clone
called by 2
sbmolgen.py
readFragmentScores
called by 2
utils/sascorer.py
TypeAtoms
called by 2
utils/filter.py
predict_smile
called by 2
utils/add_node_type_zinc.py
make_input_smile
called by 2
utils/add_node_type_zinc.py
SelectPosition
called by 1
sbmolgen.py

Shape

Function 34
Method 22
Class 5

Languages

Python100%

Modules by API surface

utils/filter.py16 symbols
sbmolgen.py13 symbols
utils/add_node_type_zinc.py6 symbols
train_RNN/train_RNN.py6 symbols
utils/sascorer.py4 symbols
utils/make_smile.py4 symbols
train_RNN/make_smile.py4 symbols
utils/load_model.py3 symbols
utils/rdock_test_MP.py2 symbols
utils/AtomInfo.py2 symbols
utils/SDF2xyzV2.py1 symbols

For agents

$ claude mcp add SBMolGen \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact