On Thu, Oct 20, 2011 at 10:42 AM, Francis E Reyes <
[email protected]> wrote:

> Hi cooters
>
> Is there an xml-rpc interface for coot? Is it documented (somewhere)?
>
> I would love an example of loading maps/pdbs.
>

I've been doing this in PHENIX for a couple of years.  Look at
$PHENIX/cctbx_project/libtbx/xmlrpc_server_example.py for a simple overview;
this is open-source, so you can do whatever you want with it.  I haven't
actually tried running this in a while, but I'm pretty sure I designed it so
it automatically has access to any Python functions exposed by Coot, so you
can immediately call read_pdb(file_name) from the client code.
$PHENIX/phenix/wxGUI2/Coot.py is what actually gets used in the PHENIX GUI,
but it's basically the same thing with lots of PHENIX-specific code.  There
are about a dozen other hacks that were necessary to get this to really work
stably, but I can explain those if you run into them.

-Nat

Reply via email to