Error in generating .tpr file

GROMACS version:
GROMACS modification: Yes/No
Here post your question
I have used AMber forcefield and tip3p water model to generate protein topology and acpype srver to generate the ligand topoogy, while generating ions.tpr file I am getting error in the .prm file rearding dihedrals : -
Command line:
gmx grompp -f ions.mdp -c solv.gro -p topol.top -o ions.tpr

Ignoring obsolete mdp entry ‘title’
Ignoring obsolete mdp entry ‘ns_type’

NOTE 1 [file ions.mdp]:
With Verlet lists the optimal nstlist is >= 10, with GPUs >= 20. Note
that with the Verlet scheme, nstlist has no effect on the accuracy of
your simulation.

Setting the LD random seed to -273125991

ERROR 1 [file iso_obj_CHARMM.prm, line 1]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 2 [file iso_obj_CHARMM.prm, line 2]:
Incorrect number of atomtypes for dihedral (0 instead of 2 or 4)

ERROR 3 [file iso_obj_CHARMM.prm, line 4]:
Incorrect number of atomtypes for dihedral (0 instead of 2 or 4)

ERROR 4 [file iso_obj_CHARMM.prm, line 5]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 5 [file iso_obj_CHARMM.prm, line 6]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 6 [file iso_obj_CHARMM.prm, line 7]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 7 [file iso_obj_CHARMM.prm, line 8]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 8 [file iso_obj_CHARMM.prm, line 9]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 9 [file iso_obj_CHARMM.prm, line 10]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 10 [file iso_obj_CHARMM.prm, line 11]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 11 [file iso_obj_CHARMM.prm, line 12]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 12 [file iso_obj_CHARMM.prm, line 13]:
Incorrect number of atomtypes for dihedral (3 instead of 2 or 4)

ERROR 13 [file iso_obj_CHARMM.prm, line 15]:
Incorrect number of atomtypes for dihedral (0 instead of 2 or 4)

ERROR 14 [file iso_obj_CHARMM.prm, line 16]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 15 [file iso_obj_CHARMM.prm, line 17]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 16 [file iso_obj_CHARMM.prm, line 18]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 17 [file iso_obj_CHARMM.prm, line 19]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 18 [file iso_obj_CHARMM.prm, line 20]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 19 [file iso_obj_CHARMM.prm, line 21]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 20 [file iso_obj_CHARMM.prm, line 22]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 21 [file iso_obj_CHARMM.prm, line 23]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 22 [file iso_obj_CHARMM.prm, line 24]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 23 [file iso_obj_CHARMM.prm, line 25]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 24 [file iso_obj_CHARMM.prm, line 26]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 25 [file iso_obj_CHARMM.prm, line 27]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 26 [file iso_obj_CHARMM.prm, line 28]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 27 [file iso_obj_CHARMM.prm, line 29]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 28 [file iso_obj_CHARMM.prm, line 30]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 29 [file iso_obj_CHARMM.prm, line 31]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 30 [file iso_obj_CHARMM.prm, line 32]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 31 [file iso_obj_CHARMM.prm, line 33]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 32 [file iso_obj_CHARMM.prm, line 35]:
Incorrect number of atomtypes for dihedral (0 instead of 2 or 4)

ERROR 33 [file iso_obj_CHARMM.prm, line 36]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 34 [file iso_obj_CHARMM.prm, line 37]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 35 [file iso_obj_CHARMM.prm, line 38]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 36 [file iso_obj_CHARMM.prm, line 39]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 37 [file iso_obj_CHARMM.prm, line 40]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 38 [file iso_obj_CHARMM.prm, line 41]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 39 [file iso_obj_CHARMM.prm, line 42]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 40 [file iso_obj_CHARMM.prm, line 43]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 41 [file iso_obj_CHARMM.prm, line 44]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 42 [file iso_obj_CHARMM.prm, line 45]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 43 [file iso_obj_CHARMM.prm, line 46]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 44 [file iso_obj_CHARMM.prm, line 47]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 45 [file iso_obj_CHARMM.prm, line 48]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 46 [file iso_obj_CHARMM.prm, line 49]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 47 [file iso_obj_CHARMM.prm, line 50]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 48 [file iso_obj_CHARMM.prm, line 51]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 49 [file iso_obj_CHARMM.prm, line 52]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 50 [file iso_obj_CHARMM.prm, line 53]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 51 [file iso_obj_CHARMM.prm, line 54]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 52 [file iso_obj_CHARMM.prm, line 55]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 53 [file iso_obj_CHARMM.prm, line 56]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 54 [file iso_obj_CHARMM.prm, line 57]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 55 [file iso_obj_CHARMM.prm, line 58]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 56 [file iso_obj_CHARMM.prm, line 59]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 57 [file iso_obj_CHARMM.prm, line 60]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 58 [file iso_obj_CHARMM.prm, line 62]:
Incorrect number of atomtypes for dihedral (0 instead of 2 or 4)

