VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Jul 04 2006 - 22:37:09 CDT
- Next message: Vivek Sharma: "debug"
- Previous message: Javad Azadi: "Trajectory Analysis"
- In reply to: Adrian Koh: "Renaming Molecule Names in existing .xyz trajectory files"
- Next in thread: Adrian Koh: "Re: Renaming Molecule Names in existing .xyz trajectory files"
- Reply: Adrian Koh: "Re: Renaming Molecule Names in existing .xyz trajectory files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Adrian,
Yes, if you rename any atom, it is immediately renamed for all frames,
since the atom names are only stored once-per-molecule, not once-per-frame
currently. e.g.:
set sel [atomselect top all]
set oldnames [lsort -unique [$sel get name]]
set casel [atomselect top "name CA"]
$casel set name foo
set newnames [lsort -unique [$sel get name]]
puts "oldnames: $oldnames"
puts "newnames: $newnames"
John
On Tue, Jul 04, 2006 at 02:44:28PM +0800, Adrian Koh wrote:
> Hi,
>
> I have with me, an .xyz trajectory file containing two atom names "Pt"
> and "Frz", containing 250 frames. Would it be possible to rename a
> selected region of the molecule (for instance, sqrt(sqr(x)+sqr(y))>10)
> to another name say "Cu", at frame 1, which would then apply to all
> other frames?
>
> Thanks :).
>
>
> Best Regards,
> Adrian.
>
>
> --
> ----------------------------------------------------------------------
> This email is confidential and may be privileged. If you are not the
> intended recipient, please delete it and notify us immediately. Please do
> not copy or use it for any purpose, or disclose its contents to any other
> person. Thank you.
> ----------------------------------------------------------------------
>
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: Vivek Sharma: "debug"
- Previous message: Javad Azadi: "Trajectory Analysis"
- In reply to: Adrian Koh: "Renaming Molecule Names in existing .xyz trajectory files"
- Next in thread: Adrian Koh: "Re: Renaming Molecule Names in existing .xyz trajectory files"
- Reply: Adrian Koh: "Re: Renaming Molecule Names in existing .xyz trajectory files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]