<div dir="ltr">Thanks Nathaniel.. I too was using the approach of looking at the phenix scripts to figure things out. But I was hoping that there was a &quot;google hidden&quot; source of documentation for the python interfaces that I was not aware of. For the present moment the c++ documentation is much more useful .After I sent the email out , I did notice the section in the manual which says..<br>
<br>&quot;Most documented C++ interfaces are also available at the Python layer.
Unfortunately the documentation tools available are not capable of
merging the documentations. Therefore Python users need to also consult
the C++ documention.&quot;<br><br><br>On an unrelated note<br>The Nov 2006 newsletter and the c++ and python documentation lists a function&nbsp; in the class<br>iotbx.pdb.input&nbsp; called <br><br>input_atom_labels_list() <br>This function seems to be available from both c++ and python. The Nov 2006 letter has a python example that uses this function<br>
However&nbsp; I dont see that in the python interface with the current version? Is that true or am I using a different build that does not make this available in python<br>Just curious<br><br>Hari<br><br><br><div class="gmail_quote">
On Tue, Aug 26, 2008 at 12:50 PM, Nathaniel Echols <span dir="ltr">&lt;<a href="mailto:nathaniel.echols@gmail.com">nathaniel.echols@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Having spent the last few months trying to learn the python side of cctbx for my own work, I recommend looking at some of the actual programs that call these functions (e.g. the various phenix scripts, or testing scripts) for clues on how to use them. &nbsp;In particular, iotbx/pdb/tst_atom_selection.py has examples of selection caches. &nbsp;(I&#39;m not sure how exactly the &quot;cache&quot; class fits in, since it isn&#39;t invoked directly in that script, but hopefully the test script has some approximation of what you&#39;re trying to do.) &nbsp;I haven&#39;t found it necessary to look at the C++ code - boost.python obscures many details anyway, and it&#39;s usually pretty obvious to me what&#39;s going on in the python sources based on the variable/class/function names.<div>

<br></div><div><div><div><div>The various CCP4 newsletter articles may have some useful suggestions, but I haven&#39;t looked at these in much detail yet.</div><div><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">
On Tue, Aug 26, 2008 at 9:18 AM, hari jayaram <span dir="ltr">&lt;<a href="mailto:harijay@gmail.com" target="_blank">harijay@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><div dir="ltr">Hi ,&nbsp;<br>I am a few days into learning to use the cctbx libraries. My interests are&nbsp;mostly&nbsp;to be able to write scripts that plot various statistics from mtz files and use things like iotbx.pdb to manipulate coordinate files. &nbsp;While I have managed to write a few scripts and have read the very descriptive examples in the newsletters and the few routines inside of phenix.<div>


I have a problem with getting much out of the python interface documentation at the sourceforge site.<br><br></div><div>Say , for a particular class say&nbsp;<a href="http://cctbx.sourceforge.net/current/python/iotbx.pdb.atom_selection.html" target="_blank">http://cctbx.sourceforge.net/current/python/iotbx.pdb.atom_selection.html</a>,&nbsp;</div>


<div>the documentation &nbsp;gives me a &quot;cache&quot; class __init__ method that says<br><br><div>__init__(self, root, wildcard_escape_char=r&#39;\&#39;)<br><br>How do I find out what &quot;root&quot; is in this example. Should I be looking at the c++ code to find out the &quot;types&quot; of these arguments.&nbsp;</div>


<div><br></div><div>In addition a few of the auto-generated documentation pages such as &nbsp;<a href="http://cctbx.sourceforge.net/current_cvs/python/iotbx.pdb.atom.html" target="_blank">http://cctbx.sourceforge.net/current_cvs/python/iotbx.pdb.atom.html</a>&nbsp;</div>


<div>return an error page.&nbsp;</div><div><br></div><div>I just want to know a good way of understanding the varrious interfaces when writing code using cctbx in Python</div><div>Thanks in advance</div><div>hari<br></div><div>


<br></div></div></div>
<br></div></div>_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>
<a href="http://www.phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://www.phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br></div></div></div></div></div>
<br>_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://www.phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://www.phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br></div>