Sean,

 

Yes, that is an alternate route.  cmd.get_model is likely slower than cmd.iterate_state, but should work regardless.

 

Cheers

Warren

 


From: Sean Law [mailto:magicmen@hotmail.com]
Sent: Monday, September 28, 2009 11:58 AM
To: pymol-users@lists.sourceforge.net
Subject: Re: [PyMOL] Iterate Script Over States

 

I think I figured it out (though, it wasn't documented).  What I needed was to use:

cmd.get_model(selection, STATE)

I think that's the correct usage?  What I needed was to loop through a selection and then to calculate the sugar pucker information.  However, not all atoms from the selection are required for the calculation so some pre-parsing of the residue is needed.  It appears that I can specify the state to obtain atom objects from via the get_model command.  I hope that is right?

Sean


Create a cool, new character for your Windows Live™ Messenger. Check it out