PEATDB/plugins/KineticsAnalysis.py
def combineKcatProjects(self):
        """put kcats, kms and kcats/kms for all variants into single projects"""
        print 'creating kcat/km projects..'
        Ekcats = EkinProject()
        Ekms = EkinProject()
        Ekcatskms = EkinProject()
        Ekslopes = EkinProject()
        required = self.required
        runs = self.runs
        kd = {'Kcat':Ekcats, 'Km':Ekms, 'Kcat/Km':Ekcatskms, 'Slope@0.025':Ekslopes}
        for name in required:
            for r in runs:
                E = EkinProject()
                E.openProject(os.path.join(self.path, name.replace(' ','')+'_'+str(r)))
                for k in kd:
                    edata = E.getDataset(k)
                    fdata = E.getFitData(k)
                    kd[k].insertDataset(edata, name+'_'+str(r))
                    kd[k].setFitData(name+'_'+str(r), fdata)

                #estimating exp error for fit in kcats
                ferrs= Ekcats.estimateExpUncertainty(name+'_'+str(r), runs=5)
                Ekcats.addMeta(name+'_'+str(r), 'exp_errors', ferrs)

        Ekcats.saveProject(os.path.join(self.path, 'kcats'))
        Ekms.saveProject(os.path.join(self.path, 'kms'))
        Ekcatskms.saveProject(os.path.join(self.path, 'kcats_kms'))
        Ekslopes.saveProject(os.path.join(self.path, 'kslopes'))
        self.Ekcats = Ekcats
        return Ekcats, Ekms, Ekcatskms, Ekslopes
put kcats, kms and kcats/kms for all variants into single projects
put kcats, kms and kcats/kms for all variants into single projects
put kcats kms and kcats / kms for all variants into single projects
def combineKcatProjects(self):
        print 'creating kcat/km projects..'
        Ekcats = EkinProject()
        Ekms = EkinProject()
        Ekcatskms = EkinProject()
        Ekslopes = EkinProject()
        required = self.required
        runs = self.runs
        kd = {'Kcat':Ekcats, 'Km':Ekms, 'Kcat/Km':Ekcatskms, 'Slope@0.025':Ekslopes}
        for name in required:
            for r in runs:
                E = EkinProject()
                E.openProject(os.path.join(self.path, name.replace(' ','')+'_'+str(r)))
                for k in kd:
                    edata = E.getDataset(k)
                    fdata = E.getFitData(k)
                    kd[k].insertDataset(edata, name+'_'+str(r))
                    kd[k].setFitData(name+'_'+str(r), fdata)
                ferrs= Ekcats.estimateExpUncertainty(name+'_'+str(r), runs=5)
                Ekcats.addMeta(name+'_'+str(r), 'exp_errors', ferrs)
        Ekcats.saveProject(os.path.join(self.path, 'kcats'))
        Ekms.saveProject(os.path.join(self.path, 'kms'))
        Ekcatskms.saveProject(os.path.join(self.path, 'kcats_kms'))
        Ekslopes.saveProject(os.path.join(self.path, 'kslopes'))
        self.Ekcats = Ekcats
        return Ekcats, Ekms, Ekcatskms, Ekslopes
def combineKcatProjects ( self ) : print 'creating kcat/km projects..' Ekcats = EkinProject ( ) Ekms = EkinProject ( ) Ekcatskms = EkinProject ( ) Ekslopes = EkinProject ( ) required = self . required runs = self . runs kd = { 'Kcat' : Ekcats , 'Km' : Ekms , 'Kcat/Km' : Ekcatskms , 'Slope@0.025' : Ekslopes } for name in required : for r in runs : E = EkinProject ( ) E . openProject ( os . path . join ( self . path , name . replace ( ' ' , '' ) + '_' + str ( r ) ) ) for k in kd : edata = E . getDataset ( k ) fdata = E . getFitData ( k ) kd [ k ] . insertDataset ( edata , name + '_' + str ( r ) ) kd [ k ] . setFitData ( name + '_' + str ( r ) , fdata ) ferrs = Ekcats . estimateExpUncertainty ( name + '_' + str ( r ) , runs = 5 ) Ekcats . addMeta ( name + '_' + str ( r ) , 'exp_errors' , ferrs ) Ekcats . saveProject ( os . path . join ( self . path , 'kcats' ) ) Ekms . saveProject ( os . path . join ( self . path , 'kms' ) ) Ekcatskms . saveProject ( os . path . join ( self . path , 'kcats_kms' ) ) Ekslopes . saveProject ( os . path . join ( self . path , 'kslopes' ) ) self . Ekcats = Ekcats return Ekcats , Ekms , Ekcatskms , Ekslopes
put kcats, kms and kcats/kms for all variants into single projects
put kcats kms and kcats / kms for all variants into single projects
"""put kcats, kms and kcats/kms for all variants into single projects""" #estimating exp error for fit in kcats
self