GithubHelp home page GithubHelp logo

amazingang / molecule_generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kevinid/molecule_generator

1.0 1.0 0.0 3.99 MB

Code for "Multi-Objective De Novo Drug Design with Conditional Graph Generative Model" (https://arxiv.org/abs/1801.07299)

License: Apache License 2.0

Python 5.76% Jupyter Notebook 94.12% Dockerfile 0.12% Shell 0.01%

molecule_generator's Introduction

abstract

Conditional Molecule Generator

This repository contains the source code and data sets for the graph based molecule generator discussed in the article "Multi-Objective De Novo Drug Design with Conditional Graph Generative Model" (https://arxiv.org/abs/1801.07299).

Briefly speaking, we used conditional graph convolution to structure the generative model. The properties of output molecules can then be controlled using the conditional code.

Requirements

This repo is built using Python 2.7, and utilizes the following packages:

  • MXNet == 1.3.1
  • RDKit == 2018.03.3
  • Numpy
  • Scikit-learn (for the predictive model)

To ease the installation process, please use the dockerfile environment defined in the Dockerfile.

Quick start

Project structure

  • train.py: main training script.
  • mx_mg: package for the molecule generative model:
    • data: packages for data processing workflows:
      • conditionals.py: callables used to generate the conditional codes for molecules
      • data_struct.py: defines atom types and bond types
      • dataloaders.py , datasets.py and samplers.py: data loading logics
      • utils.py: utility functions
    • models: library for graph generative models
      • modules.py: define modules (or blocks) such as graph convolution
      • networks.py: define networks (MolMP, MolRNN and CMolRNN)
      • functions.py: autograd.Function objects and operations
    • builders.py: utilities for building molecules using generative models
  • rdkit_contrib: functions used to calculate QED and SAscore (for older version of rdkit)
  • example.ipynb: tutorial

Usage

To train the model, first unpackdatasets.tar.gz (download here) to the current directory, and call:

./train.py {molmp|molrnn|scaffold|prop|kinase} path/to/output

Where {molmp|molrnn|scaffold|prop|kinase} are model types, and path/to/output is the directory where you want to save the model's checkpoint file and log files. The following call:

./train.py {molmp|molrnn|scaffold|prop|kinase} -h

gives help for each model type.

For any questions | problems | criticisms | ...

Please contact me. Email: [email protected] or [email protected]

molecule_generator's People

Contributors

kevinid avatar

Stargazers

 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.