[chimerax-users] How to change the palette of hydrophobicity in ChimeraX

Elaine Meng meng at cgl.ucsf.edu
Tue May 18 08:12:11 PDT 2021


Hi Han,
Although the icon just uses the "mlp" command with the default palette, you can use the "mlp" command with any palette that you want.  The "palette" option specifies palette and "range" specifies value range. 

Instructions on "mlp" command and how to specify palettes:

<https://rbvi.ucsf.edu/chimerax/docs/user/commands/mlp.html>
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#palette-options>

The hydrophobic coloring icon in the Toolbar "Molecule Display" tab uses command:

mlp

...which is same as:

mlp palette lipophilicity  range -20,20

To use the same value range but get blue for hydrophilic and red for hydrophobic, you could use, for example, command:

mlp palette blue-white-red  range -20,20

Since red-white-blue is traditionally used for electrostatic coloring, however, you will have to be sure to explain the image so that people understand it is showing hydrophobicity instead.

In the "mlp" instructions linked above, you can see there are several other options of the command that may interest you.
I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco


> On May 18, 2021, at 6:55 AM, Le Han <han.le at aalto.fi> wrote:
> 
> Hi, 
> I’d like to change the colour palette of hydrophobicity to red (most hydrophobic) – white – blue (most hydrophilic). Is it possible to do so in ChimeraX and how can I change?
> Thank you in advance,
> Han




More information about the ChimeraX-users mailing list