Problem in creating Topology by command pdb2gmx

GROMACS version:2018
GROMACS modification: Yes/No
Here post your question:
I am getting following error with the command
gmx pdb2gmx -f 2WGR_clean.pdb -o 2WGR_processed.gro -water spce
HFatal error:
Residue 163 named LYS of a molecule in the input file was mapped
to an entry in the topology database, but the atom CG used in
that entry is not found in the input file. Perhaps your atom
and/or residue naming needs to be fixed.
How to solve it?

The error is stating that there are atoms missing from one of the lysine residues of your protein. Examining the 2WGR pdb file, it seems the last lysine residue listed is missing several atoms. After a quick search, this thread suggests some software for manually fixing your proteins. There’s also a server which automates the process of fixing pdb files (https://www.protein-science.com/), the paper for which you can find here (https://pubs.acs.org/doi/10.1021/acs.jcim.2c00571)

Thanks Karis. Your suggestion has solved the current problem. I have another issue. It will be nice if you can help me. I am facing problem in creatinh ligand topology. As per tutorial for GROMOS 96 force field we need PRODRG 2.5. This server is not working at all. ATB did not work for big size ligand. Please sugget how to create ligan topolgy for GROMOS 96?

You may need to generate topologies for individual fragments and using the parameters for those fragments to define the entire molecule, as suggested in the FAQ. The size limit on the ATB server is due to the limit in computational resources and there isn’t really a technical way to get around that.