VMD-L Mailing List
From: Philip Fowler (philip.fowler_at_ucl.ac.uk)
Date: Mon Mar 22 2004 - 02:42:02 CST
- Next message: John Stone: "Re: VMD1.82 version with MacOS10.3.3 DO NOT WORK"
- Previous message: Paul Fons: "Re: VMD1.82 version with MacOS10.3.3 DO NOT WORK"
- In reply to: Adam Marcus: "Copying a selection"
- Next in thread: Axel Kohlmeyer: "Re: Copying a selection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
> I am relatively new to VMD and I am already a big fan of its powerful and
> vast tools. Currently, I am writing a tcl script to align the frames of an
> animation using rmsd. As an intermediate step, I need to take a frame of
> an animation and make a copy of it so that I can proceed with my work on
> that copy without affecting what happens to the original frame that it is
> derived from. Is there a way to copy a selection of all of the atoms of a
> frame, or just the frame itself to a new location? For reference, this is
> the way I select the frame (using tcl):
>
> set sel [atomselect $mol $seltext frame $j]
Hi Adam,
Probably the easiest thing is to use your selection to write a PDB file which
you may then load back into VMD. If you have a PSF topology file for your DCD
trajectory file, then it will work also for this PDB, if you are not using
one, don't worry. The syntax is
> set sel [atomselect $mol $seltext frame $j]
> $sel writepdb myfilename.pdb
--Phil
-- Philip Fowler, PhD Student Centre for Computational Science, UCL Chemistry
- Next message: John Stone: "Re: VMD1.82 version with MacOS10.3.3 DO NOT WORK"
- Previous message: Paul Fons: "Re: VMD1.82 version with MacOS10.3.3 DO NOT WORK"
- In reply to: Adam Marcus: "Copying a selection"
- Next in thread: Axel Kohlmeyer: "Re: Copying a selection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]