A python wrapper around the Gromacs tools.
Project description
A primitive Python wrapper around the Gromacs tools. The library is tested with Gromacs 4.6.5, 2018.x, 2019.x (and 2016.x also works) and is tested with Python 2.7 and 3.6.
GromacsWrapper also provides a small library (cook book) of often-used recipes and helper functions to set up MD simulations.
Documentation is mostly provided through the python doc strings and available at https://gromacswrapper.readthedocs.org for recent releases.
The source code is available in the GromacsWrapper git repository.
Please be aware that this is beta software that most definitely contains bugs. It is your responsibility to ensure that you are running simulations with sensible parameters.
Quick Start
Given a PDB file 1iee.pdb, set up and run a simple simulation (assuming you have all other input files at hand such as the MDP files):
>>> import gromacs >>> print(gromacs.release) 2018.2 >>> help(gromacs.pdb2gmx) DESCRIPTION gmx pdb2gmx reads a .pdb (or .gro) file, reads some database files, adds hydrogens to the molecules and generates coordinates in GROMACS ... ... OPTIONS Options to specify input files: -f [<.gro/.g96/...>] (eiwit.pdb) Structure file: gro g96 pdb brk ent esp tpr ... ... >>> gromacs.pdb2gmx(f="1ake.pdb", o="protein.gro", p="topol.top", ... ff="oplsaa", water="tip4p") >>> gromacs.editconf(f="protein.gro", o="boxed.gro", ... bt="dodecahedron", d=1.5, princ=True, ... input="Protein") >>> gromacs.solvate(cp="boxed.gro", cs="tip4p", p="topol.top", ... o="solvated.gro") >>> gromacs.grompp(f="emin.mdp", c="solvated.gro", p="topol.top", ... o="emin.tpr") >>> gromacs.mdrun(v=True, deffnm="emin") >>> gromacs.grompp(f="md.mdp", c="md.gro", p="topol.top", o="md.tpr") >>> gromacs.mdrun(v=True, deffnm="md")
License
The GromacsWrapper package is made available under the terms of the GNU Public License v3 (or any higher version at your choice) except as noted below. See the file COPYING for the licensing terms for all modules.
The distribution contains third party software that is copyrighted by the authors but distributed under licences compatible with this package license. Where permitted and necessary, software/files were modified to integrate with GromacsWrapper.
Installation
Releases
The latest version of GromacsWrapper from PyPi and can be installed with
pip install GromacsWrapper
Development version
The master branch in the GitHub source repository generally contains useful code but nevertheless, things can break in weird and wonderful ways. Please report issues through the Issue Tracker and mention that you used the develop branch.
To use the development code base: checkout the master branch:
git clone https://github.com/Becksteinlab/GromacsWrapper.git cd GromacsWrapper
and install
python setup.py install
Download and Availability
The GromacsWrapper home page is http://github.com/Becksteinlab/GromacsWrapper. The latest release of the package is being made available from https://github.com/Becksteinlab/GromacsWrapper/releases
You can also clone the GromacsWrapper git repository or fork for your own development:
git clone git://github.com/Becksteinlab/GromacsWrapper.git
Questions
Please ask questions in the Issue Tracker (instead of private email).
Reporting Bugs and Contributing to GromacsWrapper
Please use the Issue Tracker to report bugs, installation problems, and feature requests.
Pull requests for bug fixes and enhancements are very welcome. See http://makeapullrequest.com for a general introduction on how make a pull request and contribute to open source projects.
Building Documentation
Install Sphinx:
pip install sphinx
and compile:
cd package/doc/sphinx make html
Citing
GromacsWrapper was written by Oliver Beckstein with contributions from many other people. Please see the file AUTHORS for all the names.
If you find this package useful and use it in published work I’d be grateful if it was acknowledged in text as
“… used GromacsWrapper (Oliver Beckstein et al, https://github.com/Becksteinlab/GromacsWrapper doi: 10.5281/zenodo.17901)”
or in the Acknowledgements section.
Thank you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file GromacsWrapper-0.8.0.tar.gz
.
File metadata
- Download URL: GromacsWrapper-0.8.0.tar.gz
- Upload date:
- Size: 177.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 688b9708dfc5ad118db0a2fb647cae5501d285e212e07a929e8cd2177f7042e3 |
|
MD5 | 1bee8694c22fc367be98660d47a62d90 |
|
BLAKE2b-256 | bf409533380f268d0115da45ae2b140dda623e07764a12a9af44b25c4d32de01 |
Provenance
File details
Details for the file GromacsWrapper-0.8.0-py2.py3-none-any.whl
.
File metadata
- Download URL: GromacsWrapper-0.8.0-py2.py3-none-any.whl
- Upload date:
- Size: 645.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5fdbcf494f9cf32cd89262341601100f3ad24f979849ba6cf30b153d68a8762 |
|
MD5 | 51015f0e1a56403e7ffdf4bed00c08e9 |
|
BLAKE2b-256 | 7ba13f2240ace2d5ecbdf9a251fabc2f274c761522a549795ba03327d40c7a65 |