[Chimera-users] Ribbon scaling in a script
Esser, Lothar (NIH/NCI) [E]
esserlo at mail.nih.gov
Wed Sep 1 09:54:06 PDT 2021
Hi,
thanks for the fast reply. This surprised me that you cannot just set it. However, I had already created a file with preferred dimensions that I read with ribscale. This works ok.
In the meantime I came across two more things I have a hard time figuring out:
Probably quite simple but somehow escaped me so far:
1. Stick models show split bonds i.e. half of a X-Y bond gets color of X and the other half gets that of Y. However, in some ligand representations, I scale down the carbon atoms for better visibility. This seemed also to change the amount the bond gets carbon color. If one atom is half the size of the other bonded atom, its share of bond that is colored is much (1.5x) larger. I would prefer 1:1 ratio in bond color no matter the size of the atom. How can this be done?
2. I could not figure out the parameter that controlls the aromatic circle in say a benzene fragment. The default width seems to be 1 pixel and this is really thin.
Thanks,
Lothar
________________________________
From: Elaine Meng <meng at cgl.ucsf.edu>
Sent: Wednesday, September 1, 2021 12:43 PM
To: Esser, Lothar (NIH/NCI) [E] <esserlo at mail.nih.gov>
Cc: chimera-users at cgl.ucsf.edu <chimera-users at cgl.ucsf.edu>
Subject: Re: [Chimera-users] Ribbon scaling in a script
Hi Lothar,
In Chimera, you would have to use Ribbon Style Editor to create and name the "scaling" (the set of secondary-structure-associated widths etc.). That name would be saved in your preferences. Then later you can use the "ribscale" command with that name in your scripts. Sorry, there is no way to just adjust it directly in a command without having to make the scaling ahead of time. Similarly you need to use the editor dialog to create and name custom styles (cross-sections), which can later be accessed with the "ribstyle" command.
<https://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/ribbonstyle/ribbonstyle.html>
However, in ChimeraX it is done differently; you can specify widths etc. directly in the "cartoon style" command.
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/cartoon.html#style>
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
> On Sep 1, 2021, at 8:36 AM, Esser, Lothar (NIH/NCI) [E] via Chimera-users <chimera-users at cgl.ucsf.edu> wrote:
>
> Hi,
> despite a good amount of search in the documentation, I was unable to find a way to set the dimensions of a ribbon coil, helix width etc. with a commandline statement. I can do it in Ribbons Style Editor but I need to be able to do it from a script. I am sure it is terribly obvious but I just think it may be easier if I get a hint at this point.
> Thanks,
>
> Lothar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20210901/920aa176/attachment.html>
More information about the Chimera-users
mailing list