Thank you for the great help. The tutorial addresses my use case. However, I have trouble generating the right index file and making the right correction n the 'topol.top' file. Specifically, I have the following confusions:
In the example, the LPH atom is at position 47-48. In my case it is only at position 54. So I went with the following options, without completely understanding what they do, but changing them as per my use case.
Grouping both LPH particles
>54
Excluding both LPH particles from the ligand
>13&!55
Naming ligand as lig
>name 50 lig
Grouping rec and lig
>1|56
Cleaning
>del 17-55
Ran it with:
> gmx_MMPBSA -O -i
mmpbsa.in -cs str_noLP.pdb -ci index_mod_gromacs.ndx -cg 1 13 -ct com_traj.xtc -cp topol.top -o FINAL_RESULTS_MMPBSA.dat -eo FINAL_RESULTS_MMPBSA.csv
Ended up with:
> MMPBSA_Error: /usr/local/gromacs/bin/gmx make_ndx failed when querying index_mod_gromacs.ndx