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

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

Get ascendents using SQL backend

Definition at line 376 of file __init__.py.

00376                                              :
        """Get ascendents using SQL backend"""
        if nodeCodeOrder.index(type) >= nodeCodeOrder.index(node.type): return None

        cur = self.db_handle.cursor()
        cur.execute("SELECT "+type+" from cla WHERE "+node.type+"=%s", (node.sunid))
        result = cur.fetchone()
        if result is not None:
            return self.getNodeBySunid(result[0])
            return None

    def getDescendentsFromSQL(self, node, type):

Generated by  Doxygen 1.6.0   Back to index