[PyMOL] Creation of single nmr-like structure from separate pdb's

2012-07-20 Thread James Starlight
Dear PyMol users!


I have big pdb ensembles consisted of 20-100 X-ray structures of
different conformers of common protein solved by X-ray. I want to
obtain single pdb files for such ensembles in NMR-like format.

Firstly I can load all that pdbs into pymol by means of loadDir
script. Now I'd like to save my pdb file like a trajectory where order
of the frames is corresponded to the pdb's order loaded in Pymol (
represented in the right side). Is there any possibility to do it?


Thanks for help,


James

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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


Re: [PyMOL] Creation of single nmr-like structure from separate pdb's

2012-07-20 Thread Thomas Holder
Hi James,

are these structures identical in topology (same identifiers, no missing 
atoms)? If yes, just load them all into the same object:

python
import glob
for filename in glob.glob('*.pdb'):
 cmd.load(filename, 'ensemble')
python end

If there are missing atoms or identifier mismatches, you can use 
join_states from the psico module after having loaded the files with 
loadDir. See: http://pymolwiki.org/index.php/Psico

Example (only missing atoms):
PyMOL join_states ensemble, *, -1

Example (also different chain identifiers):
PyMOL join_states ensemble, *, -2

You will get the common subset of atoms from all input structures with 
the identifiers from the first state.

Cheers,
   Thomas

James Starlight wrote, On 07/20/12 10:02:
 Dear PyMol users!
 
 
 I have big pdb ensembles consisted of 20-100 X-ray structures of
 different conformers of common protein solved by X-ray. I want to
 obtain single pdb files for such ensembles in NMR-like format.
 
 Firstly I can load all that pdbs into pymol by means of loadDir
 script. Now I'd like to save my pdb file like a trajectory where order
 of the frames is corresponded to the pdb's order loaded in Pymol (
 represented in the right side). Is there any possibility to do it?
 
 Thanks for help,
 
 James

-- 
Thomas Holder
MPI for Developmental Biology
Spemannstr. 35
D-72076 Tübingen

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
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