[chimera-dev] [Chimera-users] Minimize

Eric Pettersen pett at cgl.ucsf.edu
Tue Aug 4 13:44:49 PDT 2009


> Begin forwarded message:
>
>> From: Alex Gawronski <alex.gawronski at gmail.com>
>> Date: August 4, 2009 1:28:42 PM PDT
>> To: meng at cgl.ucsf.edu
>> Subject: Re: [Chimera-users] Minimize
>>
>> Hello again,
>>
>> Is there a way to run Dock Prep, without GUI, from a script or  
>> command line? I tried 'start Dock Prep' with the headless linux  
>> version and it gave me a "ImportError: No module named Togl".
>>
>> Thanks,
>> Alex

You have to use a Python script in Chimera.  Something along the lines  
of:

from chimera import openModels, Molecule, runCommand
from DockPrep import prep
prep(openModels.list(modelTypes=[Molecule]))
runCommand("write out.pdb")

which you would then use in Chimera in a fashion similar to this:

chimera --nogui structure001.pdb script.py
mv out.pdb processed/structure001.pdb


There are keyword arguments to the prep() function for changing it's  
behavior in the same fashion as the check buttons do in the DockPrep  
graphical interface.

If you're familiar with Python you could modify the script to loop  
through your files directly in one instance of Chimera rather than  
calling Chimera once for each file.

--Eric


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20090804/991dc143/attachment.html>


More information about the Chimera-dev mailing list