From: John Stone (
Date: Fri Aug 12 2011 - 09:39:51 CDT

Do this:
  mol new myfile.psf waitfor all
  mol addfile myfile.pdb waitfor all
  set sel [atomselect top all]
  $sel writepdb newfile.pdb

  John Stone

On Fri, Aug 12, 2011 at 12:29:38PM +0300, wrote:
> Hi,
> I would like to write a script for VMD, but I can't. I would like to:
> load a psf file and
> load data into molecule
> load a pdb file and
> save the coordinates in a new file.
> I used the command mol load psf myfile.psf pdb myfile.pdb
> writepdb myfile.pdb
> but the final file didn't have proper coordinates.
> If anyone can help me, I would appreciate it.
> Thank you in advance.

NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801           Phone: 217-244-3349       Fax: 217-244-6078