Hi, I want to do select zone and hbonds commands for about 10 objects. Is there a way to do each with a single command, similar to using mm to align multiple objects to the same target? are there do loops or foreachobject commands? hbonds #1/V restrict #1/A-B color black hbonds #2/V restrict #2/A-B color black select zone #1/V 3.6 #1/A,B residues true; name frozen inter_vcam_a4b1a sel show sel atoms select zone #1/A,B 3.6 #1/V residues true; name frozen inter_vcam_a4b1b sel show sel atoms for zones, can one get contacts on both sides in a single command? - Tim *Timothy A. Springer, Ph.D.* Latham Family Professor, Harvard Medical School and Boston Children's Hospital Founder, Institute for Protein Innovation
Hi Tim, See answers interleaved below:
On Feb 1, 2026, at 11:07 AM, Timothy Springer via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi, I want to do select zone and hbonds commands for about 10 objects. Is there a way to do each with a single command, similar to using mm to align multiple objects to the same target?
are there do loops or foreachobject commands?
No. I can't think of how to do it with just commands -- you may need Python, but others would have to advise on that.
hbonds #1/V restrict #1/A-B color black hbonds #2/V restrict #2/A-B color black
select zone #1/V 3.6 #1/A,B residues true; name frozen inter_vcam_a4b1a sel show sel atoms select zone #1/A,B 3.6 #1/V residues true; name frozen inter_vcam_a4b1b sel show sel atoms
for zones, can one get contacts on both sides in a single command?
Yes, if you just use "contacts" instead of "select zone." Example: contacts #1/A,B restrict #1/V distanceOnly 3.6 reveal true select true; sel up ... where the latter promotes the selection from the contacting atoms to their whole residues. See clashes/contacts help: <https://rbvi.ucsf.edu/chimerax/docs/user/commands/clashes.html> I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Resource for Biocomputing, Visualization, and Informatics Department of Pharmaceutical Chemistry University of California, San Francisco
participants (2)
-
Elaine Meng -
Timothy Springer