[chimerax-users] Labelling w.r.t Residue description
Elaine Meng
meng at cgl.ucsf.edu
Mon Aug 23 09:18:32 PDT 2021
Dear Arun,
The default residue label contents are already name and number, e.g. "TYR 17" ...so you could just use the following command, including giving the angstrom height that you want:
label sel height 2
If the labels for your structure never show the residue names, maybe there is something weird about the format of the input file that prevents the names from being read correctly. The examples in this message work fine on structures I get from the RCSB PDB.
You can specify height in angstroms as above, or if you don't want to keep setting it all the time, you can make the default height some value, e.g. command
label defaultheight 1.8
Alternatively to height in physical distance, if you want a fixed size of label in the screen regardless of how the contents are scaled, you would use the "height fixed" option and then use "size N" option to give number of pixels.
As for the label contents, there is no way to specify capitalizing only the first letter of the name, but you can use the "text" option in a fancier way if you don't want the space between name and number, e.g.
label sel text "{0.name:}{0.number:}" height 2
These options are all described, along with a few examples, in the page you get from using the command "help label":
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/label.html>
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
> On Aug 23, 2021, at 4:38 AM, Gupta, Arun via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
>
> Dear ChimeraX team,
>
> How can we label the PDB structure in ChimeraX based on the selection as well as "description or residue type". I tried the specific "residues selection" for a PDB structure first and then typed the following command "label @ca residues attr residuename". I could get the residue numbering for the selected residues. But, I failed to get the residue description for the specific selected residues such as "residue 59 should be labelled as His59". Also, I noticed the "size " of the residue numbers "label " is bit small. How can we increase the " font size" ? Please find attached pic.
>
> Thanks!!!
>
> Arun
>
> Arun Gupta PhD, MRSC
> Research Fellow
> Challis & Lewandowski Group
> Chemistry Department
> University of Warwick
> Gibbet Hill Road
> Coventry CV4 7AL
> United Kingdom
> <Residues_Description.png>_______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
More information about the ChimeraX-users
mailing list