ERROR 59 [file iso_obj_CHARMM.prm, line 63]:
Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)

ERROR 60 [file iso_obj_CHARMM.prm, line 65]:
Not enough parameters

ERROR 61 [file iso_obj_CHARMM.prm, line 65]:
Unknown bond_atomtype NONBONDED

There was 1 note


Program: gmx grompp, version 2021.4-Ubuntu-2021.4-2
Source file: src/gromacs/gmxpreprocess/toppush.cpp (line 1008)

Fatal error:
There were 61 errors in input file(s)

How to correct the dihedrals

I think you should have a close look at your topol.top file. You say that you are using an AMBER force field, but the error message indicates that you are including CHARMM parameters in your topology. Make sure that you haven’t included parts of a topology from a previous simulation.

I have created ligand topology file using ACPYPE server, and it give these files in the image


and .top file genrate for ligand has this content

; iso_obj.pdb.mol2_GMX_OPLS.top created by acpype (v: 2022.7.21) on Wed Apr 17 11:49:50 2024

; Include forcefield parameters
#include “ffoplsaa.itp”

; Include iso_obj.pdb.mol2_GMX.itp topology
#include “iso_obj.pdb.mol2_GMX.itp”

; Ligand position restraints
#ifdef POSRES_LIG
#include “posre_iso_obj.pdb.mol2.itp”
#endif

[ system ]
iso_obj.pdb.mol2

[ molecules ]
; Compound nmols
iso_obj.pdb.mol2 1

is it possible that parameter file generated using CHARMM forcefield in acpype server ?

I don’t know. Have you checked that content.log file? What does your topol.top file look like? Are you only including what you should?

It seems like the file you showed (iso_obj.pdb.mol2_GMX_OPLS.top) is for OPLS, so that should probably not be used together with Amber either.

You can probably search for which of these files include file iso_obj_CHARMM.prm to get a deeper understanding.

I would recommend that you take a step back and look closer at what these tools are generating for you. Have a look at the documentation etc. It’s very handy to use tools for generating parameters, but you have to be careful so that you are not using them (or the output) in a wrong way.

