Hello milosz,
Thanks for the suggestion,
However, after following your suggestion and commenting out the [default] section in the lig.itp and lig.prm files, I encountered an error
Program: gmx grompp, version 2022.5
Source file: src/gromacs/gmxpreprocess/topio.cpp (line 577)
Fatal error:
Syntax error - File lig.itp, line 21
Last line read:
‘[ atomtypes ]’
Invalid order for directive atomtypes
Then, I commented out the ‘atomtypes’ section in all the files. However, it again showed me errors.
ERROR 1 [file lig.prm, line 19]:
** Incorrect number of atomtypes for dihedral (4 instead of 2 or 4)**
Generated 4277 of the 4278 non-bonded parameter combinations
Generating 1-4 interactions: fudge = 0.5
Generated 4278 of the 4278 1-4 parameter combinations
Excluding 3 bonded neighbours molecule type ‘UNK’
WARNING 1 [file lig.itp, line 19]:
** Too few parameters on line (source file**
** /home2/ashwani/Downloads/gromacs-2022.5/src/gromacs/gmxpreprocess/toppush.cpp, line 1900)**
ERROR 2 [file lig.itp, line 40]:
** moleculetype UNK is redefined**
I prepared my ligand file with GAFF. Then convert it with ParmED. So their is a problem in conversion? Or is there something else that I did wrong?
I have one more question: Are the .itp file and .prm file the same? Or in this step, I also made some mistakes?
I included this file last in the topology file:
#include “lig.prm”
However, I realized that the .itp and .prm files are the same. So, which file should I include here?"