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:magic...@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(tm) Messenger. Check
it out <http://go.microsoft.com/?linkid=9656621> 

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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