PEATDB/plugins/KineticsAnalysis.py
def makekcatsHtml(self, E=None, dataname='kcats'):
        """make html page of pka vs. kcat plots per variant"""
        if E==None:
            E = EkinProject()
            E.openProject(os.path.join(self.path, dataname))
        ew = EkinWeb()
        images=[]
        required = self.required
        runs = self.runs
        path = os.path.join(self.path, 'plots')
        if not os.path.exists(path):
            os.mkdir(path)
        colnames=['run 1','run 2','run 3','all runs']
        for name in required:
            tmp=[]
            for r in runs:
                fname = os.path.join(path, name.replace(' ','')+str(r)+dataname+'.png')
                E.plotDatasets(datasets=name+'_'+str(r), filename=fname, showfitvars=True, dpi=50)
                images.append(os.path.basename(fname))
                tmp.append(name+'_'+str(r))
            fname = os.path.join(path, name.replace(' ','')+dataname+'.png')
            E.plotDatasets(datasets=tmp, filename=fname, plotoption=3, legend=True,
                                 dpi=60)
            images.append(os.path.basename(fname))
        ew.makeHtml(images, outfile=os.path.join(self.path, dataname+'.html'),
                            imgpath='plots', columns=4, title='set '+self.setname,
                            colheader=colnames, rowheader=required)
        return
make html page of pka vs. kcat plots per variant
make html page of pka vs. kcat plots per variant
make html page of pka vs . kcat plots per variant
def makekcatsHtml(self, E=None, dataname='kcats'):
        if E==None:
            E = EkinProject()
            E.openProject(os.path.join(self.path, dataname))
        ew = EkinWeb()
        images=[]
        required = self.required
        runs = self.runs
        path = os.path.join(self.path, 'plots')
        if not os.path.exists(path):
            os.mkdir(path)
        colnames=['run 1','run 2','run 3','all runs']
        for name in required:
            tmp=[]
            for r in runs:
                fname = os.path.join(path, name.replace(' ','')+str(r)+dataname+'.png')
                E.plotDatasets(datasets=name+'_'+str(r), filename=fname, showfitvars=True, dpi=50)
                images.append(os.path.basename(fname))
                tmp.append(name+'_'+str(r))
            fname = os.path.join(path, name.replace(' ','')+dataname+'.png')
            E.plotDatasets(datasets=tmp, filename=fname, plotoption=3, legend=True,
                                 dpi=60)
            images.append(os.path.basename(fname))
        ew.makeHtml(images, outfile=os.path.join(self.path, dataname+'.html'),
                            imgpath='plots', columns=4, title='set '+self.setname,
                            colheader=colnames, rowheader=required)
        return
def makekcatsHtml ( self , E = None , dataname = 'kcats' ) : if E == None : E = EkinProject ( ) E . openProject ( os . path . join ( self . path , dataname ) ) ew = EkinWeb ( ) images = [ ] required = self . required runs = self . runs path = os . path . join ( self . path , 'plots' ) if not os . path . exists ( path ) : os . mkdir ( path ) colnames = [ 'run 1' , 'run 2' , 'run 3' , 'all runs' ] for name in required : tmp = [ ] for r in runs : fname = os . path . join ( path , name . replace ( ' ' , '' ) + str ( r ) + dataname + '.png' ) E . plotDatasets ( datasets = name + '_' + str ( r ) , filename = fname , showfitvars = True , dpi = 50 ) images . append ( os . path . basename ( fname ) ) tmp . append ( name + '_' + str ( r ) ) fname = os . path . join ( path , name . replace ( ' ' , '' ) + dataname + '.png' ) E . plotDatasets ( datasets = tmp , filename = fname , plotoption = 3 , legend = True , dpi = 60 ) images . append ( os . path . basename ( fname ) ) ew . makeHtml ( images , outfile = os . path . join ( self . path , dataname + '.html' ) , imgpath = 'plots' , columns = 4 , title = 'set ' + self . setname , colheader = colnames , rowheader = required ) return
make html page of pka vs. kcat plots per variant
make html page of pka vs . kcat plots per variant
"""make html page of pka vs. kcat plots per variant"""
self
E
dataname