# Running MD steps after Acpype conversion

**URL:** <https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536>\
**Category:** User discussions\
**Created:** [February 12, 2025, 9:24pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536 "2025-02-12T21:24:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanm](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ryanm](https://gromacs.bioexcel.eu/u/ryanm)\
**Post date:** [February 12, 2025, 9:24pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536/1 "2025-02-12T21:24:53Z")

</div>

GROMACS version: 2021.4  
GROMACS modification: Yes/No  
Here post your question  
I used Acpype to generate a topology file for my protein. I try to run energy minimization, but get a syntax error saying invalid order of directives GROMACS can’t read the Acpype generated topology file. If I try to delete the extra lines Acpype provides that specify the conversion names of atoms between Amber and GROMACS, the defaults and atomtypes lines. GROMACS will not understand the atoms in the topology file. I am stuck because I can’t perform em step because Acpype wrote the topology format in the wrong way, but what it wrote is necessary for GROMACS to understand the specific atoms in the topology file.

---

<div class="post-metadata">

**Author:** ![ryanm](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ryanm](https://gromacs.bioexcel.eu/u/ryanm)\
**Post date:** [February 13, 2025, 10:26pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536/2 "2025-02-13T22:26:45Z")

</div>

It is how the atoms and residues are named which is in AMBER format (CYS is CYX). GROMACS is having trouble reading the atoms and residues in the topology. I am using amber99sb force-field.

---

<div class="post-metadata">

**Author:** ![ryanm](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ryanm](https://gromacs.bioexcel.eu/u/ryanm)\
**Post date:** [February 14, 2025, 7:40pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536/3 "2025-02-14T19:40:51Z")

</div>

What is the Calcium ion named in the topology database?

---

<div class="post-metadata">

**Author:** ![ryanm](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ryanm](https://gromacs.bioexcel.eu/u/ryanm)\
**Post date:** [February 14, 2025, 7:46pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536/4 "2025-02-14T19:46:08Z")

</div>

I figured it out.

HETATM 3869 CA CA 259 20.380 18.050 23.490 1.00 0.00 Ca

For calcium, it is CA and Ca in the pdb file with the protein.

---

<div class="post-metadata">

**Author:** ![H.Mosaddeghi](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/h.mosaddeghi/32/4066_2.png) [@H.Mosaddeghi](https://gromacs.bioexcel.eu/u/H.Mosaddeghi)\
**Post date:** [February 14, 2025, 7:54pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536/5 "2025-02-14T19:54:57Z")

</div>

what is your pdb id?

---

<div class="post-metadata">

**Author:** ![obZehn](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/obzehn/32/2629_2.png) [@obZehn](https://gromacs.bioexcel.eu/u/obZehn)\
**Post date:** [February 15, 2025, 2:23pm UTC](https://gromacs.bioexcel.eu/t/running-md-steps-after-acpype-conversion/11536/6 "2025-02-15T14:23:17Z")

</div>

In my (extremely limited) experience with acpype, the topology you get for the molecule you parameterize has first the `[atomtypes]` section, as the molecule will need specific new atom types, and then the `[moleculetype]` section (and the following ones) that form the true topology of the molecule.

If this is the case, then GROMACS doesn’t want two `[atomtypes]` sections (the one from the force field and the one from the acpype topology) and you have to append by hand the `[atomtypes]` entries in the acpype generated topology to the force field ones.

Also, isn’t acpype mostly for ligands (gaff/gaff2 parameters)? For a protein I would use standard amber of some kind (amber99sb etc.).
