<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jun 19, 2009, at 6:04 PM, <a href="mailto:ylei@ecs.umass.edu">ylei@ecs.umass.edu</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi all<br><br>I am working on a project that requiring some program scripts concerning with<br><br>1) Compute Amber Energy Function</div></blockquote><blockquote type="cite"><div>2) Read rotamer information from the Dunbrack Backbone-dependent<br>Rotamer library<br>3) Read in Electron Density Map and get the density value for each 3-D<br>point in the crystal<br><br>I did check some related python files in the source code folder and<br>can understand them to some extent, but for running these files, some<br>modules (e.g. Chimera, Rotamers) are needed. However, I don't know how<br>to install these modules, or maybe I should recompile Chimera from<br>source code first(If so, then how, because I don't know the procedure<br>either. BTW, my platform is mac osx)?<br></div></blockquote><div><br></div>Well, Chimera is itself a Python interpreter. So if you open a Python script (ending in .py) with either File->Open or with the "open" command then Chimera will run that script. The script can import any of the modules provided by Chimera (e.g. "import chimera" or "import Rotamers"). If you need to run a script without Chimera's interface coming up or need to provide arguments to your script, see the "--nogui" and "--script" arguments (respectively) documented here: <a href="http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/options.html">http://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/options.html</a></div><div><br><blockquote type="cite"><div>Could someone show me which files I should use for the above mentioned<br>three subjects and what kinds of modules I should install and how?</div></blockquote><br></div><div>For (1), we would need more details. What are you trying to do? Compute charges? Minimize structures?</div><div><br></div><div>For (2) you would use the Rotamers module, probably either the getRotamers function or the useBestRotamers function, depending on your needs.</div><div><br></div><div>For (3) I think we would need a better description of what you are trying to accomplish, but you can certainly open a density map with:</div><div><br></div><div>from chimera import openModels</div><div>density = openModels.open("map_file_name_with_proper_suffix")[0]</div><div><br></div><div>I'm not an expert on how to get the density value at a point, but maybe Tom Goddard from our lab (who wrote the volumetric data code) will chime in on how to do that.</div><div><br></div><div>--Eric</div><div><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> Eric Pettersen</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> UCSF Computer Graphics Lab</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> <a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div><br class="Apple-interchange-newline"></div></span></div><br><div></div></body></html>