<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <title>Class: inchi</title> </head> <body bgcolor="#ffffff"> <p><i><a href="../../../../index.html">Table of Contents</a></i></p> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Class: inchi</font> </th> <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">../bkchem/oasa/oasa/inchi.py</font> </th> </tr> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Base Classes">Base Classes</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> plugin<br> </td></tr> </table> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Methods">Methods</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> <table border="0" cellspacing="2" cellpadding="2" width="100%"> <tr> <td align="LEFT" valign="TOP"> <a href="#__init__">__init__</a><br> <a href="#cleanup">cleanup</a><br> <a href="#compensate_for_forced_charges">compensate_for_forced_charges</a><br> <a href="#deal_with_da_bonds">deal_with_da_bonds</a><br> <a href="#get_layer">get_layer</a><br> <a href="#get_number_of_hydrogens_in_hydrogen_layer">get_number_of_hydrogens_in_hydrogen_layer</a><br> <a href="#get_structure">get_structure</a><br> <a href="#process_forced_charges">process_forced_charges</a><br> </td> <td align="LEFT" valign="TOP"> <a href="#read_charge_layer">read_charge_layer</a><br> <a href="#read_connectivity_layer">read_connectivity_layer</a><br> <a href="#read_hydrogen_layer">read_hydrogen_layer</a><br> <a href="#read_inchi">read_inchi</a><br> <a href="#read_p_layer">read_p_layer</a><br> <a href="#read_sum_layer">read_sum_layer</a><br> <a href="#set_structure">set_structure</a><br> <a href="#split_layers">split_layers</a><br> </td> </tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="__init__"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">__init__ </font> </th> </tr> <tr> <td> <font color="#000088"><pre> __init__ ( self, structure=None ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="cleanup"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">cleanup </font> </th> </tr> <tr> <td> <font color="#000088"><pre> cleanup ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="compensate_for_forced_charges"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">compensate_for_forced_charges </font> </th> </tr> <tr> <td> <font color="#000088"><pre> compensate_for_forced_charges ( self ) </pre></font> <p>if there were foced charges and they the molecule should not have any charge, we have to take care of it here</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="deal_with_da_bonds"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">deal_with_da_bonds </font> </th> </tr> <tr> <td> <font color="#000088"><pre> deal_with_da_bonds ( self ) </pre></font> <p>deal with donor-acceptor bonds, this fixes mostly boron containing compounds</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_layer ( self, prefix ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_number_of_hydrogens_in_hydrogen_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_number_of_hydrogens_in_hydrogen_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_number_of_hydrogens_in_hydrogen_layer ( self ) </pre></font> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Exceptions">Exceptions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> oasa_not_implemented_error( "INChI", "multiple compound systems are not supported by the library" )<br> </td></tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_structure"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_structure </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_structure ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="process_forced_charges"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">process_forced_charges </font> </th> </tr> <tr> <td> <font color="#000088"><pre> process_forced_charges ( self ) </pre></font> <p>this marks the charges that are forced by the connectivity and thus helps process zwitrions</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_charge_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_charge_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_charge_layer ( self ) </pre></font> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Exceptions">Exceptions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> oasa_exceptions.oasa_inchi_error( "The molecular charge could not be allocated to any atom (%d)." % charge )<br> </td></tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_connectivity_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_connectivity_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_connectivity_layer ( self ) </pre></font> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Exceptions">Exceptions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> ValueError, "unexpected character %s in the connectivity layer" % c<br> </td></tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_hydrogen_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_hydrogen_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_hydrogen_layer ( self, run=0 ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_inchi"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_inchi </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_inchi ( self, text ) </pre></font> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Exceptions">Exceptions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> oasa_inchi_error( "Localization of bonds, charges or movable hydrogens failed" )<br> </td></tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_p_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_p_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_p_layer ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_sum_layer"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_sum_layer </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_sum_layer ( self ) </pre></font> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Exceptions">Exceptions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> oasa_not_implemented_error( "INChI", "multiple compound systems are not supported by the library" )<br> </td></tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="set_structure"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">set_structure </font> </th> </tr> <tr> <td> <font color="#000088"><pre> set_structure ( self, structure ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="split_layers"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">split_layers </font> </th> </tr> <tr> <td> <font color="#000088"><pre> split_layers ( self, text ) </pre></font> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Exceptions">Exceptions</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> "no '%s' tag found in xml string" % name<br> "no structures found in xml string %s" % text<br> </td></tr> </table> </td></tr> </td></tr> </table> </td> </tr> </table> <hr> <p><i><a href="../../../../index.html">Table of Contents</a></i></p> <font size="-2"><i>This document was automatically generated on Tue Dec 12 13:46:43 2006 by <a href="http://happydoc.sourceforge.net">HappyDoc</a> version 2.1</i></font> </body> </html>