<div dir="ltr">Thanks you for the detailed answer!<br><br><div class="gmail_quote">On 10 May 2012 20:39, Greg Couch <span dir="ltr"><<a href="mailto:gregc@cgl.ucsf.edu" target="_blank">gregc@cgl.ucsf.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">While it is possible to use chimera's python packages and modules outside of chimera, it is messy. It is *much* easier running the python script using chimera. If you have a third party package that you want to use with chimera, you can install it into chimera's python using:<br>
<br>
chimera --nogui --silent --script "setup.py install"<br>
<br>
instead of:<br>
<br>
python setup.py install<br>
<br>
It is also possible to make easy_install work with chimera by temporarily putting chimera's bin directory on your path and running the appropriate egg (see <a href="http://pypi.python.org/pypi/setuptools" target="_blank">http://pypi.python.org/pypi/<u></u>setuptools</a> for details). Right now, chimera is using Python 2.7.<br>
<br>
To create images in nogui mode, you need to use the experimental headless version of chimera that runs on Linux. We consider it experimental because some of chimera's older functionality doesn't work yet in nogui mode. If you come across a nogui limitation in your work, please file a bug to increase its priority to be fixed.<br>
<br>
An alternative to nogui mode would be to run chimera with a virtual framebuffer, that could be because chimera is running on a virtual machine (e.g., vmware), or, on Linux using Xvfb. The advantage of the virtual machine is that you can run any version of chimera you're comfortable with.<br>
<br>
HTH,<br>
<br>
Greg<div class="HOEnZb"><div class="h5"><br>
<br>
On 05/10/2012 06:02 AM, Dan Cohen wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I would like to use Chimera python classes from a python script running outside Chimera (part of a larger python project).<br>
I saw another post that explained that this could be done but I was unclear which of the Chimera functionality can be used<br>
in this case. In case I want to create an image (e.g. load pdb files, do some editing and then create an image to a file) - can I use<br>
the "chimera" class or do I need to use something else? (I saw a reference to "midas" classes)<br>
<br>
Is there an example for doing that? Processing a file and creating an image in a non-GUI scenario running outside chimera?<br>
<br>
Thank you,<br>
Dany<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>