VMD-L Mailing List
From: Maxim Belkin (mbelkin_at_ks.uiuc.edu)
Date: Fri Jun 27 2014 - 11:29:36 CDT
Perhaps, "same residue as index 1120" is what you are looking for.
You can write a tcl script that is called during playback every time frame of a trajectory changes (vmd_frame). In that script, you can do all the analysis you need and draw spheres, cylinders or whatever you want and where you want.
Take a look here:
On Jun 27, 2014, at 11:08 AM, Ebert Maximilian <m.ebert_at_umontreal.ca> wrote:
> 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,