[Chimera-users] cage builder
Tom Goddard
goddard at sonic.net
Thu Sep 5 10:55:41 PDT 2019
Hi Artur,
You can modify one line of the Cage Builder python code in your copy of Chimera to create buttons to make polygons with more sides. The file to modify is
chimera/share/CageBuilder/gui.py
or on Mac
Chimera.app/Contents/Resources/share/CageBuilder/gui.py
and the line to modify is
apb = [('%d' % n , lambda n=n: self.attach_polygons(n)) for n in range(3,8)]
which you could change replacing 8 by 16 to get
apb = [('%d' % n , lambda n=n: self.attach_polygons(n)) for n in range(3,16)]
which would create buttons in the Cage Builder panel for polygons with 3 through 15 sides. After you edit the file with a text editor (keep the indentation of the line the same as this is important in Python), then restart Chimera and it will have the new buttons.
Tom
> On Sep 5, 2019, at 1:10 AM, Artur Biela <artur.biela at uj.edu.pl> wrote:
>
> Hi all,
>
> I would like to build a cage model using cage builder, but the problem is that I need to use different polygons than available in the pop-up window of cage builder.
> My question is: is there any option to use for example octagons, decagons or even more-gons?
>
> Thank in advance
> Artur
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Artur BIELA, PhD
> Scientific Assistant
> Bionanoscience and Biochemistry Laboratory
> Malopolska Centre of Biotechnology
> Jagiellonian University
> 7A, Gronostajowa Street
> 30-387 Krakow
> Poland
>
> Department of Cell Biology and Imaging
> Institute of Zoology and Biomedical Research
> Jagiellonian University
> Gronostajowa 9
> 30-387 Krakow
>
> artur.biela at uj.edu.pl <mailto:artur.biela at uj.edu.pl>
> http://www.mcb.uj.edu.pl/en_GB/heddle-laboratory <http://www.mcb.uj.edu.pl/en_GB/heddle-laboratory>
> publons <https://publons.com/mashlets?el=badgeCont570&rid=M-3954-2019>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> _______________________________________________
> 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/20190905/708db087/attachment.html>
More information about the Chimera-users
mailing list