VMD-L Mailing List
From: Cetin Baloglu (baloglu_at_gmail.com)
Date: Tue May 10 2005 - 09:47:59 CDT
- Next message: Nicolas Sapay: "how to delete atoms from the command line?"
- Previous message: Axel Kohlmeyer: "RE: Rama plot"
- Next in thread: John Stone: "Re: radius of gyration"
- Reply: John Stone: "Re: radius of gyration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi ,
I want to calculate radius of gyration of a xyz trajectory for each
frame, measure rgyr command seems to do it alone for the active frame .
when I change the frame one by one with animate next command, measure
rgyr [atomselect top "name CA"] command works , but when I try to give
these in a for loop
mol load xyz trajectory.xyz
set a {}
for { set i 0 } { $i <=100 } {incr i} {
animate next # or animate goto $i
lappend a [measure rgyr [atomselect top "name CA"]]
}
Here I want to see 100 different rgyr value but the list a contains 100
same value.
I am new in tcl and vmd scripting and I don't know the hints yet.
thanks,
Cetin Baloglu
- Next message: Nicolas Sapay: "how to delete atoms from the command line?"
- Previous message: Axel Kohlmeyer: "RE: Rama plot"
- Next in thread: John Stone: "Re: radius of gyration"
- Reply: John Stone: "Re: radius of gyration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]