[INFO] (file 1/19) - Processing file type ‘em_mdp’ with filename ‘em.mdp’
[INFO] (file 1/19) - Writing content of file type ‘em_mdp’ with filename ‘em.mdp’ inside ‘em.mdp’
[INFO] (file 2/19) - Processing file type ‘AC_frcmod’ with filename ‘_AC.frcmod’
[INFO] (file 2/19) - Writing content of file type ‘AC_frcmod’ with filename ‘_AC.frcmod’ inside ‘iso_obj_AC.frcmod’
[INFO] (file 3/19) - Processing file type ‘AC_inpcrd’ with filename ‘_AC.inpcrd’
[INFO] (file 3/19) - Writing content of file type ‘AC_inpcrd’ with filename ‘_AC.inpcrd’ inside ‘iso_obj_AC.inpcrd’
[INFO] (file 4/19) - Processing file type ‘AC_lib’ with filename ‘_AC.lib’
[INFO] (file 4/19) - Writing content of file type ‘AC_lib’ with filename ‘_AC.lib’ inside ‘iso_obj_AC.lib’
[INFO] (file 5/19) - Processing file type ‘AC_prmtop’ with filename ‘_AC.prmtop’
[INFO] (file 5/19) - Writing content of file type ‘AC_prmtop’ with filename ‘_AC.prmtop’ inside ‘iso_obj_AC.prmtop’
[INFO] (file 6/19) - Processing file type ‘mol2’ with filename ‘.mol2’
[INFO] (file 6/19) - Writing content of file type ‘mol2’ with filename ‘.mol2’ inside ‘iso_obj.mol2’
[INFO] (file 7/19) - Processing file type ‘CHARMM_inp’ with filename ‘_CHARMM.inp’
[INFO] (file 7/19) - Writing content of file type ‘CHARMM_inp’ with filename ‘_CHARMM.inp’ inside ‘iso_obj_CHARMM.inp’
[INFO] (file 8/19) - Processing file type ‘CHARMM_prm’ with filename ‘_CHARMM.prm’
[INFO] (file 8/19) - Writing content of file type ‘CHARMM_prm’ with filename ‘_CHARMM.prm’ inside ‘iso_obj_CHARMM.prm’
[INFO] (file 9/19) - Processing file type ‘CHARMM_rtf’ with filename ‘_CHARMM.rtf’
[INFO] (file 9/19) - Writing content of file type ‘CHARMM_rtf’ with filename ‘_CHARMM.rtf’ inside ‘iso_obj_CHARMM.rtf’
[INFO] (file 10/19) - Processing file type ‘CNS_inp’ with filename ‘_CNS.inp’
[INFO] (file 10/19) - Writing content of file type ‘CNS_inp’ with filename ‘_CNS.inp’ inside ‘iso_obj_CNS.inp’
[INFO] (file 11/19) - Processing file type ‘CNS_par’ with filename ‘_CNS.par’
[INFO] (file 11/19) - Writing content of file type ‘CNS_par’ with filename ‘_CNS.par’ inside ‘iso_obj_CNS.par’
[INFO] (file 12/19) - Processing file type ‘CNS_top’ with filename ‘_CNS.top’
[INFO] (file 12/19) - Writing content of file type ‘CNS_top’ with filename ‘_CNS.top’ inside ‘iso_obj_CNS.top’
[INFO] (file 13/19) - Processing file type ‘GMX_OPLS_itp’ with filename ‘_GMX_OPLS.itp’
[INFO] (file 13/19) - Writing content of file type ‘GMX_OPLS_itp’ with filename ‘_GMX_OPLS.itp’ inside ‘iso_obj_GMX_OPLS.itp’
[INFO] (file 14/19) - Processing file type ‘GMX_OPLS_top’ with filename ‘_GMX_OPLS.top’
[INFO] (file 14/19) - Writing content of file type ‘GMX_OPLS_top’ with filename ‘_GMX_OPLS.top’ inside ‘iso_obj_GMX_OPLS.top’
[INFO] (file 15/19) - Processing file type ‘GMX_gro’ with filename ‘_GMX.gro’
[INFO] (file 15/19) - Writing content of file type ‘GMX_gro’ with filename ‘_GMX.gro’ inside ‘iso_obj_GMX.gro’
[INFO] (file 16/19) - Processing file type ‘GMX_itp’ with filename ‘_GMX.itp’
[INFO] (file 16/19) - Writing content of file type ‘GMX_itp’ with filename ‘_GMX.itp’ inside ‘iso_obj_GMX.itp’
[INFO] (file 17/19) - Processing file type ‘GMX_top’ with filename ‘_GMX.top’
[INFO] (file 17/19) - Writing content of file type ‘GMX_top’ with filename ‘_GMX.top’ inside ‘iso_obj_GMX.top’
[INFO] (file 18/19) - Processing file type ‘NEW_pdb’ with filename ‘_NEW.pdb’
[INFO] (file 18/19) - Writing content of file type ‘NEW_pdb’ with filename ‘_NEW.pdb’ inside ‘iso_obj_NEW.pdb’
[INFO] (file 19/19) - Processing file type ‘md_mdp’ with filename ‘md.mdp’
[INFO] (file 19/19) - Writing content of file type ‘md_mdp’ with filename ‘md.mdp’ inside ‘md.mdp’
[INFO] All the file types were processed. Files processed with success=19; files skipped=0
This is content.log file

OK. And your topol.top?

; Command line:
; gmx pdb2gmx -f 3cp_clean.pdb -o 3cp_processed.gro -ter
; Force field was read from the standard GROMACS share directory.
;

; Include forcefield parameters
#include “amber99sb-ildn.ff/forcefield.itp”

; Include ligand parameters
#include “iso_obj_CHARMM.prm”

[ moleculetype ]
; Name nrexcl
Protein_chain_A 3



; Include Position restraint file
#ifdef POSRES
#include “posre.itp”
#endif

; Include ligand topology
#include “iso_obj_GMX_OPLS.itp”

; Include water topology
#include “amber99sb-ildn.ff/tip3p.itp”

#ifdef POSRES_WATER
; Position restraint for each water oxygen
[ position_restraints ]
; i funct fcx fcy fcz
1 1 1000 1000 1000
#endif

; Include topology for ions
#include “amber99sb-ildn.ff/ions.itp”

[ system ]
; Name
Protein

[ molecules ]
; Compound #mols
Protein_chain_A 1
MOL 1

Thanks. The line "#include “iso_obj_CHARMM.prm” is an indication why you have loaded CHARMM parameters (or at least have errors related to CHARMM parameters). In general, loading a .prm file is not a good idea (in GROMACS).
The combination of
"#include “amber99sb-ildn.ff/forcefield.itp” (AMBER)
"#include “iso_obj_CHARMM.prm” (CHARMM)
and
"#include “iso_obj_GMX_OPLS.itp” (OPLS)
is bound to give you problems. You should decide which force field to use.

thank you, It worked when i removed the parameter file from the topol.top