GROMACS API
A free and open-source software suite for high-performance molecular dynamics and output analysis.
GROMACS is one of the most widely used open-source and free software codes in chemistry, used primarily for dynamical simulations of biomolecules. It provides a rich set of calculation types, preparation and analysis tools.
Input method
Set input_mode to choose how inputs are supplied. Only fields for the selected method are used.
parameters: Set parameters heretext: Raw MDP and input filesupload: Complete input ZIP
Fields
The same names the web form posts. See the field type table for what each kind means over HTTP.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
pdb
|
string file | yes parameters, text | — |
Molecule coordinates Load 3D SDF or Tripos Mol2 files to prepare small molecules automatically. You can select several files of the same format. Use PDB, mmCIF, or GRO for supported biomolecules. When supplying a topology, use matching coordinates and hydrogens. file types .pdb,.ent,.gro,.cif,.mmcif,.mol2,.sdf,.mol. |
structure_format
|
string select | no parameters, text | auto |
Coordinate format
One of:
auto, pdb, gro, mmcif, mol2, sdf.
|
topology
|
string file | no parameters, text | — |
Topology (.top) Optional in form mode for supported biomolecules and 3D SDF or Mol2 files. Required with a raw MDP. Include force-field parameters, water and ions if adding solvent to a supplied topology. file types .top. |
supporting_files
|
string file | no parameters, text | — |
Topology includes (.zip) ITP files, position restraints and custom .ff directories, with relative include paths preserved. API: base64 ZIP. file types .zip. |
index
|
string file | no text | — |
Index groups (.ndx) file types .ndx. |
input_bundle
|
string file | yes upload | — |
Complete GROMACS input (.zip) GRO/PDB coordinates, TOP, MDP and all ITP includes. Optional index.ndx and state.cpt. Keep relative paths; no absolute includes. Runs grompp then mdrun without changing your MDP. API: base64 ZIP; 100 MB expanded maximum. file types .zip. |
coordinates_path
|
string text | no upload | conf.gro |
Coordinates path inside ZIP |
topology_path
|
string text | no upload | topol.top |
Topology path inside ZIP |
mdp_path
|
string text | no upload | md.mdp |
MDP path inside ZIP |
mdp
|
string textarea | yes text | — |
Raw MDP Used exactly as entered. Set nstxout-compressed > 0 for XTC or nstxout > 0 for TRR playback. All other settings come from this MDP; no automatic preparation or minimization. |
force_field
|
string select | no parameters | amber99sb-ildn |
Force field
Amber choices use GAFF2 for small molecules. OPLS-AA needs local parameters for the molecule. Biomolecules use the selected GROMACS force field.
One of:
amber99sb-ildn, amber03, amber99sb, charmm27, oplsaa.
|
water_model
|
string select | no parameters | tip3p |
Water model
For automatically prepared small molecules, use the force-field default to select Amber OPC or OPLS TIP4P.
One of:
auto, tip3p, spce, none.
|
box_type
|
string select | no parameters | dodecahedron |
Periodic box
One of:
dodecahedron, cubic, octahedron.
|
box_distance
|
number number | no parameters | 1.2 |
Solute-to-box distance (nm) minimum 0.1, maximum 10, step 0.1. |
solvate
|
boolean checkbox | no parameters | true |
Add water |
neutralize
|
boolean checkbox | no parameters | true |
Neutralize with counterions Applied when adding water; replaces SOL molecules with sodium or chloride. |
salt_concentration
|
number number | no parameters | 0.15 |
NaCl concentration (mol/L) minimum 0, maximum 5, step 0.01. |
minimize
|
boolean checkbox | no parameters | true |
Minimize energy before dynamics |
em_steps
|
number number | no parameters | 5000 |
Maximum minimization steps minimum 1, maximum 1000000, step 1. |
emtol
|
number number | no parameters | 1000 |
Minimization force tolerance (kJ/mol/nm) minimum 0.01, maximum 100000. |
nvt_steps
|
number number | no parameters | 0 |
NVT equilibration steps 0 skips this stage. Runs before NPT and production; velocities continue through checkpoints. minimum 0, maximum 100000000, step 1. |
npt_steps
|
number number | no parameters | 0 |
NPT equilibration steps 0 skips this stage. Uses isotropic C-rescale pressure coupling. minimum 0, maximum 100000000, step 1. |
integrator
|
string select | no parameters | md |
Integrator
One of:
md, md-vv, sd.
|
nsteps
|
number number | no parameters | 5000 |
Production steps minimum 1, maximum 1000000000, step 1. |
dt
|
number number | no parameters | 0.002 |
Time step (ps) 0.002 ps = 2 fs. Choose a time step compatible with your constraints and force field. minimum 1e-06, maximum 0.02. |
ensemble
|
string select | no parameters | nvt |
Production ensemble
One of:
nvt, npt, nve.
|
temperature
|
number number | no parameters | 300 |
Temperature (K) minimum 1, maximum 2000, step 1. |
tcoupl
|
string select | no parameters | v-rescale |
Thermostat
NVT/NPT only. Stochastic dynamics uses its built-in thermostat.
One of:
v-rescale, nose-hoover.
|
tau_t
|
number number | no parameters | 0.1 |
Temperature coupling time (ps) minimum 0.001, maximum 100. |
pressure
|
number number | no parameters | 1 |
Reference pressure (bar) NPT only; isotropic C-rescale pressure coupling. minimum 0.01, maximum 10000. |
tau_p
|
number number | no parameters | 5 |
Pressure coupling time (ps) minimum 0.1, maximum 100. |
compressibility
|
number number | no parameters | 4.5e-05 |
Compressibility (bar⁻¹) NPT only. The default is for water near room temperature. minimum 1e-10, maximum 1. |
constraints
|
string select | no parameters | h-bonds |
Bond constraints
Flexible hydrogen bonds may need a smaller time step. Solvent constraints come from the water topology.
One of:
none, h-bonds, all-bonds.
|
coulombtype
|
string select | no parameters | PME |
Electrostatics
One of:
PME, Cut-off, Reaction-Field.
|
cutoff
|
number number | no parameters | 1 |
Coulomb and van der Waals cutoff (nm) Verlet neighbour lists with periodic boundaries. Must fit within half the shortest box vector. minimum 0.1, maximum 5. |
epsilon_rf
|
number number | no parameters | 78.3 |
Reaction-field dielectric minimum 0, maximum 1000. |
output_stride
|
number number | no parameters | 100 |
Write a frame every N steps Writes both XTC and full-precision TRR positions; also sets energy/log output intervals. minimum 1, maximum 1000000, step 1. |
seed
|
number number | no parameters | -1 |
Random seed -1 chooses a random seed. Used for initial velocities and stochastic dynamics. minimum -1, maximum 2147483647, step 1. |
device
|
string select | no | auto |
Nonbonded calculation device
Auto lets GROMACS use available acceleration. GPU requires a working GPU build/device; minimization uses CPU nonbonded kernels.
One of:
auto, gpu, cpu.
|
threads
|
number number | no | 0 |
OpenMP threads (0 = automatic) minimum 0, maximum 256, step 1. |
Example request
These are the defaults, exactly as the web form would post them.
curl -X POST https://athanortools.com/api/gromacs/ \
-H 'Content-Type: application/json' \
-d '{
"input_mode": "parameters",
"pdb": "",
"structure_format": "auto",
"topology": "",
"supporting_files": "",
"force_field": "amber99sb-ildn",
"water_model": "tip3p",
"box_type": "dodecahedron",
"box_distance": 1.2,
"solvate": true,
"neutralize": true,
"salt_concentration": 0.15,
"minimize": true,
"em_steps": 5000,
"emtol": 1000,
"nvt_steps": 0,
"npt_steps": 0,
"integrator": "md",
"nsteps": 5000,
"dt": 0.002,
"ensemble": "nvt",
"temperature": 300,
"tcoupl": "v-rescale",
"tau_t": 0.1,
"pressure": 1,
"tau_p": 5,
"compressibility": 4.5e-05,
"constraints": "h-bonds",
"coulombtype": "PME",
"cutoff": 1,
"epsilon_rf": 78.3,
"output_stride": 100,
"seed": -1,
"device": "auto",
"threads": 0
}'
The reply is 202 with a queued job; poll its
status_url until status is
succeeded or failed. See
the quick start for the
whole exchange.
Data
| status | Meaning |
|---|---|
queued |
Accepted, waiting for the jobs ahead of it. `position` counts how many those are. |
running |
The tool is executing now. |
succeeded |
Finished; `result` holds the tool's output and `license` the terms it came under. |
failed |
Finished; `error` holds a code and a message. |
cancelled |
Abandoned at the submitter's request; there is no result. A job cancelled before its turn never ran at all. |
Errors
| code | Meaning |
|---|---|
invalid_input |
The client supplied invalid or incomplete input. |
tool_unavailable |
The requested third-party dependency is not available on this host. |
execution_failed |
A configured third-party tool exited unsuccessfully. |
internal_error |
An adapter failed in a way it does not describe. The detail is in the server log, not the response. |
not_found |
No job has that id. Finished jobs are dropped eventually. |
unauthorized |
HTTP 401. The bearer token is wrong, was revoked, or belongs to an account that can no longer sign in. Nothing was run. |
job_limit_reached |
HTTP 429. This address, not being signed in, has submitted as many jobs as it may in 24 hours. Accounts have no limit. |
runtime_limit_exceeded |
The job was stopped when it reached the execution time limit for its submitter. |