[chimerax-users] Color by Conservation in ChimeraX

Elaine Meng meng at cgl.ucsf.edu
Tue Feb 11 08:54:51 PST 2020


Hi Sean,
You may know how to do it in Chimera already, but just in case, these Chimera tutorials include coloring by conservation:

Basic intro to coloring by conservation
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/tutorials/super.html>
More details and different situations
<http://www.rbvi.ucsf.edu/chimera/data/tutorials/systems/outline.html>

You can save an attribute file in Chimera by choosing File... Save Attributes from the menu of Render/Select by Attribute.
<http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html#attrfile>

To make a ChimeraX command file (.cxc) from the attribute values in that file, you would need to write “setattr” commands that assign each value to its respective residue.

<http://rbvi.ucsf.edu/chimerax/docs/user/commands/setattr.html>
<http://rbvi.ucsf.edu/chimerax/docs/user/commands/usageconventions.html#cxc-files>

This example .cxc file includes several “setattr” commands to assign a hydrophobicity attribute to residues by their names (e.g. :ala):  
<http://rbvi.ucsf.edu/chimerax/docs/user/kyte-doolittle_hydrophobicity.cxc>

Yours would be similar except you would use residue numbers and maybe also chain IDs (e.g. :128 or /A:128).
<http://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#hierarchy>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco




> On Feb 11, 2020, at 6:18 AM, Sean Moore <Sean.Moore at ucf.edu> wrote:
> 
> Thanks Eric.  I will install and try Chimera, if that doesn’t work out, I can manually edit an attributes file.
> 
> Best,
> 
> Sean
> 
> 
>> On Feb 10, 2020, at 5:28 PM, Eric Pettersen <pett at cgl.ucsf.edu> wrote:
>> 
>> Hi Sean,
>> Unfortunately, conservation coloring is still not yet available in ChimeraX, so the easiest way to color your structure is in Chimera, yes.  If you really need to use ChimeraX for it (image generation?), there are a couple of less-easy routes available.  For one, you could use Render By Attribute’s File→Save Attribute… menu entry to generate a file giving the conservation value for each residue.  You could then use a text editor to massage that into a series of ChimeraX “setattr” commands that you could run to get the attribute into ChimeraX.  Then you could use the “color byattribute” command to do the coloring.
>> The other route is that there is a Chimera→ChimeraX scene exporter that I have been working on but isn’t finished.  But it is pretty close to finished for molecular data only (no volumes, molecular surfaces, 2D labels, etc.).  I could put the exporter into the daily build despite it not being really completely ready for anything, since in this case it might be good enough.  I’ve attached an image of a structure with a chain colored by conservation in Chimera, and the same system as exported into ChimeraX.
>> 
>> —Eric
>> 
>> 
>> Eric Pettersen
>> UCSF Computer Graphics Lab
>> 
>> <c1.png><cx.png>
>> 
>>> On Feb 10, 2020, at 11:13 AM, Sean Moore <Sean.Moore at ucf.edu> wrote:
>>> 
>>> Hello,
>>> 
>>> I read an older post that color by conservation is pending for ChimerX.  Is it available now?  When I open a sequence alignment that I generated elsewhere, it shows the alignment and conservation, it identified the correct protein chain, but there is no menu in that window to assign the colors to the protein. (no option to "Again from the Multalign Viewer menu, choose: Structure... Render by Conservation. This will call Render by Attribute, in which…”)
>>> 
>>> Should I use Chimera for this instead of ChimeraX?
>>> 
>>> Sean
>>> 
>>> 
>>> _______________________________________________
>>> ChimeraX-users mailing list
>>> ChimeraX-users at cgl.ucsf.edu
>>> Manage subscription:
>>> http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>>> 
>> 
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users




More information about the ChimeraX-users mailing list