From: syma khalid (syma_at_biop.ox.ac.uk)
Date: Fri Jan 28 2005 - 07:09:27 CST

You can loop over the trajectory using:

Set nf [molinfo top get numframes]
For {set i 1} {$i<$nf} {incr i} {

-Syma

-----Original Message-----
From: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] On Behalf
Of bora erdemli
Sent: 28 January 2005 12:38
To: YOLANDA SMALL; vmd-l_at_ks.uiuc.edu
Subject: Re: vmd-l: measure hbonds

Hi All;

there is a tcl command 'measure hbonds'command the
usage is as follows:

measure hbonds 3.5 30 $sel1 $sel2
3.5 is the cut off distance and 30 is the cut off
angle.
$sel1 is the donor of the hydrogen bonds
$sel2 is the acceptor of the hydrogen bonds

if you put this command line in a for loop which is
over the trajectory and calculate the number of
hydrogen bonds for each frame by using some TCL
scripting. you may make a plot of time versus Hbond
graph. If you do not do it I may write a simple
instructive code for you.

sincerelu yours

--- YOLANDA SMALL <yas102_at_psu.edu> wrote:

> Hello,
>
> I have a series of pdb files which I obtained by
> converting a trajectory file to
> pdb frames.
> Is there a VMD script somewhere that measures the
> hbonds between certain atoms
> in each frame and outputs the frequency of hbonds as
> a function of time?
>
> Thanks,
> Y Small
>

=====
Sabri Bora Erdemli
Koc University
Computational Science and Engineering
Research and Teaching Asistant
Koc Universitesi pk.218 34550
sariyer Istanbul/TURKEY
tel no: 02123381736
          05326512523

__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
------------------------------------------------------------------------
--------
Received: by biop.ox.ac.uk (MX V4.2 AXP) with SITE; Fri, 28 Jan 2005
12:59:02
          +0000
Received: from tx6.mail.ox.ac.uk by nutmeg.biop.ox.ac.uk (MX V4.2 AXP)
with
          SMTP; Fri, 28 Jan 2005 12:59:00 +0000
Received: from scan6.mail.ox.ac.uk ([163.1.2.179] helo=localhost) by
          tx6.mail.ox.ac.uk with esmtp (Exim 4.42) id 1CuViG-0000eK-KC
for
          syma_at_biop.ox.ac.uk; Fri, 28 Jan 2005 12:59:00 +0000
Received: from rx6.mail.ox.ac.uk ([163.1.2.170]) by localhost
          (scan6.mail.ox.ac.uk [163.1.2.179]) (amavisd-new, port 25)
with ESMTP
          id 02192-07 for <syma_at_biop.ox.ac.uk>; Fri, 28 Jan 2005
12:59:00 +0000
          (GMT)
Received: from halifax.ks.uiuc.edu ([130.126.120.36]) by
rx6.mail.ox.ac.uk with
          esmtp (Exim 4.42) id 1CuViF-0000eF-M5; Fri, 28 Jan 2005
12:59:00 +0000
Received: from halifax.ks.uiuc.edu (halifax.ks.uiuc.edu
[130.126.120.36]) by
          halifax.ks.uiuc.edu (8.12.10/8.12.10) with ESMTP id
j0SCcJ4Y029050
          (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256
verify=NOT)
          for <vmd-l-outgoing_at_halifax.ks.uiuc.edu>; Fri, 28 Jan 2005
06:38:19
          -0600 (CST)
Received: (from majordom_at_localhost) by halifax.ks.uiuc.edu
          (8.12.10/8.12.9/Submit) id j0SCcJih029049 for vmd-l-outgoing;
Fri, 28
          Jan 2005 06:38:19 -0600 (CST)
Received: from web40606.mail.yahoo.com (web40606.mail.yahoo.com
          [66.218.78.143]) by halifax.ks.uiuc.edu (8.12.10/8.12.10) with
SMTP
          id j0SCcI4X029043 for <vmd-l_at_ks.uiuc.edu>; Fri, 28 Jan 2005
06:38:18
          -0600 (CST)
Received: (qmail 60435 invoked by uid 60001); 28 Jan 2005 12:38:13 -0000
Received: from [193.140.61.102] by web40606.mail.yahoo.com via HTTP;
Fri, 28
          Jan 2005 04:38:12 PST