<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=O</id>
	<title>O - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pymol.org/index.php?action=history&amp;feed=atom&amp;title=O"/>
	<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=O&amp;action=history"/>
	<updated>2026-07-18T20:33:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.pymol.org/index.php?title=O&amp;diff=7103&amp;oldid=prev</id>
		<title>Pyadmin: 2 revisions</title>
		<link rel="alternate" type="text/html" href="https://wiki.pymol.org/index.php?title=O&amp;diff=7103&amp;oldid=prev"/>
		<updated>2014-03-28T02:00:24Z</updated>

		<summary type="html">&lt;p&gt;2 revisions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Overview==&lt;br /&gt;
Python programmers, who wish to extract information from O files, may &lt;br /&gt;
find the OdbParser module useful. The module reads both binary and &lt;br /&gt;
formatted O files, and is very simple to use. Try it! Simply import the &lt;br /&gt;
module, and use the get() method:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
$ python&lt;br /&gt;
Python 2.3.4 (#1, Mar 10 2006, 06:12:09)&lt;br /&gt;
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2&lt;br /&gt;
Type &amp;quot;help&amp;quot;, &amp;quot;copyright&amp;quot;, &amp;quot;credits&amp;quot; or &amp;quot;license&amp;quot; for more information.&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; import odbparser&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; db = odbparser.get(&amp;quot;binary.o&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you have the O database as a Python dictionary 'db', with the &lt;br /&gt;
datablock names as keys. For example, print out some information on the &lt;br /&gt;
di-peptide from Baton:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; print db[&amp;quot;di_atom_name&amp;quot;]&lt;br /&gt;
('N', 'CA', 'C', 'O', 'CB', 'N', 'CA', 'C', 'O', 'CB')&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; print x[&amp;quot;di_residue_type&amp;quot;]&lt;br /&gt;
('ALA', 'ALA')&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Go to [http://www.bioxray.dk/~mok/odbparser OdbParser] for information about download, installation, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Third_Party_Software|O]]&lt;/div&gt;</summary>
		<author><name>Pyadmin</name></author>
	</entry>
</feed>