titration_db/titdb.py
def showpKD(self):
        """Show pKD calcs with exp data for selected ekindata"""
        protein = self.form.getfirst('protein')
        col = self.form.getfirst('column')
        showopt = self.form.getfirst('option')

        self.showHeader(menu=1)
        sys.stdout.flush()
        DB = self.DB = self.connect()
        protname = DB[protein]['name']
        pdbid = DB[protein]['PDB_link']['text']
        expdata = DB[protein][col]
        if type(expdata) is types.StringType:
            print '<a>No data for column %s, go back and choose another nucleus..</a>' %col
            return

        P = pKDInterface()
        calcs, pkas, pdblines = P.loadfrompKD(pdbid)

        print '<div><a>Protein: %s PDB: %s </a><br>' %(protname, pdbid)
        print 'Column data: %s <p></div>' %col
        if calcs == None or not type(calcs) is types.DictType:
            print '<a>There are currently no pKD calculations for this protein.</a>'
            return
        else:
            print '<a>Found data on pKD server. We can plot.</a>'
            sys.stdout.flush()
        #plot them
        self.plotpKDCalcs(calcs, expdata, showopt)
        self.footer()
        return
Show pKD calcs with exp data for selected ekindata
Show pKD calcs with exp data for selected ekindata
Show pKD calcs with exp data for selected ekindata
def showpKD(self):
        protein = self.form.getfirst('protein')
        col = self.form.getfirst('column')
        showopt = self.form.getfirst('option')
        self.showHeader(menu=1)
        sys.stdout.flush()
        DB = self.DB = self.connect()
        protname = DB[protein]['name']
        pdbid = DB[protein]['PDB_link']['text']
        expdata = DB[protein][col]
        if type(expdata) is types.StringType:
            print '<a>No data for column %s, go back and choose another nucleus..</a>' %col
            return
        P = pKDInterface()
        calcs, pkas, pdblines = P.loadfrompKD(pdbid)
        print '<div><a>Protein: %s PDB: %s </a><br>' %(protname, pdbid)
        print 'Column data: %s <p></div>' %col
        if calcs == None or not type(calcs) is types.DictType:
            print '<a>There are currently no pKD calculations for this protein.</a>'
            return
        else:
            print '<a>Found data on pKD server. We can plot.</a>'
            sys.stdout.flush()
        self.plotpKDCalcs(calcs, expdata, showopt)
        self.footer()
        return
def showpKD ( self ) : protein = self . form . getfirst ( 'protein' ) col = self . form . getfirst ( 'column' ) showopt = self . form . getfirst ( 'option' ) self . showHeader ( menu = 1 ) sys . stdout . flush ( ) DB = self . DB = self . connect ( ) protname = DB [ protein ] [ 'name' ] pdbid = DB [ protein ] [ 'PDB_link' ] [ 'text' ] expdata = DB [ protein ] [ col ] if type ( expdata ) is types . StringType : print '<a>No data for column %s, go back and choose another nucleus..</a>' % col return P = pKDInterface ( ) calcs , pkas , pdblines = P . loadfrompKD ( pdbid ) print '<div><a>Protein: %s PDB: %s </a><br>' % ( protname , pdbid ) print 'Column data: %s <p></div>' % col if calcs == None or not type ( calcs ) is types . DictType : print '<a>There are currently no pKD calculations for this protein.</a>' return else : print '<a>Found data on pKD server. We can plot.</a>' sys . stdout . flush ( ) self . plotpKDCalcs ( calcs , expdata , showopt ) self . footer ( ) return
Show pKD calcs with exp data for selected ekindata
Show pKD calcs with exp data for selected ekindata
"""Show pKD calcs with exp data for selected ekindata""" #plot them
self