I am trying to calculate distance between Center of mass of two groups of atoms located at two ends of my system using distance command in ptraj for AMBER trajectories. For calculating the distance between two atoms, its working well with the following input file,
trajin md_prod_45_ns.trj 1 1000 10
distance x_a :10@O3' :20@O3' out dist_list
But I am not able to mask the group of atoms correctly. Eg. if I want to measure the distance between the center of mass of O3' atoms of reside 10 13 15 to O3' atoms of 20 25 30, what syntax should I write in ptraj input file.
If someone has done this before could you please share your experience?