<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <font face="Helvetica, Arial, sans-serif">This will very handy;
      thank you, Tom.<br>
      <br>
      Ishwar<br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 1/19/2022 4:13 PM, Tom Goddard
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:C1F34656-328E-4B8C-B16C-73150BCBA929@sonic.net">
      
      Hi Ishwar,
      <div class=""><br class="">
      </div>
      <div class="">  Here is an example coloring a surface by NMR
        chemical shift perturbation value.</div>
      <div class=""><br class="">
      </div>
      <div class=""><span class="Apple-tab-span" style="white-space:pre">     </span><a href="https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/chimerax/data/nanobody-feb2021/chemshift.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!DMQP_xovEie4Fnv2AHX-MdxTqOmb07LBjFxghcncOHR6V3CgEsCzk_iz9w69jg-WxuinSu9mxbc$" class="" moz-do-not-send="true">https://www.rbvi.ucsf.edu/chimerax/data/nanobody-feb2021/chemshift.html</a></div>
      <div class=""><br class="">
      </div>
      <div class="">  Tom</div>
      <div class=""><br class="">
      </div>
      <div class=""><img apple-inline="yes" id="35504AF5-E89E-4A52-873C-CB1176251AE3" src="cid:part1.bDLQ0GH7.AtE2UVYu@northwestern.edu" class="" width="373.561" height="300"><br class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On Jan 19, 2022, at 1:28 PM, Ishwar
              Radhakrishnan via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="moz-txt-link-freetext" moz-do-not-send="true">chimerax-users@cgl.ucsf.edu</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div class=""> <font class="" face="Helvetica, Arial,
                  sans-serif">Thanks, Elaine; we'll give it a try in
                  ChimeraX.  Below is the file format we import into
                  Chimera (in this case the custom attribute is
                  resonance peak intensity ratio but could be other
                  things like chemical shift perturbation):<br class="">
                  <br class="">
                  <blockquote type="cite" class="">attribute:
                    intensity    <br class="">
                    recipient: residues    <br class="">
                        :250    0<br class="">
                        :251    9.977277803<br class="">
                        :252    19.70945973<br class="">
                        :253    23.07676553<br class="">
                        :254    20.8434625</blockquote>
                  etc.<br class="">
                  <br class="">
                  Best,<br class="">
                  Ishwar<br class="">
                  <br class="">
                </font><br class="">
                <div class="moz-cite-prefix">On 1/19/2022 3:03 PM,
                  Elaine Meng wrote:<br class="">
                </div>
                <blockquote type="cite" cite="mid:E4476CA8-95F7-48DE-BDBC-3349C92BC1DA@cgl.ucsf.edu" class="">
                  <pre class="moz-quote-pre" wrap="">Hi Ishwar,
How were you defining your custom attribute in Chimera?  All of the same methods are available in ChimeraX.

I.e. ChimeraX reads the same attribute file format as Chimera (in ChimeraX you would just name the file ending in .defattr and use "open" to open it), or you can use the "setattr" command to set one value at a time.

See ChimeraX help links
<a class="moz-txt-link-rfc2396E" href="https://urldefense.com/v3/__https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxHRK24Ofw$" moz-do-not-send="true"><https://urldefense.com/v3/__https://rbvi.ucsf.edu/chimerax/docs/user/formats/defattr.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxHRK24Ofw$ ></a>
<a class="moz-txt-link-rfc2396E" href="https://urldefense.com/v3/__https://rbvi.ucsf.edu/chimerax/docs/user/commands/setattr.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxH27hDLaU$" moz-do-not-send="true"><https://urldefense.com/v3/__https://rbvi.ucsf.edu/chimerax/docs/user/commands/setattr.html__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxH27hDLaU$ ></a>

Best,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

</pre>
                  <blockquote type="cite" class="">
                    <pre class="moz-quote-pre" wrap="">On Jan 19, 2022, at 12:41 PM, Ishwar Radhakrishnan via ChimeraX-users <a class="moz-txt-link-rfc2396E" href="mailto:chimerax-users@cgl.ucsf.edu" moz-do-not-send="true"><chimerax-users@cgl.ucsf.edu></a> wrote:

Thanks for the tip, Elaine.  I gave it a go and it works very nicely if the attribute is already present in the PDB file (e.g., b-factor).  But what about if we wished to display a custom attribute like chemical shift perturbation; we could do that in Chimera via the Define Attribute and Render Attribute features.  Is there a way to define a custom attribute in ChimeraX?

Thanks much,
Ishwar

On 1/19/2022 2:05 PM, Elaine Meng wrote:
</pre>
                    <blockquote type="cite" class="">
                      <pre class="moz-quote-pre" wrap="">Hi Ishwar,
In case you didn't know already: in ChimeraX now, you can use the "color byattribute" command to do it.  It's not as convenient as the Render by Attribute GUI, in that you can't see the histogram of values and interactively position the colors on the histogram, but if you already had a standard color-to-value mapping that you prefer, it is just specified directly in the command.

Example:
open 2gbp
color byattribute bfactor palette 0,blue:20,red:40,yellow key true

command details:

<a class="moz-txt-link-rfc2396E" href="https://urldefense.com/v3/__https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html*byattribute__;Iw!!Dq0X2DkFhyF93HkjWTBQKhk!GAojFDIw0WEbNhxXklg8cYlrwx_rWN3jpgRQLGUVaJMGYDFHzpcBlenSJRdEc17nT-6J8ooYzcw$" moz-do-not-send="true"><https://urldefense.com/v3/__https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html*byattribute__;Iw!!Dq0X2DkFhyF93HkjWTBQKhk!GAojFDIw0WEbNhxXklg8cYlrwx_rWN3jpgRQLGUVaJMGYDFHzpcBlenSJRdEc17nT-6J8ooYzcw$ ></a>


