[Chimera-users] FW: Association info
Eric Pettersen
pett at cgl.ucsf.edu
Wed May 8 10:11:25 PDT 2019
Yep. Sorry it’s so arcane!
—Eric
> On May 8, 2019, at 8:48 AM, Hernando J Sosa <hernando.sosa at einstein.yu.edu> wrote:
>
>
> Thanks Eric, it works. To summarize:
>
> #----------------------------------------------------------------------
> def findMAV():
> from chimera.extension import manager
> from MultAlignViewer.MAViewer import MAViewer
> mavs = [inst for inst in manager.instances if isinstance(inst, MAViewer)]
> if not mavs:
> raise AssertionError("No MAV instances")
> return mavs[-1]
> #----------------------------------------------------------------------
> mav = findMAV()
> mav.saveAssocInfo('myfile.asc')
> #----------------------------------------------------------------------
>
> Best
>
> Hernando
>
>
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20190508/e050c9d2/attachment.html>
More information about the Chimera-users
mailing list