Giter Site home page Giter Site logo

deepunion's Introduction

Deepunion: A collection of drug discovery tools for ligand preparation, featurization and docking.

Installation

Install anaconda first.

$ conda create -name docking python=3.6
$ source activate docking

Before you install deepunion, you may need to have numpy, pandas, rdkit and pubchempy install

$ conda install pandas numpy
$ pip install pubchempy
$ conda install -c rdkit rdkit
$ conda install -c omnia mdtraj

Then, download the package and install

$ git clone http://github.com/zhenglz/deepunion.git
$ cd deepunion 
$ pip install -e ./

Quick start

1 Convert a molecule to a pdb file, given its smile code

>>> # generate 3D conformation from a SMILE code and 
>>> # save as a pdb file
>>> from deepunion import builder
>>> comp = builder.CompoundBuilder(out_format="pdb", in_format="smile")
>>> comp.in_format
'smile'
>>> comp.load_mol("CCCC")
<deepunion.builder.CompoundBuilder object at 0x7f0cd1d909b0>
>>> comp.generate_conformer()
<deepunion.builder.CompoundBuilder object at 0x7f0cd1d909b0>
>>> comp.write_mol("mol_CCCC.pdb")
<deepunion.builder.CompoundBuilder object at 0x7f0cd1d909b0>
>>> # the molecule has been saved to mol_CCCC.pdb in working directory
>>> # convert the pdb file into a pdbqt file
>>> babel_converter("mol_CCCC.pdb", "mol_CCCC.pdbqt")

2 Search a molecule "progesterone" from pubchem, add hydrogen atoms and optimize the structure and save the 3D coordinates into a pdb file.

>>> # download progesterone and save it into a pdb file
>>> from deepunion import downloader
>>> down = downloader.PubChemDownloader()
>>> m = down.get_compound("progesterone", type="name")
>>> smile = down.get_smile(m)
>>> # now convert SMILE to pdb
>>> from deepunion import builder
>>> b = builder.CompoundBuilder("pdb", "smile")
>>> b.load_mol(smile)
>>> b.generate_conformer()
>>> b.write_mol("progesterone.pdb")

Examples

Go to the deepunion/deepunion/test folder, explore the scripts to generate PDB files from a list of smile file.

deepunion's People

Contributors

zhenglz avatar

Stargazers

 avatar huangh avatar Nathaniel Budijono avatar Kevinkaiyan avatar  avatar  avatar

Watchers

James Cloos avatar  avatar Gustavo Marques 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.