Andrea,

I use MD quite a lot myself and we have some "in-house" tools that perform this 
function (converting a set of PDB files into a trajectory).  However, I took it 
upon myself as a challenge to see if I could implement this into PyMOL as a 
Python script.  Thus, last night I worked feverishly and created a script (now 
posted on the PyMOL-Wiki) called "save2traj".

Do the following:

1) Save the script from the PyMOL-Wiki page
2) Load a PDB structure (let's assume that this pdb file is called "struct.pdb")
3) Load other states into this same PDB object (let's assume this object is 
called "struct")
4) Then, to save the states as a trajectory, use the following command:

run save2traj
save2traj struct, trajectory

The syntax for the command is

save2traj selection, name

The "name" denotes the output file and will automatically have ".dcd" appended 
to it.  In the future, there will be additional support for other file formats 
but that may be in the distant future.  As well, please be aware that due to 
PyMOL's RESID renumbering that the trajectory being produced will be numbered 
differently than your original PDB.  There are two ways around this, 

1) Save a corresponding PDB file for that trajectory that is renumbered by PyMOL

or

2) Retain the RESID (see PyMOL-Wiki)

Since this was done on a whim, please use at your own risk until it is further 
developed.  Hope this helps!

Sean Law
Michigan State University
                                          
_________________________________________________________________
Lots of fantastic Windows 7 offers, in one convenient place. Get the perfect 
deal for you now.
http://go.microsoft.com/?linkid=9691633
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to