[Chimera-users] color a small molecule in a .mol2 file by red to blue gradient of the partial charges
meng at cgl.ucsf.edu
Wed Oct 30 10:03:54 PDT 2013
Yes, you can color by values of attributes such as charge with either the Render by Attribute tool (in menu under Tools... Depiction) or with the command "rangecolor". When you read in a mol2 file with charge values the "charge" attribute is automatically assigned.
There are several examples of using these in the tutorials. The attributes tutorial part 1 uses both:
The rangecolor example in that tutorial specifies particular values for red and blue, but as the man page says, you can also use the words "min" and "max" to mean the minimum and maximum charge values present in your molecule, e.g.:
rangecolor charge min red 0 white max blue
The GUI (Render by Attribute tool) has the advantage of showing you the range in a histogram and also displaying the names of the various attributes, although in this case it's just "charge". There are more examples of coloring by attribute in the attributes tutorial part 2 and the surface properties tutorial.
There are several ways to switch to white background, including any of the publication presets and command "background solid white":
The image tips page covers many image-related topics such as background color. You can just click the "Tips" button on the image-saving dialog to show it.
I hope this helps,
Elaine C. Meng, Ph.D.
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
On Oct 30, 2013, at 12:29 AM, Francois Berenger wrote:
> Is it possible to do this in Chimera?
> I'd like a white background too.
> Thanks a lot,
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
More information about the Chimera-users