VMD-L Mailing List
From: Nitin Bhardwaj (nbhardwaj_at_gmail.com)
Date: Tue Dec 19 2006 - 11:08:42 CST
- Next message: Margaret S. Cheung: "VMD 1.8.5 installed. The graphics flashed and disappeared after installation."
- Previous message: Nitin Bhardwaj: "average z-coordinate of a selection"
- In reply to: Nitin Bhardwaj: "average z-coordinate of a selection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Nevermind, I figured it out.
thanks.
Nitin
On 19/12/06, Nitin Bhardwaj <nbhardwaj_at_gmail.com> wrote:
>
> Dear VMD users,
> I want to calculate the average z-coordinate of a selection (say a
> protein). I can extract the center of the protein, but how do I further
> extract just the z-coordinate from the center? Here is my script.
>
>
> set mol [molinfo top]
> set protein [atomselect $mol protein]
> for {set i 0} {$i < 1} {incr i} {
> $protein frame $i
> set center [measure center $protein]
> puts $center
> }
>
> I am a novice in writing Tcl scripts. I am sure its a trivial job. I think
> I am missing just one expression to extract the z-coordinate of the center.
>
> thanks a lot in advance,
> Rgds,
> Nitin
>
>
-- $B&-(BI+I$B'*(B
- Next message: Margaret S. Cheung: "VMD 1.8.5 installed. The graphics flashed and disappeared after installation."
- Previous message: Nitin Bhardwaj: "average z-coordinate of a selection"
- In reply to: Nitin Bhardwaj: "average z-coordinate of a selection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]