https://wiki.pymol.org/index.php?title=O&feed=atom&action=historyO - Revision history2024-03-28T08:50:43ZRevision history for this page on the wikiMediaWiki 1.35.1https://wiki.pymol.org/index.php?title=O&diff=7103&oldid=prevPyadmin: 2 revisions2014-03-28T02:00:24Z<p>2 revisions</p>
<p><b>New page</b></p><div>==Overview==<br />
Python programmers, who wish to extract information from O files, may <br />
find the OdbParser module useful. The module reads both binary and <br />
formatted O files, and is very simple to use. Try it! Simply import the <br />
module, and use the get() method:<br />
<br />
<source lang="python"><br />
$ python<br />
Python 2.3.4 (#1, Mar 10 2006, 06:12:09)<br />
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2<br />
Type "help", "copyright", "credits" or "license" for more information.<br />
>>><br />
>>> import odbparser<br />
>>> db = odbparser.get("binary.o")<br />
</source><br />
<br />
Now you have the O database as a Python dictionary 'db', with the <br />
datablock names as keys. For example, print out some information on the <br />
di-peptide from Baton:<br />
<br />
<source lang="python"><br />
>>> print db["di_atom_name"]<br />
('N', 'CA', 'C', 'O', 'CB', 'N', 'CA', 'C', 'O', 'CB')<br />
>>> print x["di_residue_type"]<br />
('ALA', 'ALA')<br />
</source><br />
<br />
Go to [http://www.bioxray.dk/~mok/odbparser OdbParser] for information about download, installation, etc.<br />
<br />
<br />
[[Category:Third_Party_Software|O]]</div>Pyadmin