<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Elaine</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks so much for the detailed answer. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I already tested approach A seems to work fine. Its good to know about the attribute assignment file approach if we'll encounter complications with complex mmCIF files.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Josef</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> Wednesday, June 26, 2019 5:20 PM<br>
<b>To:</b> Josef Sprinzak<br>
<b>Cc:</b> chimera-users@cgl.ucsf.edu<br>
<b>Subject:</b> Re: [Chimera-users] coloring mmCIF files</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">Hi Josef,<br>
(A) If the plan is to continue using bfactor, then look in standard mmCIF files and just replace the bfactor values with the conservation values. Then the Chimera commands would be exactly the same as they are now.<br>
<br>
This is really a question about mmCIF format rather than Chimera. I’m no expert on mmCIF format specifically, but when I look at mmCIF files downloaded from RCSB PDB I see they have ATOM lines that are similar to the ones in PDB files. E.g. the first two
for 1ZIK in mmCIF are<br>
<br>
ATOM 1 N N . ARG A 1 1 ? 39.645 15.539 14.173 1.00 56.87 ? 1 ARG A N 1<br>
ATOM 2 C CA . ARG A 1 1 ? 38.422 14.946 14.705 1.00 62.98 ? 1 ARG A CA 1<br>
<br>
whereas in PDB for same structure <br>
<br>
ATOM 1 N ARG A 1 39.645 15.539 14.173 1.00 56.87 N<br>
ATOM 2 CA ARG A 1 38.422 14.946 14.705 1.00 62.98 C<br>
<br>
The bfactor values are 56.87 and 62.98, so I guess you would just replace them with the conservation values analogous to how you’ve been doing it for PDB files.<br>
<br>
However, mmCIF is more complicated since the columns might not always be the same and there are a bunch of “_atom_site” lines that stipulate what they are. More about mmCIF format here:
<br>
<<a href="http://mmcif.wwpdb.org/docs/faqs/pdbx-mmcif-faq-general.html">http://mmcif.wwpdb.org/docs/faqs/pdbx-mmcif-faq-general.html</a>><br>
<br>
(B) The alternative approach available in Chimera is to not mess with the PDB or mmCIF file at all. Instead you can create your own custom attribute (i.e. doesn’t have to be bfactor, can be named whatever you like) using an “attribute assignment file” (simple
text file format) read in with the command “defattr"<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/defattr.html">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/defattr.html</a>><br>
<br>
File format described here<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html#attrfile">http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/defineattrib.html#attrfile</a>><br>
<br>
Example file for assigning residue attribute named “percentExposed”<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/percentExposed.txt">http://www.rbvi.ucsf.edu/chimera/docs/ContributedSoftware/defineattrib/percentExposed.txt</a>><br>
<br>
The first column in the assignment lines is just a residue specifier, e.g. :1 for residue 1, :1.A for residue 1 in chain A. The defattr command is used to read in this file.<br>
<br>
Then your Chimera commands would be basically the same except for the name of the attribute (let’s say you named it “blah”) and now you’re coloring by residue attribute instead of atom attribute, so someting like:<br>
<br>
color CONS1 :/blah=1<br>
color CONS2 :/blah=2<br>
<br>
One consideration may be whether you or the webservice users would like to start using ChimeraX. Currently it can read bfactor and use it for coloring, as well as take custom color definitions (like approach “A”) although the command syntax would then slightly
different for both of those things. If you took approach A, however, people can always just do the coloring themselves in ChimeraX after reading in the PDB or mmCIF file with the modified bfactors. ChimeraX commands:<br>
<br>
— for residue attribute — <br>
color name cons1 80,20,80<br>
color ::blah=1 cons1<br>
— or for atom attribute — <br>
color name cons2 100,20,20<br>
color @@bfactor=2 cons2<br>
<br>
ChimeraX does not yet read an attribute definition file (like approach “B”) but we plan to have something like that in the future.<br>
<br>
ChimeraX: <<a href="http://www.rbvi.ucsf.edu/chimerax/index.html">http://www.rbvi.ucsf.edu/chimerax/index.html</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 Jun 26, 2019, at 6:13 AM, Josef Sprinzak <josefspr@hotmail.com> wrote:<br>
> <br>
> Dear Chimera Support<br>
> I am a developer of consurf (<a href="http://consurf.tau.ac.il/">http://consurf.tau.ac.il/</a>) for displaying evolutionary conservation of amino/nucleic acid positions in a protein/DNA.<br>
> Till now we have been working with PDB files and inserting the coloring values in the b-factor (temperature) field in the ATOM part.<br>
> In the chimera script we use the color commands:<br>
> color CONS1 @/bfactor=1<br>
> color CONS2 @/bfactor=2<br>
> color CONS3 @/bfactor=3<br>
> ...<br>
> Now we wish to start using mmCIF files. Where should we insert the coloring values in the mmCIF file, and how do we reference then with the chimera commands ?<br>
> Best <br>
> Josef<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>