PEATDB/plugins/KineticsAnalysis.py
def comparedpKas(self):
        """predicted dpka vs. our crappy dpkas"""
        import matplotlib.pyplot as plt
        f= open('/enc/Novozymes/Data/Hwbb/jan/dpkas.csv')
        cw = csv.reader(f)
        predicted={}
        for r in cw:
            name = string.lower(r[0]+' '+r[1])
            predicted[name]=r[2]

        fig=plt.figure()
        ax=fig.add_subplot(111)
        for r in self.runs:
            xd=[];yd=[]
            for p in predicted:
                if p in self.dpkas[r]:
                    xd.append(self.dpkas[r][p])
                    yd.append(predicted[p])
            ax.plot(xd,yd,'x')
        ax.set_title('dpKas: fitted vs. predicted')
        ax.set_xlabel('fitted experimental')
        ax.set_ylabel('predicted')
        fig.savefig('dpkasvspredicted.png',dpi=100)
        return
predicted dpka vs. our crappy dpkas
predicted dpka vs. our crappy dpkas
predicted dpka vs . our crappy dpkas
def comparedpKas(self):
        import matplotlib.pyplot as plt
        f= open('/enc/Novozymes/Data/Hwbb/jan/dpkas.csv')
        cw = csv.reader(f)
        predicted={}
        for r in cw:
            name = string.lower(r[0]+' '+r[1])
            predicted[name]=r[2]
        fig=plt.figure()
        ax=fig.add_subplot(111)
        for r in self.runs:
            xd=[];yd=[]
            for p in predicted:
                if p in self.dpkas[r]:
                    xd.append(self.dpkas[r][p])
                    yd.append(predicted[p])
            ax.plot(xd,yd,'x')
        ax.set_title('dpKas: fitted vs. predicted')
        ax.set_xlabel('fitted experimental')
        ax.set_ylabel('predicted')
        fig.savefig('dpkasvspredicted.png',dpi=100)
        return
def comparedpKas ( self ) : import matplotlib . pyplot as plt f = open ( '/enc/Novozymes/Data/Hwbb/jan/dpkas.csv' ) cw = csv . reader ( f ) predicted = { } for r in cw : name = string . lower ( r [ 0 ] + ' ' + r [ 1 ] ) predicted [ name ] = r [ 2 ] fig = plt . figure ( ) ax = fig . add_subplot ( 111 ) for r in self . runs : xd = [ ] ; yd = [ ] for p in predicted : if p in self . dpkas [ r ] : xd . append ( self . dpkas [ r ] [ p ] ) yd . append ( predicted [ p ] ) ax . plot ( xd , yd , 'x' ) ax . set_title ( 'dpKas: fitted vs. predicted' ) ax . set_xlabel ( 'fitted experimental' ) ax . set_ylabel ( 'predicted' ) fig . savefig ( 'dpkasvspredicted.png' , dpi = 100 ) return
predicted dpka vs. our crappy dpkas
predicted dpka vs . our crappy dpkas
"""predicted dpka vs. our crappy dpkas"""
self