Hi Reza,
If you use "color byattribute" to color ribbons by an atom attribute, it will calculate residue averages "under the hood" and use those for the color-value mapping of each residue's ribbon segment. You can also use that command's "average residues" option
to color atoms and their molecular surface patches based on the averages over their residues.
<
https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute>
However, ChimeraX does not have an "attribute calculator" user interface. As far as I know, obtaining some kind of output of those residue-average values would require python scripting. Somebody else would have to advise on that (beyond my skill set, sorry).
Best,
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 Oct 28, 2025, at 6:19 PM, Reza Khayat via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
>
> Hi,
>
> How do I average atom attributes to residue attributes? Let's assume the attributes name is mapvalues. Thanks.
>
> Best wishes,
> Reza
>
> Reza Khayat, PhD
> City College of New York
> Department of Chemistry and Biochemistry
_______________________________________________
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/
VARNING: Klicka inte på länkar och öppna inte bilagor om du inte känner igen avsändaren och vet att innehållet är säkert.
CAUTION: Do not click on links or open attachments unless you recognise the sender and know the content is safe.