PEATDB/plugins/PEATSAplugin.py
def mergeTable(self, main=False):
        """Send a matrix to the peat main table or labbook sheet 
           by merging matching mutations.
           Requires that one field in the table stores compatible 
           mutant format supported by PEATSA"""
        if main == False:
            try:
                name = self.labboklist.getcurselection()[0]
            except:
                print 'no name selected'
                return

        if main == True:
            for m in self.matrices:            
                matrix = self.matrices[m]
                if matrix == None: continue            
                M = self.parent.tablemodel
                M = self.mergeMatrix(matrix, M)
                self.parent.updateTable()
        else:
            M = self.DB.getLabbookSheet(name)
            for m in self.matrices:            
                matrix = self.matrices[m]
                if matrix == None: continue            
                M = self.mergeMatrix(matrix, M)
                if M != None:
                    self.DB.createLabbookSheet(name, M)
                    self.parent.startLabbook('ALL')
        return
Send a matrix to the peat main table or labbook sheet 
           by merging matching mutations.
           Requires that one field in the table stores compatible 
           mutant format supported by PEATSA
Send a matrix to the peat main table or labbook sheet
by merging matching mutations.
Requires that one field in the table stores compatible
mutant format supported by PEATSA
Send a matrix to the peat main table or labbook sheet by merging matching mutations . Requires that one field in the table stores compatible mutant format supported by PEATSA
def mergeTable(self, main=False):
        if main == False:
            try:
                name = self.labboklist.getcurselection()[0]
            except:
                print 'no name selected'
                return
        if main == True:
            for m in self.matrices:            
                matrix = self.matrices[m]
                if matrix == None: continue            
                M = self.parent.tablemodel
                M = self.mergeMatrix(matrix, M)
                self.parent.updateTable()
        else:
            M = self.DB.getLabbookSheet(name)
            for m in self.matrices:            
                matrix = self.matrices[m]
                if matrix == None: continue            
                M = self.mergeMatrix(matrix, M)
                if M != None:
                    self.DB.createLabbookSheet(name, M)
                    self.parent.startLabbook('ALL')
        return
def mergeTable ( self , main = False ) : if main == False : try : name = self . labboklist . getcurselection ( ) [ 0 ] except : print 'no name selected' return if main == True : for m in self . matrices : matrix = self . matrices [ m ] if matrix == None : continue M = self . parent . tablemodel M = self . mergeMatrix ( matrix , M ) self . parent . updateTable ( ) else : M = self . DB . getLabbookSheet ( name ) for m in self . matrices : matrix = self . matrices [ m ] if matrix == None : continue M = self . mergeMatrix ( matrix , M ) if M != None : self . DB . createLabbookSheet ( name , M ) self . parent . startLabbook ( 'ALL' ) return
Send a matrix to the peat main table or labbook sheet
by merging matching mutations.
Send a matrix to the peat main table or labbook sheet by merging matching mutations .
"""Send a matrix to the peat main table or labbook sheet 
           by merging matching mutations.
           Requires that one field in the table stores compatible 
           mutant format supported by PEATSA"""
self
main