VMD-L Mailing List
From: Ana Celia Vila Verde (acavilaverde_at_gmail.com)
Date: Fri Sep 19 2014 - 06:31:36 CDT
- Next message: Bennion, Brian: "using vmd to apply symmetry operators part 2"
- Previous message: Ana Celia Vila Verde: "Re: measure hbonds in VMD tcl script"
- In reply to: Vasumathi Velachi: "measure hbonds in VMD tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Dear Vasumathi,
To get the total number you can do
set hbondList [measure hbonds 30 $sel1 $sel2]
and then
set hbondNumber [llength [lindex $hbondList 0]
I encourage you to read the documentation on the measure command and do
a few more tcl tutorials; it will make you more proficient using VMD.
Best,
Ana
On 19/09/14 11:34, Vasumathi Velachi wrote:
> Dear All
> I would like to calculate hydrogen bond between water molecule in
> particular region, if it is not particular region i can use Hbonds
> plugin. So I tried by using measure hbonds 3.5 30 $sel1 $sel2 command
> in tcl script, but it gives indices list not total number of hbonds.
> Is there anyway to get total number or did I missed something?
>
> Thanking you in advance
>
- Next message: Bennion, Brian: "using vmd to apply symmetry operators part 2"
- Previous message: Ana Celia Vila Verde: "Re: measure hbonds in VMD tcl script"
- In reply to: Vasumathi Velachi: "measure hbonds in VMD tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]