right mouse zone selection labels

HI ChimeraX team, I really like the feature in ChimeraX that creates a map clipping zone in the right mouse tools - zone with automatic labelling. However, the default labels are black background and yellow text, and only the residue 3 letter code and number. Is it possible to change these labels to a white bg and customise the labels to include e.g. the one letter code and chain ID? I tried to do this with the selection - labels tool but it did not seem to change it for the zone labels. Many thanks and keep up the great work :) Sarah

Hi Sarah, Currently there is no setting to adjust the zone mouse mode label colors and text. You could edit the ChimeraX Python code to change the label colors, that is in ChimeraX.app/Contents/lib/python3.7/site-packages/chimerax/zone/zone.py You would change lines self._label_color = BuiltinColors['yellow'] self._label_background = BuiltinColors['black'] to the colors you want ('black' and 'white'). There is also no setting for the label text to show chain ID, one letter residue code, and residue number, it only shows 3-letter residue code and residue number. Even the ChimeraX label command has no setting to adjust this yet. Our older program Chimera has a labelopt command that allowed setting the text in the label https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/labelopt.html <https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/labelopt.html> and we should add something similar in ChimeraX. I've made an enhancement request to allow setting the default colors and text. https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3813 You are right that the preference setting Labels / Balloon-help Specifier Style will not effect what the Zone mouse mode labels show. Tom
On Oct 8, 2020, at 9:00 PM, Sarah Piper <sarahjpiper89@gmail.com> wrote:
HI ChimeraX team, I really like the feature in ChimeraX that creates a map clipping zone in the right mouse tools - zone with automatic labelling. However, the default labels are black background and yellow text, and only the residue 3 letter code and number. Is it possible to change these labels to a white bg and customise the labels to include e.g. the one letter code and chain ID? I tried to do this with the selection - labels tool but it did not seem to change it for the zone labels.
Many thanks and keep up the great work :)
Sarah
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

Hi Sarah, I added a "zone setting" command to set the label color and label background color for the zone mouse mode. zone setting labelColor black labelBackgroundColor white zone setting labelCol default labelBack none zone setting labelC orange labelB blue save False The "save" option says whether to save these preferences for future ChimeraX sessions, default True. Setting the text that appears in the label is more work and I have not added support for that yet. Tom
On Oct 9, 2020, at 10:38 AM, Tom Goddard <goddard@sonic.net> wrote:
Hi Sarah,
Currently there is no setting to adjust the zone mouse mode label colors and text. You could edit the ChimeraX Python code to change the label colors, that is in
ChimeraX.app/Contents/lib/python3.7/site-packages/chimerax/zone/zone.py
You would change lines
self._label_color = BuiltinColors['yellow'] self._label_background = BuiltinColors['black']
to the colors you want ('black' and 'white'). There is also no setting for the label text to show chain ID, one letter residue code, and residue number, it only shows 3-letter residue code and residue number. Even the ChimeraX label command has no setting to adjust this yet. Our older program Chimera has a labelopt command that allowed setting the text in the label
https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/labelopt.html <https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/labelopt.html>
and we should add something similar in ChimeraX. I've made an enhancement request to allow setting the default colors and text.
https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3813 <https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3813>
You are right that the preference setting Labels / Balloon-help Specifier Style will not effect what the Zone mouse mode labels show.
Tom
On Oct 8, 2020, at 9:00 PM, Sarah Piper <sarahjpiper89@gmail.com <mailto:sarahjpiper89@gmail.com>> wrote:
HI ChimeraX team, I really like the feature in ChimeraX that creates a map clipping zone in the right mouse tools - zone with automatic labelling. However, the default labels are black background and yellow text, and only the residue 3 letter code and number. Is it possible to change these labels to a white bg and customise the labels to include e.g. the one letter code and chain ID? I tried to do this with the selection - labels tool but it did not seem to change it for the zone labels.
Many thanks and keep up the great work :)
Sarah
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu <mailto:ChimeraX-users@cgl.ucsf.edu> Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (2)
-
Sarah Piper
-
Tom Goddard