PEATDB/plugins/KineticsAnalysis.py
def combinedSummary(self, sets=None, variants=None):
        """Put all results in one project and plot summary"""
        if sets == None:
            sets = self.sets
        setfiles=[]
        for s in sets:
            setfiles.append('set'+s+'.defs')
        if variants!=None:
            print ' doing variants', variants
        Ekcat=EkinProject()
        Ekcatkm=EkinProject()
        Ekm=EkinProject()
        Ekslopes=EkinProject()
        enzconcs={}
        templconcs = {}
        setindex = {}
        pathindex = {}
        conflict=[]
        for s in setfiles:
            self.parseDefs(s)
            E1=EkinProject()
            E2=EkinProject()
            E3=EkinProject()
            E4=EkinProject()
            E1.openProject(os.path.join(self.path, 'kcats'))
            E2.openProject(os.path.join(self.path, 'kcats_kms'))
            E3.openProject(os.path.join(self.path, 'kms'))
            E4.openProject(os.path.join(self.path, 'kslopes'))
            Ekcat.addProject(E1)
            Ekcatkm.addProject(E2)
            Ekm.addProject(E3)
            Ekslopes.addProject(E4)
            try:
                enz,templ=self.readEnzymeConcs()
                templconcs.update(templ)
            except:
                enz = self.enzymeConcsfromTemplate()

            pathindex[self.setname] = self.path
            for v in self.variantnames:
                #if not v in enzconcs.keys():
                setindex[v] = self.setname

            for k in enz:
                if not k in enzconcs.keys():
                    enzconcs[k] = enz[k]
                else:
                    pass

        if variants == None:
            w=20
        else:
            w=int(math.sqrt(len(variants)))+2
        self.Summary(Ekcat, Ekcatkm, Ekm, Ekslopes, path=os.getcwd(), enzymeconcs=enzconcs,
                            title='all sets plot summary',
                            width=w, height=18, axeslimits=True,
                            setindex=setindex, variants=variants,
                            pathindex=pathindex)
        return
Put all results in one project and plot summary
Put all results in one project and plot summary
Put all results in one project and plot summary
def combinedSummary(self, sets=None, variants=None):
        if sets == None:
            sets = self.sets
        setfiles=[]
        for s in sets:
            setfiles.append('set'+s+'.defs')
        if variants!=None:
            print ' doing variants', variants
        Ekcat=EkinProject()
        Ekcatkm=EkinProject()
        Ekm=EkinProject()
        Ekslopes=EkinProject()
        enzconcs={}
        templconcs = {}
        setindex = {}
        pathindex = {}
        conflict=[]
        for s in setfiles:
            self.parseDefs(s)
            E1=EkinProject()
            E2=EkinProject()
            E3=EkinProject()
            E4=EkinProject()
            E1.openProject(os.path.join(self.path, 'kcats'))
            E2.openProject(os.path.join(self.path, 'kcats_kms'))
            E3.openProject(os.path.join(self.path, 'kms'))
            E4.openProject(os.path.join(self.path, 'kslopes'))
            Ekcat.addProject(E1)
            Ekcatkm.addProject(E2)
            Ekm.addProject(E3)
            Ekslopes.addProject(E4)
            try:
                enz,templ=self.readEnzymeConcs()
                templconcs.update(templ)
            except:
                enz = self.enzymeConcsfromTemplate()
            pathindex[self.setname] = self.path
            for v in self.variantnames:
                setindex[v] = self.setname
            for k in enz:
                if not k in enzconcs.keys():
                    enzconcs[k] = enz[k]
                else:
                    pass
        if variants == None:
            w=20
        else:
            w=int(math.sqrt(len(variants)))+2
        self.Summary(Ekcat, Ekcatkm, Ekm, Ekslopes, path=os.getcwd(), enzymeconcs=enzconcs,
                            title='all sets plot summary',
                            width=w, height=18, axeslimits=True,
                            setindex=setindex, variants=variants,
                            pathindex=pathindex)
        return
def combinedSummary ( self , sets = None , variants = None ) : if sets == None : sets = self . sets setfiles = [ ] for s in sets : setfiles . append ( 'set' + s + '.defs' ) if variants != None : print ' doing variants' , variants Ekcat = EkinProject ( ) Ekcatkm = EkinProject ( ) Ekm = EkinProject ( ) Ekslopes = EkinProject ( ) enzconcs = { } templconcs = { } setindex = { } pathindex = { } conflict = [ ] for s in setfiles : self . parseDefs ( s ) E1 = EkinProject ( ) E2 = EkinProject ( ) E3 = EkinProject ( ) E4 = EkinProject ( ) E1 . openProject ( os . path . join ( self . path , 'kcats' ) ) E2 . openProject ( os . path . join ( self . path , 'kcats_kms' ) ) E3 . openProject ( os . path . join ( self . path , 'kms' ) ) E4 . openProject ( os . path . join ( self . path , 'kslopes' ) ) Ekcat . addProject ( E1 ) Ekcatkm . addProject ( E2 ) Ekm . addProject ( E3 ) Ekslopes . addProject ( E4 ) try : enz , templ = self . readEnzymeConcs ( ) templconcs . update ( templ ) except : enz = self . enzymeConcsfromTemplate ( ) pathindex [ self . setname ] = self . path for v in self . variantnames : setindex [ v ] = self . setname for k in enz : if not k in enzconcs . keys ( ) : enzconcs [ k ] = enz [ k ] else : pass if variants == None : w = 20 else : w = int ( math . sqrt ( len ( variants ) ) ) + 2 self . Summary ( Ekcat , Ekcatkm , Ekm , Ekslopes , path = os . getcwd ( ) , enzymeconcs = enzconcs , title = 'all sets plot summary' , width = w , height = 18 , axeslimits = True , setindex = setindex , variants = variants , pathindex = pathindex ) return
Put all results in one project and plot summary
Put all results in one project and plot summary
"""Put all results in one project and plot summary""" #if not v in enzconcs.keys():
self
sets
variants