Dear ChimeraX Team,
I am currently working on visualizing peptide/Protein complexes and I’m having some trouble maintaining specific residue labels while clearing others.
My Goal: I want to label:
-
Protein (Chain A) residues that are within 5.0Å of the Peptide (Chain C) residue 1.
-
The Peptide (Chain C) P1 residue itself.
-
I want to ensure residues P2–P9 remain unlabeled.
Below is the script I am currently using:
set bg white
graphics silhouettes t
lighting depthCue f
size #1 ballScale 0.20 stickRadius 0.2
select /A & (/C:1 :<5.0)
show sel
style sel ball
color byhet
view sel
label sel text "{0.label_one_letter_code}{0.number}"
label @@display residues bgColor white
label height 1.0
sel #1/C: 2-9
label delete
The issue I am encountering is that when I execute:
sel #1/C: 2-9
label delete
it deletes not only the labels for peptide residues P2–P9, but also the labels for the protein interface residues that were previously defined and labeled.
Question:
-
Should I be using a more specific selector in the
label command itself to avoid using
select and
label delete sequentially?
Any advice on the cleanest syntax to achieve this would be greatly appreciated!
Best regards,
Arun
Arun Gupta PhD, MRSC
Sr. Post Doctoral Research Assistant
Gillespie/McMichael Group
Nuffield Dept. of Clinical Medicine,
University of Oxford,
Centre for Immuno-Oncology
Old Road Campus Research Building,
Roosevelt Drive, Oxford
OX3 7DQ
Tel: + 44 (0)1865 2612913