Coder Social home page Coder Social logo

resp2's Introduction

RESP2

Build Status

Restrained electrostatic potential (RESP) fitting for PSI4

Overview

This is a partially-complete plugin for PSI4 that implements restrained electrostatic potential fitting (RESP) [1] to compute atomic partial charges, potentially for use in MD.

This plugin still probably needs to be verified against a known-good implementation of this method, such as the code in AmberTools.

RESP is really a pretty simple method, and PSI4 has a very nice plugin architecture for adding in new functionality that can make use of the core PSI4 objects (the Wavefunction, etc), without needing to recompile all of PSI4 as you change your plugin.

The basic structure of the calculation is:

  1. Generate a bunch of points in R^3 around the molecule.
    • This requires computing points with a ~uniform density on the VdW surface -- see src/vdwsurface.cc
  2. Calculate the QM ESP at these points from the wavefunction.
  3. Calculate the MM ESP at these points as a function of the atomic partial charges.
  4. Minimize some norm of the difference between these two sets of charges w.r.t the atomic partial charges.

For the minimzer, this code uses nlopt (cpp interface), so you'll need the headers / libraries for that.

Installation

  1. Install psi4 using conda
  2. You'll need to install the nlopt library and its development headers
    • On Debian-based distros, install the libnlopt-dev package
    • On RPM-based distros, I think it's NLopt-devel.
    • It's also very easy to compile from source, and in that case you'll get a static library by default which makes everything easier.
  3. You need a C++11-capable compiler and boost.
    • If you're using a cluster with an old linux, just run conda install gcc boost
  4. Checkout this repository and run ./configure; make in this directory
  5. Run psi4 in this directory to run the example input file.

Example

See the build log on Travis-CI.

References

[1] Bayly, Cieplak, Cornell, and Kollman (1993) http://pubs.acs.org/doi/abs/10.1021/j100142a004

License

To the maximum extent possible, everything in this repository that is my (=rmcgibbo) own work is released under CC0 (see LICENSE file).

resp2's People

Contributors

hsidky avatar rmcgibbo avatar

Watchers

 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.