Giter Club home page Giter Club logo

oeommtools's Introduction

Build Status

Anaconda Badge

OEOMMTools

These are a collection of tools developed to integrate and mix the OE Toolkit with the OpenMM API

Prerequisites

  • OE Toolkits >= 2019.10.2
  • OpenMM

Authors

Installation

conda install -c openeye/label/Orion oeommtools -c omnia

Usage

The following example solvate a benzene molecule in a box of water:

from oeommtools import packmol
from openeye import oechem
from openeye import oeomega

# Benzene smiles string
benzene = 'c1ccccc1'
# Empty OEMol
solute = oechem.OEMol()


# Conformer generation
omegaOpts = oeomega.OEOmegaOptions()
omegaOpts.SetMaxConfs(1)
omega = oeomega.OEOmega(omegaOpts)

# OEMol generation
if not oechem.OESmilesToMol(solute, benzene):
    oechem.OEThrow.Fatal("SMILES string parsing fails for the string: {}".format(benzene))
if not omega(solute):
    oechem.OEThrow.Fatal("Conformer generation fails for the molecule with smiles string: {}".format(benzene))

# Solvate the system in water
solvate_mol = packmol.oesolvate(solute, density=1.0, padding_distance=10.0, geometry='box',
                                solvents='[H]O[H]', molar_fractions='1.0', close_solvent=True,
                                salt='[Na+], [Cl-]', salt_concentration=0.0, neutralize_solute=True)

# Save the solvated system
ofs = oechem.oemolostream("solvated.pdb")
oechem.OEWriteConstMolecule(ofs, solvate_mol)
ofs.close()

Issues

  • OEOmmTools is in debugging stage and it has been tested on Ubuntu 16.04 and Mac OSX Sierra
  • OEOmmTools has been tested in python 3.5 and 3.6

Disclaimers

  • This code is currently in alpha release status. Use at your own risk. We will almost certainly be making changes to the API in the near future.

oeommtools's People

Contributors

hyejang avatar jpthompson17 avatar nividic avatar oehyesujang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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