Position restraints and mdp setup after an AmberTools(ZAFF) -> ParmEd -> GROMACS handover

GROMACS version: 2025.4-conda_forge
GROMACS modification: No

Hi all,

I’m setting up GROMACS MD for a system whose topology was NOT generated by pdb2gmx, but

built in AmberTools and converted with ParmEd. I’d appreciate advice on `(a) position

restraints and (b) mdp parameters`, because the usual pdb2gmx-based assumptions don’t hold.

Apologies in advance for the length — I’ve tried to keep only what’s needed.

## 1. System

- Protein: a Cys2His2 zinc-finger transcription factor; 9-finger construc + a 28 bp DNA duplex.

- 9 Zn(II) sites, each tetrahedrally coordinated by 2 Cys (SG) + 2 His (NE2).

- The Zn centers are described by a BONDED metal model (ZAFF-style, Zn is therefore part of the protein molecule, not a free ion)

## 2. Topology built in AmberTools (tleap)

following https://ambermd.org/tutorials/advanced/tutorial20/ZAFF.php

```bash

source leaprc.protein.ff14SB

source leaprc.DNA.bsc1

source leaprc.water.tip3p

addAtomTypes { { “ZN” “Zn” “sp3” } { “S4” “S” “sp3” } { “N3” “N” “sp3” } }

loadamberparams frcmod.ions1lm_126_tip3p

loadamberprep ZAFF.prep

loadamberparams ZAFF.frcmod

mol = loadpdb complex.pdb

# explicit bonds: bond mol. mol.

charge mol

check mol

solvateBox mol TIP3PBOX 10.0

addionsrand mol NA 67 CL 33 # 0.15 M NaCl + neutralization

saveamberparm mol complex_solv.prmtop complex_solv.inpcrd

```

## 3. Conversion to GROMACS

The WHOLE SOLVATED system was converted in one pass with ParmEd:

```python

load_file(prmtop, inpcrd)

save(‘topol.top’); save(‘conf.gro’)

```

Nothing was re-solvated in GROMACS.

In the resulting topol.top, [ molecules ] looks like:

```

system1 1 # DNA

system2 1 # DNA

system3 1 # Protein

NA 1 / CL 1 (repeated ~33 times)

NA 34

WAT 18666

```

i.e. ParmEd wrote the solute as three separate moleculetypes (system1/2/3) and listed the

ions as many single-ion entries instead of aggregating them.

## 4. .mdp for EM/NVT/NPT/production

I am using the following mdp files (all obtained from the Lemkul tutorial) in EM/NVT/NPT/production:

[for EM](http://www.mdtutorials.com/gmx/lysozyme/Files/minim.mdp)

[for NVT](http://www.mdtutorials.com/gmx/lysozyme/Files/nvt.mdp)

[for NPT](http://www.mdtutorials.com/gmx/lysozyme/Files/npt.mdp)

[for production](http://www.mdtutorials.com/gmx/lysozyme/Files/md.mdp)

## 5. Questions

### Q1. POSITION RESTRAINTS AFTER A ParmEd CONVERSION.

My nvt.mdp / npt.mdp intend to use position restraints (define = -DPOSRES). But a

pdb2gmx-generated topology contains a “#ifdef POSRES … #include posre.itp … #endif”

block inside the solute [ moleculetype ]; a ParmEd-converted Amber topology has no such

block. So it looks like my “-DPOSRES” would be silently ignored (no restraints applied,

and grompp doesn’t complain).

- What is the recommended way to add position restraints in this case? Or do i need position restraints at all?

- Is “gmx genrestr -f conf.gro -o posre.itp” the right tool, and how do I attach its output

to the correct [ moleculetype ]?

- Since the solute came out as THREE moleculetypes (system1/2/3), do I need one posre file

per moleculetype with per-moleculetype (local) atom numbering rather than global indices?

- Related: is the three-moleculetype split itself expected from ParmEd, and can it break

anything downstream (restraints, index groups, tc-grps, analysis)?

### Q2. IS my mdp configuration still CORRECT HERE?

I’m using the Lemkul tutorial mdp files, which are designed for a pdb2gmx-generated topology. But my topology is Amber-family (ZAFF) and ParmEd-converted. Are there any parameters in the mdp files that I should change to accommodate this?

### Q3. ParmEd-converted topology vs. rebuilding from the PDB with `pdb2gmx`.

Given the two-step route above (tleap/ZAFF → ParmEd), which is the correct way forward:

**(a)** run EM, NVT, NPT and production MD directly on the ParmEd-converted `topol.top`, or

**(b)** take the PDB written during the ZAFF/tleap step and rebuild the whole topology from

scratch with `gmx pdb2gmx`?

My concern with (b): the metal sites use custom residue and atom names (Cys → CY4, His →

HD2, Zn → ZN4; atom types ZN/S4/N3) and 36 explicit Zn–ligand bonds that `pdb2gmx` has no

knowledge of. Is the ParmEd route (a) the correct one for such a bonded-metal system, or is

there a supported way to have `pdb2gmx` build/handle these Zn sites?

Thanks very much for any guidance.