PEATDB/plugins/PEATSAplugin.py
def resubmitJob(self):
        """Resend a job based on new mutations in DB that are not in job already"""
        job, name = self.getJob()
        if job == None:
            return
        DB=self.DB       
        self.matrices = job.data.allMatrices()
        for m in matrices:
            matrix=matrices[m]
            if matrix==None: return
            muts = matrix.mutationCodes()
            dbmuts = [DB.get(p).Mutations for p in DB.getRecs()]
            newmuts = list(set(dbmuts) - set(muts))
            print 'the following mutations in the project are not in the job: %s' %newmuts
            
        '''self.submitJob(name=name,
                         pdb=pdb, pdbfile=pdbfile,
                         ligandfile=self.ligandfile,
                         mutations=newmuts,
                         calcs=calcs, meta={'expcol':expcol}) '''
        self.log.yview('moveto', 1)        
        return
Resend a job based on new mutations in DB that are not in job already
Resend a job based on new mutations in DB that are not in job already
Resend a job based on new mutations in DB that are not in job already
def resubmitJob(self):
        job, name = self.getJob()
        if job == None:
            return
        DB=self.DB       
        self.matrices = job.data.allMatrices()
        for m in matrices:
            matrix=matrices[m]
            if matrix==None: return
            muts = matrix.mutationCodes()
            dbmuts = [DB.get(p).Mutations for p in DB.getRecs()]
            newmuts = list(set(dbmuts) - set(muts))
            print 'the following mutations in the project are not in the job: %s' %newmuts
        self.log.yview('moveto', 1)        
        return
def resubmitJob ( self ) : job , name = self . getJob ( ) if job == None : return DB = self . DB self . matrices = job . data . allMatrices ( ) for m in matrices : matrix = matrices [ m ] if matrix == None : return muts = matrix . mutationCodes ( ) dbmuts = [ DB . get ( p ) . Mutations for p in DB . getRecs ( ) ] newmuts = list ( set ( dbmuts ) - set ( muts ) ) print 'the following mutations in the project are not in the job: %s' % newmuts '''self.submitJob(name=name,
                         pdb=pdb, pdbfile=pdbfile,
                         ligandfile=self.ligandfile,
                         mutations=newmuts,
                         calcs=calcs, meta={'expcol':expcol}) ''' self . log . yview ( 'moveto' , 1 ) return
Resend a job based on new mutations in DB that are not in job already
Resend a job based on new mutations in DB that are not in job already
"""Resend a job based on new mutations in DB that are not in job already""" '''self.submitJob(name=name,
                         pdb=pdb, pdbfile=pdbfile,
                         ligandfile=self.ligandfile,
                         mutations=newmuts,
                         calcs=calcs, meta={'expcol':expcol}) '''
self