MDP Editor
Easily produce molecular dynamics simulation parameter input for GROMACS.
- say it with words
- compile pre-defined
.mdpinput parameter blocks reflecting best practices for different simulation scenarios
- compile pre-defined
- script parameter file generation and alteration
- swap parameter blocks when, e.g., simulating with a different force-field
- document the intent of your parameter settings
- written
.mdpfiles store the command that was used to generate them, simplifying documentation of simulation run input
- written
Version
0.9.7
- stable command line interface
- parameter blocks for the most common simulation scenarios
- documentation of pre-defined parameter blocks on the command line
- manually setting specific parameters
- providing and updating own
.mdpfiles - highlighting of changed parameters when writing to terminal
- option to write minimal output
- addition of more complex parameter blocks
- density guided simulations
- free energy calculation scenarios
- QM/MM
- parameter evaluation (like
nstepsfrom settingsimulation-time-in-ns) - textual user interface
- graphical user interface
- help text for parameters
-
gromppparameter check
Examples
Compile the pre-defined block force_field.charmm and sets nsteps = 100 in the output
mdpeditor --compile force_field.charmm --set nsteps=100 --minimal
yields
dt = 0.002
nsteps = 100
coulombtype = PME
rcoulomb = 1.2
vdw-modifier = Force-switch
rvdw = 1.2
dispcorr = no
fourierspacing = 0.15
constraints = h-bonds
Write only values that were set when compiling pressure.atmospheric with
force_field.charmm, skip all defaults
mdpeditor --compile pressure.atmospheric force_field.charmm --minimal
Show the available pre-defined parameter blocks
mdpeditor --blocks
Learn more about a certain parameter block
mdpeditor --show density_guided.vanilla
Add atomspheric pressure coupling to a user-defined .mdp file, discarding all
non-GROMACS entries in user.mdp.
mdpeditor --input-mdp user.mdp --compile pressure.atmospheric
Describe the integrator parameter
mdpeditor --describe integrator
Contributing
You can contribute by opening a new issue.
Contributing or changing parameter blocks
Adding a new .mdp file in a subdirectory of mdpeditor/mdpblocks will add a
new block that is automatically discovered by the python package. The block of
commented first lines (using ;) will be printed as description of the block.
Note that once you built an executable as described above, the parameter blocks are packaged with the executable and cannot be changed.
Running
Running with python
./mdp-editor.py
Installation with pip
We use setuptools with a setup.cfg and pyproject.toml file.
To build a distribution from the source directory install
pip3 install build
Then run this in the source directory to build the distribution on your system
python3 -m build
Eventually, find the build in dist/ and install the .tar.gz file found
there with
pip install dist/mdpeditor*.tar.gz
Make sure to install the right .tar.gz if you ran the build command
multiple times.
Generating a single executable
To generate a single executable that you can run almost anywhere run
pip3 install pyinstaller
pyinstaller --onefile mdpeditor.spec
You will find the executable in
dist/
Author
Christian Blau
Metadata
Release files for mdpeditor 0.9.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mdpeditor-0.9.7.tar.gz | 67.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mdpeditor-0.9.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 139.1 kB
Release files / mdpeditor-0.9.7.tar.gz
| Download URL | mdpeditor-0.9.7.tar.gz |
|---|---|
| Size | 67.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55fdc2f26684a51ffe2ea4404f98f6c313bb7ad015ae4b93aa28a3f63ea05e65
|
|
BLAKE2b-256 checksum How to use checksums |
3d49d067c291a07d07101b205070192fde5b8bcc5d1f9da420b3a87b894b49d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10
|
Release files / mdpeditor-0.9.7-py3-none-any.whl
| Download URL | mdpeditor-0.9.7-py3-none-any.whl |
|---|---|
| Size | 71.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0cd2699310e7e74b82362a8dc9c5e02a3cc4e104993e5d034965daa04d355d1
|
|
BLAKE2b-256 checksum How to use checksums |
8217ac9ddd2daece62137a2a0a17c9cb520d2c7c56135e3a9e7a08a08301b6a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10
|