Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::SCOP::Scop::write_hie_sql (   self,

Write HIE data to SQL database

Definition at line 459 of file __init__.py.

00459                                    :
        """Write HIE data to SQL database"""
        cur = handle.cursor()

        cur.execute("DROP TABLE IF EXISTS hie")
        cur.execute("CREATE TABLE hie (parent INT, child INT, PRIMARY KEY (child),\
        INDEX (parent) )")

        for p in self._sunidDict.values():
            for c in p.children:
                cur.execute("INSERT INTO hie VALUES (%s,%s)" % (p.sunid, c.sunid))

    def write_cla_sql(self, handle):

Generated by  Doxygen 1.6.0   Back to index