I’m trying to calculate the distance between the center of mass (COM) of HP-beta-cyclodextrin and gliclazide during a simulation using gmx distance, as referenced in this paper, However, I keep getting the following error:
Inconsistency in user input:
Selection ‘GLZ’ does not evaluate into an even number of positions (there are 43 positions)
Gliclazide consists of 43 atoms, so I assume this error is due to GROMACS expecting an even number of positions for the selection.
How can I properly define the selection so that gmx distance calculates the COM distance correctly? Is there a way to force GROMACS to compute the COM even with an odd number of atoms, or should I modify the selection somehow?