From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Fri Feb 25 2011 - 16:11:42 CST

On Fri, 2011-02-25 at 16:09 -0500, Pavan Ghatty wrote:
> Hello All,
> This is really a lindex question. I am tyring to calculate total
> number of hydrogen bonds between two selections.
> >Main< (w9) 16 % measure hbonds 3.4 30 $cell $pro
> {6320 6257 6225 6183} {1406 2542 2070 3624} {6321 6258 6226 6184}
>
> >Main< (w9) 15 % lindex [measure hbonds 3.4 30 $cell $pro] 0
> 6320 6257 6225 6183
>
> Clearly in this example there are 4 hbonds. How can I get the number 4
> from: lindex [measure hbonds 3.4 30 $cell $pro] 0 ?
>
>
> I found this rather old thread
> [http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/3372.html]
> where "Ahmet" seems to have written an amazing code for hydrogen bond
> calculation. Is it archived somewhere?

have you searched through the thread?
the file is attached to an earlier message.

http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/3366.html
http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/att-3366/hbond.tcl

axel.

>
> Thanks,
> Pavan

-- 
Dr. Axel Kohlmeyer
akohlmey_at_gmail.com http://goo.gl/1wk0
Institute for Computational Molecular Science
Temple University, Philadelphia PA, USA.