Depicting residues as spheres and adjusting sphere dimeter
Help will be much appreciated. I’m trying to depict residues as spheres of reduced dimeter. My commands are: select <help:user/commands/select.html> :9,11,33,38,49,50,51,52,53,64,65,66,101,105 117 atoms, 114 bonds, 14 residues, 1 model selected show <help:user/commands/show.html> sel style <help:user/commands/style.html> sel ball Changed 117 atom styles style <help:user/commands/style.html> sel sphere Changed 117 atom styles size <help:user/commands/size.html> sel ballScale 0.2 Changed 1 ball scales Likewise with: setattr <help:user/commands/setattr.html> m ballScale 0.3 create true Assigning ballScale attribute to 1 item Obviously the above commands are wrong as they fail to generate the desired effect Have a good day George
Hi George, You changed to sphere style. Ballscale is only going to affect ball style, not sphere style. For sphere style you would have to change the VDW radius (which can also be done with the "size" command, not the ball scale. But be aware that the VDW radius affects other calculations like molecular surface, contacts, and clashes, so maybe you don't want to change it. instead just stay in style "ball" (not "sphere") and use ball scale. You do not need to use setattr. style sel ball size sel ballScale 0.6 size sel ballScale 0.4 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
On Jan 27, 2026, at 12:49 AM, George Tzotzos via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Help will be much appreciated. I’m trying to depict residues as spheres of reduced dimeter. My commands are: select :9,11,33,38,49,50,51,52,53,64,65,66,101,105 117 atoms, 114 bonds, 14 residues, 1 model selected show sel style sel ball Changed 117 atom styles style sel sphere Changed 117 atom styles size sel ballScale 0.2 Changed 1 ball scales
Likewise with: setattr m ballScale 0.3 create true Assigning ballScale attribute to 1 item
Obviously the above commands are wrong as they fail to generate the desired effect
Have a good day
George
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
Thank you Elaine. I’m grateful George
On 27 Jan 2026, at 16:58, Elaine Meng via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi George, You changed to sphere style. Ballscale is only going to affect ball style, not sphere style.
For sphere style you would have to change the VDW radius (which can also be done with the "size" command, not the ball scale. But be aware that the VDW radius affects other calculations like molecular surface, contacts, and clashes, so maybe you don't want to change it.
instead just stay in style "ball" (not "sphere") and use ball scale. You do not need to use setattr.
style sel ball size sel ballScale 0.6 size sel ballScale 0.4
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
On Jan 27, 2026, at 12:49 AM, George Tzotzos via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Help will be much appreciated. I’m trying to depict residues as spheres of reduced dimeter. My commands are: select :9,11,33,38,49,50,51,52,53,64,65,66,101,105 117 atoms, 114 bonds, 14 residues, 1 model selected show sel style sel ball Changed 117 atom styles style sel sphere Changed 117 atom styles size sel ballScale 0.2 Changed 1 ball scales
Likewise with: setattr m ballScale 0.3 create true Assigning ballScale attribute to 1 item
Obviously the above commands are wrong as they fail to generate the desired effect
Have a good day
George
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
participants (2)
-
Elaine Meng -
George Tzotzos