Skip to main content

MDP Editor

Easily produce molecular dynamics simulation parameter input for GROMACS.

  • say it with words
    • compile pre-defined .mdp input parameter blocks reflecting best practices for different simulation scenarios
  • 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 .mdp files store the command that was used to generate them, simplifying documentation of simulation run input
  • simple input files
    • write only the parameters that you need

Features

  • 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 .mdp files
  • option to write minimal output
  • addition of more complex parameter blocks
    • density guided simulations
    • free energy calculation scenarios
    • QM/MM
  • parameter evaluation
    • for density guided simulations (calculate spreading width from pixel size)
    • nsteps from setting simulation-time-in-ns
  • textual user interface
  • graphical user interface
  • help text for parameters
  • grompp parameter check

Examples

Prepare an NPT md-simulation with the charmm force-field with sparse output

mdpeditor type.molecular-dynamics output.minimal force_field.charmm pressure.atmospheric temperature.300K-protein-separate

yields

integrator         = md
dt                 = 0.002
nsteps             = -1
nstxout            = 0
nstvout            = 0
nstfout            = 0
nstlog             = 50000
nstenergy          = 25000
nstxout-compressed = 25000
compressed-x-grps  = Protein
coulombtype        = PME
rcoulomb           = 1.2
vdw-modifier       = Force-switch
rvdw               = 1.2
dispcorr           = no
fourierspacing     = 0.15
tcoupl             = V-rescale
tc-grps            = Protein Non-Protein
tau-t              = 0.1     0.1
ref-t              = 300     300
pcoupl             = C-rescale
pcoupltype         = isotropic
tau-p              = 5.0
compressibility    = 4.5e-5
ref-p              = 1.0
refcoord-scaling   = com
gen-temp           = 300
constraints        = h-bonds

Show the available pre-defined parameter blocks

mdpeditor help

Learn more about parameters for density guided simulations

mdpeditor --explain density_guided.vanilla

Write an .mdp file with all default values, apart from parameters that are determined by the choice of a charmm force-field

mdpeditor --full-mdp force_field.charmm

Add atomspheric pressure coupling to a user-defined .mdp file, discarding all non-GROMACS entries in user.mdp.

mdpeditor user.mdp pressure.atmospheric

Describe the integrator .mdp option

mdpeditor --explain 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.

Installing and running

Install the latest release from the python package manager

pip3 install mdpeditor

Then run it

mdpeditor

Installing and running from source (if you must)

Running directly from the shell

./mdp-editor.py

Build from source (if you must)

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 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdpeditor 1.1.1
File Size Uploaded
mdpeditor-1.1.1.tar.gz 70.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mdpeditor 1.1.1
File Interpreter ABI Platform
mdpeditor-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 145.1 kB

Release files / mdpeditor-1.1.1.tar.gz

Download URL mdpeditor-1.1.1.tar.gz
Size 70.2 kB
Tags Source
SHA-256 checksum
How to use checksums
795d049ef3656f257adeea8c6831ffb4859725337885a7c144e9ab1cd5398438
BLAKE2b-256 checksum
How to use checksums
6d7644e3c65773a831ea2fa1e3fc6d696ef0821822230fcba62e9230954677bf
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-1.1.1-py3-none-any.whl

Download URL mdpeditor-1.1.1-py3-none-any.whl
Size 74.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf2f072be3dc2b250e1c59c949793f548e6df9d1a8cc88569e08c5b471305c7c
BLAKE2b-256 checksum
How to use checksums
4a3e08cf5fbd1230ab03d38650f0a152371e01bb972d2375473b8176388441cd
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 history Release notifications | RSS feed

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.4

2 release files

0.9.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page