Gmx_trajectory and dynamic index

GROMACS version: 2018- 2020
GROMACS modification: NO

Hello,

I am using gmx select to select the water molecules within a given distance from a protein at different time of my simulation and output the corresponding index files. And from this index I would like to output the X,Y and Z coordinates . However I have seen that this not yet possible since the gmx trajectory plot the

" gmx trajectory plots coordinates, velocities, and/or forces for provided selections. By default, the X, Y, and Z … For dynamic selections, currently the values are written out for all positions that the selection could select."

Is there a workaround ?

Thank you

Stephane

I never used ‘gmx select’ , but VMD has dynamics selection for visualization purpose.

Yeah my objective is to obtain the X, Y and Z components for only the selected atoms. I see that it is only It is only possible if you provide a index file already generated with gmx select

Stéphane

Hi StephaneA,
Did you find a way to do it?

Thank you,
Júlio

Unfortunately not dynamically. I had to use two steps and two gmx tools in a bash script to use

  1. gmx select to obtain a ndx file with the selected water for each frame
  2. the gmx trajectory with the ndx file for each frame to obtained the x; y, z coordinates

It was long

Yeah in two steps

  1. Using gmx select to obtain a