<div dir="ltr">Thanks all. Eric, the script works great and I see that it's easy to add whatever commands I want in there. Excellent.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><span style="font-size:12.8px">_</span><span style="font-size:12.8px">_</span><span style="font-size:12.8px">__________________________</span><br></div><div dir="ltr"><br></div><div dir="ltr">Daniel Gurnon, Ph. D.<div>Associate Professor of Chemistry and Biochemistry</div><div>DePauw University<br></div><div>Greencastle, IN 46135</div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 30, 2022 at 1:45 PM Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Dan,<div><span style="white-space:pre-wrap"> </span>I have fixed Color Actions so that the targeting checkboxes apply to "by hetero" etc. and not just the simple coloring buttons. The fixed version will be available in tomorrow's daily build.</div><div><span style="white-space:pre-wrap"> </span>We have a ticket open for executing custom commands after models open (<a href="https://www.rbvi.ucsf.edu/trac/ChimeraX/ticket/4748#comment:4" target="_blank">#4748</a>) and I've added you to the recipient list for that. In the interim, I wrote some simple Python code to execute "lighting soft" after any model is opened. I attached the file below, and if you add "open wherever-you-put-the-attached-file" to the commands that ChimeraX executes at startup then you should have the soft lighting you like.</div><div><br></div><div><div>--Eric</div><div><br></div><div><span style="white-space:pre-wrap"> </span>Eric Pettersen</div><div><span style="white-space:pre-wrap"> </span>UCSF Computer Graphics Lab</div><div><br></div><div></div></div></div><div style="overflow-wrap: break-word;"><div><div></div><div><br></div><div><blockquote type="cite"><div>On Aug 30, 2022, at 7:57 AM, Daniel Gurnon via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" target="_blank">chimerax-users@cgl.ucsf.edu</a>> wrote:</div><br><div><div dir="ltr">Thanks Elaine, this is very helpful. <div><br></div><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I played around with what you sent me and although it works great, I discovered two little issues with Chimera X:</div><div><br></div><div>(1) this is really minor, but I love the "soft lighting" setting and wanted to have that be the default setting in my installation. I figured I could set "lighting soft" to execute at startup, but for me, loading a new pdb always changes the lighting back to "simple". After I change it back to soft lighting it will stay that way when I bring in new pdb files without closing the original file, but if for instance I type "close all; open 2ZTA", it's back to simple lighting again. Like I said, a minor issue. But in good ol' Chimera I appreciated that I could set it up just the way I like it.</div><div><br></div><div>(2) In the color actions GUI, the radio buttons for applying color aren't being incorporated into the command. For example, if I uncheck everything except atoms/bonds, and then click "color by heteroatom", it runs "color byhetero", which applies to all.</div><div><br></div><div>I had been using 1.3, but I updated to the latest daily build and still have the same issues.</div><div>Dan</div></div></div></div></div></div></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr"><span style="font-size:12.8px">_</span><span style="font-size:12.8px">_</span><span style="font-size:12.8px">__________________________</span><br></div><div dir="ltr"><br></div><div dir="ltr">Daniel Gurnon, Ph. D.<div>Associate Professor of Chemistry and Biochemistry</div><div>DePauw University<br></div><div>Greencastle, IN 46135</div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 29, 2022 at 2:38 PM Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" target="_blank">meng@cgl.ucsf.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Dan,<div>Thanks for using Chimera & ChimeraX in your teaching!</div><div><br></div><div>We do plan to have a Render by Attribute tool in ChimeraX, at least for the coloring part. However, it's a rather complicated GUI that we are still working on implementing from scratch (since ChimeraX uses different toolkits than Chimera).</div><div><br></div><div>ChimeraX does already have the command implementation, "color byattribute"</div><div><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute" target="_blank">https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute</a>></div><div><br></div><div>Although kdHydrophobicity of amino acid residues is not automatically assigned as an attribute in ChimeraX, we provide:</div><div><br></div><div>(1) a file for loading it as an attribute, e.g. download this file as plain text and then use command "open kdHydrophobicity.defattr"</div><div><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/formats/kdHydrophobicity.defattr" target="_blank">https://rbvi.ucsf.edu/chimerax/docs/user/formats/kdHydrophobicity.defattr</a>></div><div><br></div><div>...after which you could color by attribute with the command, or select residues based on their attribute values, label by attribute, etc. There are examples specifically for kdHydrophobicity here:</div><div><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html" target="_blank">https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html</a>></div><div><br></div><div>For example, to use the same coloring scheme as in Chimera, command:</div><div><br></div><div>color byattribute kdHydrophobicity protein palette dodgerblue:white:orangered novalue gray</div><div><br></div><div>There are also files for other hydrophobicity scales, in case you're interested...</div><div><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html#examples" target="_blank">https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html#examples</a>></div><div><br></div><div>(2) A ChimeraX command file (.cxc) that assigns the attribute as name "kdh" (could be changed to kdHydrophobicity if you prefer), shows the protein molecular surface, and colors it by those values using the same color scheme that was used in Chimera. The result looks somewhat different in ChimeraX than Chimera, however, since there are sharper boundaries in the molecular surface between the residues.</div><div><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/kyte-doolittle_hydrophobicity.cxc" target="_blank">https://rbvi.ucsf.edu/chimerax/docs/user/kyte-doolittle_hydrophobicity.cxc</a>></div><div><br></div><div><span id="gmail-m_-5223637369593162707cid:182ef3f59bd6ac3a0a31"><Screen Shot 2022-08-29 at 11.30.05 AM.png></span><span id="gmail-m_-5223637369593162707cid:182ef3f59bd630ed8632"><Screen Shot 2022-08-29 at 11.30.27 AM.png></span></div><div><br></div><div>How to use the .cxc file to define a custom preset (i.e. will make an entry in the Presets menu):</div><div><<a href="https://rbvi.ucsf.edu/chimerax/docs/user/preferences.html#startup" target="_blank">https://rbvi.ucsf.edu/chimerax/docs/user/preferences.html#startup</a>></div><div><br></div><div>This .cxc file is just a starting point if you want to do something slightly different. You could remove the commands to hide protein atoms and show surface, you could change the coloring target to include atoms, etc.</div><div><br></div><div>I realize these are more steps in than in Chimera, however. If you are in control of the installation that all the students use, it would work well for you to make a custom preset. However, if they are all using their own installations on their own laptops, you could just tell the students to get the .cxc file (as plain text) and simply run the script by opening it in ChimeraX every time they want to do the coloring.</div><div><br></div><div>I hope this helps,</div><div>Elaine<br><div>-----<br>Elaine C. Meng, Ph.D. <br>UCSF Chimera(X) team<br>Department of Pharmaceutical Chemistry<br>University of California, San Francisco<br><br></div><blockquote type="cite">On Aug 29, 2022, at 9:20 AM, Daniel Gurnon via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" target="_blank">chimerax-users@cgl.ucsf.edu</a>> wrote:<br><br>Hi all,<br>I use Chimera mostly for teaching purposes, and while Chimera X is definitely more user friendly for students, there are occasionally things I like from the legacy version that I can't find on a menu in the new program. One such feature is "Render by attribute". While the mlp command can create a lipophilicity surface, when I teach protein folding I like to have students visualize all atoms, with residues colored by kdHydrophobicity. Is there a simple way to implement this?<br><br>Thanks<br>Dan<br>____________________________<br><br>Daniel Gurnon, Ph. D.<br>Associate Professor of Chemistry and Biochemistry<br>DePauw University<br>Greencastle, IN 46135<br>_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></blockquote><br></div></div></blockquote></div>
_______________________________________________<br>ChimeraX-users mailing list<br><a href="mailto:ChimeraX-users@cgl.ucsf.edu" target="_blank">ChimeraX-users@cgl.ucsf.edu</a><br>Manage subscription:<br><a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" target="_blank">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br></div></blockquote></div><br></div></div></blockquote></div>