<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Elaine, <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you, that worked perfectly! <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also, a separate attribute file sounds like a useful feature, worth a try.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind regards,<br>
Lorena<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> 26 July 2021 22:23<br>
<b>To:</b> Lorena Zuzic <lorena.zuzic@postgrad.manchester.ac.uk><br>
<b>Cc:</b> chimerax-users@cgl.ucsf.edu <chimerax-users@cgl.ucsf.edu><br>
<b>Subject:</b> Re: [chimerax-users] Custom colour for atoms with bfactor==0</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Lorena,<br>
Just use this additional command after your initial bfactor coloring:<br>
<br>
color @@bfactor=0 gray target a<br>
<br>
The "target a" part is to limit to atoms, assuming you don't also want to color ribbons, surfaces, etc. If you do want to color those representations, just omit that part.<br>
<br>
See command-line specification by attribute value:<br>
<<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes">https://rbvi.ucsf.edu/chimerax/docs/user/commands/atomspec.html#attributes</a>><br>
<br>
By the way, you don't have to use the bfactor column to assign atoms values and use them for coloring. You can instead make any number of your own custom attributes by reading in an attribute assignment file (simple text format) and then use it for coloring
with the "color byattribute" command.<br>
<br>
See<br>
<<a href="https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html">https://rbvi.ucsf.edu/chimerax/docs/user/attributes.html</a>><br>
<<a href="https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html">https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html</a>><br>
<<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute">https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute</a>><br>
<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D. <br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
> On Jul 26, 2021, at 12:05 PM, Lorena Zuzic via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:<br>
> <br>
> Hi,<br>
> I wanted to know if there is a way of colouring my structure by bfactor, but with an additional condition where all bfactor==0 atoms are coloured in grey.<br>
> Currently, I am using a white to red gradient for my B-factors:<br>
> <br>
> color bfactor range -2.2, 2.2<br>
> <br>
> In this case, bfactor==0 values are coloured white. However, I would like them to be grey and outside the gradient (as they represent an unmapped portion of the protein).
<br>
> <br>
> Thanks!<br>
> Lorena<br>
<br>
</div>
</span></font></div>
</body>
</html>