Ambertools is a freely distributed program for preparing molecular dynamics simulations. If you build your system using Ambertools, then you can convert the Amber topology and coordinate files to GROMACS format using the ACPYE code https://github.com/alanwilter/acpype.
This tutorial will go through the steps of converting an Amber topology and coordinate file into GROMACS format. In this example, we assume you have two files generated from Ambertools:
The necessary files to run this tutorial can be found here.
Make sure acpype is in your path and type:
Running this command will produce two files:
If your system was prepared using Amber14FF, some atom-specific names are not recognized by acpype, so we need to modify the topology file:
Finally, if you added Na+ and Cl- ions in Amber, these can be in a random order in the system_solv_GMX.gro file. Check your .gro file to see if Na+ and Cl- are out of order. GROMACS needs Na+ and Cl- to all be grouped together in the coordinate file. If you need to reorder the ions, you can use the script, reorder.py:
Now you have a GROMACS topology and coordinate file that can be used to run MD simulations in GROMACS.