<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Mario,<div class=""><br class=""></div><div class=""> I just remembered I wrote a little Python to average map values in a sphere around atoms, called mapsum.py on the Chimera Python scripts web page:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts" class="">http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts</a></div><div class=""><br class=""></div><div class=""> Tom</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 22, 2015, at 10:41 AM, Mario J. Borgnia <<a href="mailto:mborgnia@helix.nih.gov" class="">mborgnia@helix.nih.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Hi,<br class="">I have a density map in mrc format and a model in pdb format. I would<br class="">like to calculate the average density within a 3D window centered at the<br class="">coordinates of each atom in the model and include the result as an<br class="">attribute for the atom. Despite some effort searching for the answer, I<br class="">cannot find out how to do this easily. I could try and go deep into<br class="">Python programming but, before I reinvent the wheel, I'd like to know<br class="">whether there already is a simpler way to do this in Chimera.<br class=""><br class="">Thanks!<br class=""><br class="">Mario<br class=""><br class=""><br class="">-- <br class="">+---------------------------------+<br class="">| Mario J. Borgnia, Ph. D. |<br class="">| |<br class="">| Lab of Cell Biology |<br class="">| NIH NCI/CCR |<br class="">| 50 South Drive Rm 4306 MSC 8008 |<br class="">| Bethesda MD 20892-8008 |<br class="">| |<br class="">| Tel: (301) 594 0563 |<br class="">| <a href="mailto:mborgnia@nih.gov" class="">mborgnia@nih.gov</a> |<br class="">+---------------------------------+<br class=""><br class="">_______________________________________________<br class="">Chimera-users mailing list<br class=""><a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>