[Chimera-users] Coloring snapshots using time as attribute

Elaine Meng meng at cgl.ucsf.edu
Mon Nov 3 13:17:49 PST 2008


Hi Ibrahim,
Assigning/creating the attribute could probably be done in Python, but  
the way I would do it is to make an attribute assignment file in which  
the left column is the model number and the right is the time value.   
Reading in the file with the Define Attribute tool (or defattr  
command) creates the attribute with whatever name you give it, which  
will then appear in Render by Attribute for your coloring convenience.

Attribute assignment files are simple text files, format described here:
<http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html#attrfile 
 >

Example files are linked here:
<http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html#examples 
 >

Define Attribute:
<http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html 
 >

Render by Attribute:
<http://www.cgl.ucsf.edu/chimera/docs/ContributedSoftware/render/render.html#render 
 >

Another way to color by attribute value is with the command rangecolor:
<http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/rangecolor.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                          meng at cgl.ucsf.edu
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
                      http://www.cgl.ucsf.edu/home/meng/index.html

On Nov 3, 2008, at 12:49 PM, Ibrahim Moustafa wrote:

> Dear Chimera team,
>   I have several snapshots from simulation loaded as different  
> models. I wonder if there is a way to color them coded according to  
> time as an attribute, e.g. Red-white-blue for t0 -> t.
>   Thanks in advance,
>   Ibrahim



More information about the Chimera-users mailing list