<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Unfortunate. I guess what happens is that even if you close the surface and recompute it then color it, the notice that the atomic coordinates changed is still pending and when that notification is handled before drawing the next graphics frame the code recomputes the surface even thought it was already recomputed, eliminating the coloring.</div><div class=""><br class=""></div><div class="">One way to handle this in the code is to remember the previous atomic coordinates and radii used for the last surface calculation and if they haven’t changed, don’t recalculate the surface. I know I coded a version of that at some point but I don’t see it in the code.<br class=""><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 21, 2017, at 9:55 AM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">At least for my test system, that did not work, nor did adding “wait” in various places… the coloring still got wiped out.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Elaine</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">On Nov 21, 2017, at 9:37 AM, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:<br class=""><br class="">If you wanted to try molecular surfaces I think the perframe script would include the surface command<br class=""><br class=""> surface<br class=""> coulombic ...<br class=""><br class="">As Elaine points out if you leave out the surface command the surface does automatically update but only after the coloring which erases the coloring. I'm not sure if the surface command above will do the trick, maybe it will think the surface is already there and do nothing so you may need to delete the surface and recreate it in the perframe script.<br class=""><br class=""> Tom<br class=""><br class=""><blockquote type="cite" class="">On Nov 21, 2017, at 9:28 AM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:<br class=""><br class="">Hello Ryder,<br class="">Your Answer of the Day:<br class=""><br class="">The error is probably “No molecular surfaces selected with atom spec” and you would get that error when you haven’t shown a surface, since the Coulombic coloring applies only to surfaces.<br class=""><br class="">(Also, for “classical” coloring by electrostatic potential, you probably want white between the red and the blue.)<br class=""><br class="">So, the short answer may be to show a surface first (e.g. command “surface”). However, this does not work well with trajectories, for two reasons. The molecular surface automatically recalculates when coordinates change, and when I put “coulombic” into a per-frame script it is poorly synchronized so that the surface update wipes out the Coulombic coloring so that it’s never visible, at least in my test system. Secondarily, molecular surface calculation is prone to failures and usually at least a few of the trajectory frames have a surface-calculation error or crazy-looking surface. However, you could try it on your system, e.g. show surface and then apply a per-frame script with something like the following command (if your molecular surface is #0, can check in the Model Panel):<br class=""><br class="">coulombic -10 red 0 white 10 blue #0<br class=""><br class="">Assuming you have the same prohibitive problems I observed, here is one possible workaround but it is more effort in deciding waht parameters to use. At each frame calculate a molmap surface (isosurface of density simulated from atomic positions), adjust isosurface level so it is somewhat similar to the molecular surface shape, apply coulombic coloring. E.g. per-frame script something like the following, but with variations depending on your system:<br class=""><br class=""><br class=""></blockquote></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" class="">I decided on the “level” value of 0.2 by showing a molecular surface along with the molmap surface, changing the molmap surface to mesh representation (in the Volume Viewer dialog that automatically appears when you use molmap) and dragging the bar on the Volume Viewer histogram so that the mesh surface was in a similar location to the molecular surface. The value is shown in the “Level” field in the Volume Viewer dialog. This only needs to be done once, i.e. the isosurface level that's reasonable for one frame should be equally reasonable for the other frames. The two kinds of surfaces will never be exactly the same since they are calculated differently, but you can shoot for similar enough. Then you would close (delete) the molecular surface and change the molmap surface back to “surface” style in Volume Viewer before proceeding with your trajectory playback with the per-frame script.<br class=""><br class="">See the help pages of the commands for details on the options, but in a nutshell the molmap command simulates a density map from the protein atoms (you could specify the atoms differently, I just mean my example uses “protein”) and makes that map a new model #2. The volume command sets the isosurface level of model #2 to 0.2. The coulombic command colors the molmap surface #2 by the potential calculated from the protein atoms.<br class=""><br class=""><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/molmap.html" class="">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/molmap.html</a>><br class=""><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/volume.html" class="">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/volume.html</a>><br class=""><<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/coulombic.html" class="">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/coulombic.html</a>><br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">----------<br class="">Elaine C. Meng, Ph.D.<span class="Apple-converted-space"> </span><br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Nov 21, 2017, at 7:41 AM, RYDER WHITTAKER HAWKINS <<a href="mailto:Ryder.Whittaker@crchudequebec.ulaval.ca" class="">Ryder.Whittaker@crchudequebec.ulaval.ca</a>> wrote:<br class=""><br class="">My Question of the Day:<br class=""><br class="">- I am running an MD movie in Chimera<br class="">- I want to display the solvent excluded surface colored by coulombic potential.<br class="">- I would like to implement this command as a script at each frame.<br class="">What is the command? I am getting error after error...<br class=""><br class=""><blockquote type="cite" class="">coulombic -10 red 10 blue<br class=""></blockquote><br class="">How could I put this in a Per-Frame analysis?<br class=""><br class="">Thanks for any suggestions. The documentation is not so clear for this coulombic function.<br class=""><br class="">Ryder Whittaker Hawkins<br class="">MSc Candidate<br class="">PI: Dr. Luc Vallières<br class=""><a href="mailto:ryder.whittaker@crchudequebec.ulaval.ca" class="">ryder.whittaker@crchudequebec.ulaval.ca</a><br class="">ca.linkedin.com/in/ryderwh<br class="">Work: (418) 525-4444<br class="">Cell: (613) 979-7729<br class="">Dept. of Molecular Medicine<br class="">Université Laval (CHUL)<br class="">2705 Laurier Blvd<br class="">Québec, QC<span class="Apple-converted-space"> </span><br class="">G1V 4G2<br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""><br class=""></blockquote><br class="">_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""><br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Chimera-users mailing list:<span class="Apple-converted-space"> </span></span><a href="mailto:Chimera-users@cgl.ucsf.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Chimera-users@cgl.ucsf.edu</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Manage subscription:<span class="Apple-converted-space"> </span></span><a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a></div></blockquote></div><br class=""></div></div></body></html>