VMD-L Mailing List
From: Paweł Kędzierski (pawel.kedzierski_at_pwr.wroc.pl)
Date: Tue Mar 22 2011 - 04:11:53 CDT
- Next message: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Previous message: Yingzhe Liu: "How to maximize the VMD display window"
- In reply to: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Next in thread: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Reply: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
On 21.03.2011 16:37, ban arn wrote:
> Dear VMD users
>
> Thanks for reply.
>
> But would like to do the same (projection of c-aplha atom coordinates
> on xy plane) for trajectories.
A quick & dirty way would be:
set sel [atomselect top "protein and name CA"]
set frames [molinfo top get numframes]
for {set i 0} {$i< $frames} {incr i} {
$sel frame $i
$sel set z 0
}
animate write dcd CA_z_proj.dcd sel $sel
animate write xyz CA_z_proj.xyz sel $sel
You may get the projection coordinates in any format supported by
"animate write". XYZ is the simplest text format at hand.
However you will be left with modified structure in VMD.
HTH,
Pawel
- Next message: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Previous message: Yingzhe Liu: "How to maximize the VMD display window"
- In reply to: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Next in thread: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Reply: ban arn: "Re: script for projection of c-alpha atom cordinates on xy plane"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]