Dear Elaine,

Thank you very much for your quick and thorough response, which made perfect sense. You are right, it is indeed more accurate to use sharp edges. I guess that, for the intended purpose, which is to localize the active site of an enzyme, a bit of blurring wouldn't hurt, as I am not so worried about showing individual amino acid conservation rather than obtaining a nice, strongly colored patch. But in a way, I guess that is kind of cheating. I'll stick to sharp edges!

Thank you very much

Pedro

Elaine Meng <meng@cgl.ucsf.edu> escreveu (quarta, 14/02/2024 à(s) 17:11):
Hi Pedro,
Coloring by conservation is a different situation than coloring by electrostatic potential.  The electrostatic potential is varying continuously in space (hence the gradual change in color), whereas the conservation is a single value per residue.  Thus, there is a single color for the surface patch that comes from the same residue.  So what you see is the true representation of the results.

In Chimera, it looked blended only as an artifact, because the surface triangulation did not try to make sharp boundaries per atomic patch; the jagged triangles from adjacent atoms were next to each other and made the color look blended.  

In ChimeraX, although you can turn off the sharp boundaries, doing that loses the linkage between the surface patch and the atom so you cannot directly color the surface by the property of the atoms (e.g. bfactor) or residues (e.g. conservation).

If you *really* want to try using the ChimeraX surfaces with sharp boundaries turned off, then you have to do a multistep process of coloring the atoms and then using color zone to color the surface to match the nearby atoms.  Even if you do that, you can see the jagged edges instead of smooth color blending because the conservation is a single value per residue (not continuously varying in space like electrostatic potential).

Here is an example with coloring by bfactor, but it would be analogous to do it for conservation.

open 2gbp
surface sharpBoundaries false
color byattr bfactor target a
color zone #1.2 near #1 dist 4

It is very ugly in my opinion, does not look like smooth blending.

Maybe you could try to get a finer triangulation with other "surface" command options, but in my opinion it would probably be a waste of time.  You can see the difference with sharp boundaries true vs. false:

surface sharp true


Again, the sharper boundaries are a more true representation of the values that you are trying to show.

I hope this makes sense,
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 Feb 14, 2024, at 4:17 AM, Pedro Bule via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Hello,

I am trying to color the surface of my model according to sequence conservation. I opened the MSA, associated the proper sequence with the chain I wish to color, and then used the command "color byattr seq_conservation". But this results in the colors not blending at the surface, which is not very pleasant looking. Is there a way to make the transitions between adjacent colors smoother, similar to when we color the surface, for e.g., by electrostatic potential? In legacy chimera I used to follow the "Structure... Render by Conservation" in the Multalign Viewer and then choose the attribute mavConservation, which used to do the trick

Thanks in advance!

Pedro Bule