PEATDB/PEATApp.py
def remodelPEATModels(self):
        """Remodel current mutant sequences using ref protein"""
        if self.DB == None:
            return

        # Delete the temp models
        if getattr(self.DB,'3Dmodels', None):
            self.DB.tmp_3Dmodels={}

        c = self.createChildFrame()
        from Dialogs import PEATDialog

        Label(c, text='Construct Homology Models').pack(side=TOP,pady=4)
        o = self.createRecsOptsMenu(c)
        o.pack()
        doselectedvar=IntVar(); doselectedvar.set(0)
        c1=Frame(c); c1.pack(side=TOP,pady=4)
        Label(c1, text='Do selected only').pack(side=LEFT)
        Checkbutton(c1, variable=doselectedvar).pack(side=LEFT)
        pb=PEATDialog.createProgressBar(c)
        pb.frame.pack(padx=5,pady=5)
        def go():
            if doselectedvar.get() == True:
                sel = self.table.get_selectedRecordNames()
            else:
                sel = None
            self.stdout2Log()
            DBActions.checkModels(DB=self.DB,callback=pb.updateProgress,
                                    selected=sel)
            self.log2Stdout()
            self.updateTable()
        Button(c,text='Go',command=go).pack()
        self.log = self.createLogWin(c)
        #log.delete(1.0,END)
        self.log.pack(fill=BOTH,padx=4,pady=4)
        return
Remodel current mutant sequences using ref protein
Remodel current mutant sequences using ref protein
Remodel current mutant sequences using ref protein
def remodelPEATModels(self):
        if self.DB == None:
            return
        if getattr(self.DB,'3Dmodels', None):
            self.DB.tmp_3Dmodels={}
        c = self.createChildFrame()
        from Dialogs import PEATDialog
        Label(c, text='Construct Homology Models').pack(side=TOP,pady=4)
        o = self.createRecsOptsMenu(c)
        o.pack()
        doselectedvar=IntVar(); doselectedvar.set(0)
        c1=Frame(c); c1.pack(side=TOP,pady=4)
        Label(c1, text='Do selected only').pack(side=LEFT)
        Checkbutton(c1, variable=doselectedvar).pack(side=LEFT)
        pb=PEATDialog.createProgressBar(c)
        pb.frame.pack(padx=5,pady=5)
        def go():
            if doselectedvar.get() == True:
                sel = self.table.get_selectedRecordNames()
            else:
                sel = None
            self.stdout2Log()
            DBActions.checkModels(DB=self.DB,callback=pb.updateProgress,
                                    selected=sel)
            self.log2Stdout()
            self.updateTable()
        Button(c,text='Go',command=go).pack()
        self.log = self.createLogWin(c)
        self.log.pack(fill=BOTH,padx=4,pady=4)
        return
def remodelPEATModels ( self ) : if self . DB == None : return if getattr ( self . DB , '3Dmodels' , None ) : self . DB . tmp_3Dmodels = { } c = self . createChildFrame ( ) from Dialogs import PEATDialog Label ( c , text = 'Construct Homology Models' ) . pack ( side = TOP , pady = 4 ) o = self . createRecsOptsMenu ( c ) o . pack ( ) doselectedvar = IntVar ( ) ; doselectedvar . set ( 0 ) c1 = Frame ( c ) ; c1 . pack ( side = TOP , pady = 4 ) Label ( c1 , text = 'Do selected only' ) . pack ( side = LEFT ) Checkbutton ( c1 , variable = doselectedvar ) . pack ( side = LEFT ) pb = PEATDialog . createProgressBar ( c ) pb . frame . pack ( padx = 5 , pady = 5 ) def go ( ) : if doselectedvar . get ( ) == True : sel = self . table . get_selectedRecordNames ( ) else : sel = None self . stdout2Log ( ) DBActions . checkModels ( DB = self . DB , callback = pb . updateProgress , selected = sel ) self . log2Stdout ( ) self . updateTable ( ) Button ( c , text = 'Go' , command = go ) . pack ( ) self . log = self . createLogWin ( c ) self . log . pack ( fill = BOTH , padx = 4 , pady = 4 ) return
Remodel current mutant sequences using ref protein
Remodel current mutant sequences using ref protein
"""Remodel current mutant sequences using ref protein""" # Delete the temp models #log.delete(1.0,END)
self