To assign your custom attribute, ChimeraX also already reads the "attribute file" format like Chimera, and it has a Color Key tool.

The "key true" option in the example command above shows a color key and brings up the dialog for redrawing/sizing by hand and optionally changing any other color key parameters.

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco


</pre>
                      <blockquote type="cite" class="">
                        <pre class="moz-quote-pre" wrap="">On Jan 19, 2022, at 11:46 AM, Eric Pettersen via ChimeraX-users <a class="moz-txt-link-rfc2396E" href="mailto:chimerax-users@cgl.ucsf.edu" moz-do-not-send="true"><chimerax-users@cgl.ucsf.edu></a>
 wrote:


</pre>
                        <blockquote type="cite" class="">
                          <pre class="moz-quote-pre" wrap="">On Jan 19, 2022, at 6:59 AM, Ishwar Radhakrishnan via ChimeraX-users <a class="moz-txt-link-rfc2396E" href="mailto:chimerax-users@cgl.ucsf.edu" moz-do-not-send="true"><chimerax-users@cgl.ucsf.edu></a>
 wrote:

Hello Eric - thank you so much for the quick turnaround!  My responses are below. - ir

On 1/18/2022 8:39 PM, Eric Pettersen wrote:

</pre>
                          <blockquote type="cite" class="">
                            <blockquote type="cite" class="">
                              <pre class="moz-quote-pre" wrap="">On Jan 14, 2022, at 4:06 PM, Ishwar Radhakrishnan via ChimeraX-users <a class="moz-txt-link-rfc2396E" href="mailto:chimerax-users@cgl.ucsf.edu" moz-do-not-send="true"><chimerax-users@cgl.ucsf.edu></a>
 wrote:

Hello - I would like to request two features in ChimeraX that we use a lot in Chimera:

</pre>
                            </blockquote>
                            <pre class="moz-quote-pre" wrap="">Hi Ishwar,
        Thanks for letting us know what's missing that's important to you.  It helps us prioritize.


</pre>
                            <blockquote type="cite" class="">
                              <pre class="moz-quote-pre" wrap="">1. Render by Attribute

</pre>
                            </blockquote>
                            <pre class="moz-quote-pre" wrap="">This is being worked on and might, maybe make the 1.4 release.  Well, in some form.  Initially probably only Render/Colors and Select.  Not too much later Render/Radii, but probably much later Render/Worms, since that last one will require significant additions to the ribbon-depiction code.  If Render/Worms is very important to you, pipe up! :-)

I'll add you to the recipient list for the ticket we have for this so that you will automatically be notified when progress occurs.


</pre>
                          </blockquote>
                          <pre class="moz-quote-pre" wrap="">Render by Attribute/Colors is what we use the most to map NMR chemical shift perturbations on to a structure, so I'm glad that it's receiving the highest priority!

</pre>
                        </blockquote>
                        <pre class="moz-quote-pre" wrap="">Good to know.


</pre>
                        <blockquote type="cite" class="">
                          <blockquote type="cite" class="">
                            <blockquote type="cite" class="">
                              <pre class="moz-quote-pre" wrap="">2. Ability to read .poc files created by CASTp

</pre>
                            </blockquote>
                            <pre class="moz-quote-pre" wrap="">This had been pretty low priority.  Are we talking about structures that you've run CASTp on by hand rather than fetched from the database?  The database doesn't seem to include any recent structures.


</pre>
                          </blockquote>
                          <pre class="moz-quote-pre" wrap="">Yes, I'm talking about the ability to read .poc files for structures for which we have manually asked CASTp to calculate pockets on their webserver.

</pre>
                        </blockquote>
                        <pre class="moz-quote-pre" wrap="">Very doable.  I'll open a ticket with you cc'ed so you'll know when something happens.

--Eric


_______________________________________________
ChimeraX-users mailing list

<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:ChimeraX-users@cgl.ucsf.edu" moz-do-not-send="true">ChimeraX-users@cgl.ucsf.edu</a>

Manage subscription:

<a class="moz-txt-link-freetext" href="https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users__;!!Dq0X2DkFhyF93HkjWTBQKhk!GAojFDIw0WEbNhxXklg8cYlrwx_rWN3jpgRQLGUVaJMGYDFHzpcBlenSJRdEc17nT-6JFN2DWZo$" moz-do-not-send="true">https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users__;!!Dq0X2DkFhyF93HkjWTBQKhk!GAojFDIw0WEbNhxXklg8cYlrwx_rWN3jpgRQLGUVaJMGYDFHzpcBlenSJRdEc17nT-6JFN2DWZo$</a>
 

</pre>
                      </blockquote>
                    </blockquote>
                    <pre class="moz-quote-pre" wrap="">_______________________________________________
ChimeraX-users mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:ChimeraX-users@cgl.ucsf.edu" moz-do-not-send="true">ChimeraX-users@cgl.ucsf.edu</a>
Manage subscription:
<a class="moz-txt-link-freetext" href="https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxHxV3cdcU$" moz-do-not-send="true">https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxHxV3cdcU$</a> 
</pre>
                  </blockquote>
                </blockquote>
                <br class="">
              </div>
              _______________________________________________<br class="">
              ChimeraX-users mailing list<br class="">
              <a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="moz-txt-link-freetext" moz-do-not-send="true">ChimeraX-users@cgl.ucsf.edu</a><br class="">
              Manage subscription:<br class="">
              <a href="https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users__;!!Dq0X2DkFhyF93HkjWTBQKhk!DMQP_xovEie4Fnv2AHX-MdxTqOmb07LBjFxghcncOHR6V3CgEsCzk_iz9w69jg-WxuinBmaNo0E$" moz-do-not-send="true">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br>
  </body>
</html>