[Chimera-users] Getting an extension handle

Eric Pettersen pett at cgl.ucsf.edu
Mon Feb 7 10:59:15 PST 2005


On Feb 7, 2005, at 10:50 AM, Charles Moad wrote:

> I think I found my answer by looking at some sources.  The following 
> works given my list of models, mdls:
>
> for mdl,mseq in map(lambda x,y: (x[0],y), mdls, mav.seqs):
>         mav.disassociate(mdl)
>         mav.associate(mdl.sequences()[0], seq=mseq, force=1)

I was preparing a more extensive answer, but you clearly don't need 
some of the basic stuff I was covering.  What I would point out is that 
if your code is launching the mav instance, you can give 
"autoAssociate=False" to the constructor so that you don't have to 
bother with the "disassociate" part of your loop above.

                         Eric Pettersen
                         UCSF Computer Graphics Lab
                         pett at cgl.ucsf.edu
                         http://www.cgl.ucsf.edu



More information about the Chimera-users mailing list