<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <font 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>
      <br>
      <blockquote type="cite">attribute: intensity    <br>
        recipient: residues    <br>
            :250    0<br>
            :251    9.977277803<br>
            :252    19.70945973<br>
            :253    23.07676553<br>
            :254    20.8434625</blockquote>
      etc.<br>
      <br>
      Best,<br>
      Ishwar<br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">On 1/19/2022 3:03 PM, Elaine Meng
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:E4476CA8-95F7-48DE-BDBC-3349C92BC1DA@cgl.ucsf.edu">
      <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$"><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$"><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">
        <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"><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">
          <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$"><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">
            <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"><chimerax-users@cgl.ucsf.edu></a>
 wrote:


</pre>
            <blockquote type="cite">
              <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"><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">
                <blockquote type="cite">
                  <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"><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">
                  <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">
              <blockquote type="cite">
                <blockquote type="cite">
                  <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" href="mailto:ChimeraX-users@cgl.ucsf.edu">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$">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" href="mailto:ChimeraX-users@cgl.ucsf.edu">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$">https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users__;!!Dq0X2DkFhyF93HkjWTBQKhk!BITeDaDhhKKMpK7-YbQQ4gyRpHTNS2EfeJghadh1GtVdxRVddC0oc76JWNN3TZt7gPxHxV3cdcU$</a> 
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>