[chimerax-users] Labelling w.r.t Secondary structure elements
Elaine Meng
meng at cgl.ucsf.edu
Wed Nov 3 13:55:13 PDT 2021
Hi Arun,
Not completely sure this is what you're asking, but I'm guessing something like how "label" shows residue labels, but instead showing a label like alpha1 or beta1 for each secondary structure element (SSE)? There is nothing like that, sorry.
Personally I would use 2D Labels before Powerpoint, but you undoubtedly have more Powerpoint skills than I do. You can enter the text, colors, arrows, etc. in 2dlabels commands, and then drag them to the desired locations with the "move label" mouse mode.
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/2dlabels.html>
The closest "automatic" thing I can think of is the following, but it doesn't look good enough for a figure, partly because every residue has a label. I can't think of a simple way to only add one label per SSE. Example:
open 2gbp
label (helix | strand) attribute ss_id height 1.2
... that just gives an integer 1 for residues in first strand and first helix, 2 for second strand and second helix, and it doesn't say whether it's a strand or helix (0 for all coil). You could also label by secondary structure type, but that attribute is also an integer, not the words or greek letters alpha and beta (ss_type 1 for helix, 2 for strand).
label delete
label (helix | strand) text "{0.ss_type}:{0.ss_id}" height 1
see "label" options
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/label.html#options>
and attribute names
<https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html>
Again, I'd use 2dlabels, but to assist with identifying which SSE is which, I might use the first label command example above (and delete those labels when I was done), or just rainbow the chain and go progressively from blue to red.
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
> On Nov 3, 2021, at 1:10 PM, Gupta, Arun via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>
> Hello,
> I was wondering is there a quick fix way around by which we can define in an automated fashion the numbering and further labelling of secondary structural elements labels, alongside the structure, based on “dssp” described symbol notation "for example starting from α1/β1-α10/β14 " for any protein instead of manually labelling later in Power point.
> Thanks a lot!
> Arun
More information about the ChimeraX-users
mailing list