From: Ebert Maximilian (
Date: Fri Jun 27 2014 - 11:08:22 CDT

Dear list,

I am trying to make a video of my trajectory in which every time a hydrogen bond is formed, the residues implicated in bond formation change their representation style to surface. Therefore, I am trying to find out using TCL which residues are forming an hbond in each frame. The result of

measure hbonds 3.5 30 $sel1 $sel2

is an array with the 3 indices of atoms implicated in the formation of this bond. Now I am trying to get the corresponding residues to these indices. How can I select the residue in the atomselect statement? Is there something like

atomselect top “residue where index 1120”

In addition if you know another method to highly during playback of the trajectory the hbonds differently with build in methods other than the dashed line (for instance by having spheres around the residues implicated in the hbond) please let me know.

Thank you very much,