Giter Site home page Giter Site logo

dl4chem-geometry's Introduction

Molecular Geometry Prediction using a Deep Generative Graph Neural Network

TensorFlow implementation of the models described in the paper Molecular Geometry Prediction using a Deep Generative Graph Neural Network.

We present code for training deep generative models of molecular geometry (conformations), as well as preprocessed datasets and pretrained models.

Dependencies

Python

  • Python 3.6
  • TensorFlow 1.2
  • RDKit 2018.09.1
  • tensorboardX

GPU

  • CUDA (we recommend using the latest version. The version 9.0 was used in all our experiments.)

Downloading Datasets & Pre-trained Models

Note: Due to licensing issues, we can't release preprocessed CSD dataset. However, if you have a license to use CSD dataset please email us and we will send you the preprocessed dataset.

Dataset Model
QM9 Data Model
COD Data Model

Training Conditional Variational Graph Auto Encoder (CVGAE)

QM9

python PredX_train.py --data QM9 --mpnn-steps 3

COD

python PredX_train.py --data COD --mpnn-steps 5

Loading & Generation from Pre-trained Models

QM9

python PredX_train.py --data QM9 --loaddir qm9_model/neuralnet_model_best.ckpt --test --mpnn_steps 3

COD

python PredX_train.py --data COD --loaddir cod_model/neuralnet_model_best.ckpt --test --mpnn_steps 5

Running Force-Field Baselines (ETKDG + MMFF/UFF)

QM9/COD/CSD

python baseline.py --data QM9 --num-total-samples 100 --num-parallel-samples 10 --num-threads 10

Running Force-Field Baselines where initial atom coordinates are provided by neural network (CVGAE + MMFF)

QM9/COD/CSD

python baseline_nn.py --data QM9 --nn-path /path/to/qm9_cvgae_confs Notes: --nn-path points to the folder containing saved conformations generated by CVGAE. These saved conformations by CVGAE can be obtained by adding --savepermol argument during loading/generation stage Example (QM9): python PredX_train.py --data QM9 --loaddir qm9_model/neuralnet_model_best.ckpt --savepermol --test --mpnn_steps 3

Instead of saving conformations by CVGAE and loading them separately, you can also run CVGAE + MMFF all together by adding --useFF argument during loading/generation stage Example (QM9): python PredX_train.py --data QM9 --loaddir qm9_model/neuralnet_model_best.ckpt --useFF --test --mpnn_steps 3

Additional Scripts

QM9_featurize.py, QM9_sdf_to_p.py, COD_featurize.py, COD_sdf_to_p.py, CSD_featurize.py, CSD_sdf_to_p.py are scripts for preprocessing QM9, COD, CSD datasets respectively

Citation

If you find the resources in this repository useful, please consider citing:

@article{Mansimov:19,
  author    = {Elman Mansimov and Omar Mahmood and Seokho Kang and Kyunghyun Cho},
  title     = {Molecular Geometry Prediction using a Deep Generative Graph Neural Network},
  year      = {2019},
  journal   = {arXiv preprint arXiv:1904.00314},
}

dl4chem-geometry's People

Contributors

seokhokang avatar kyunghyuncho avatar mansimov 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.