PEATDB/DNAtool/DNAtool.py
def check_primers(self):
        """Check that all primers are ok"""
        primer_keys=['sequence','description']
        if self.data.has_key('primer_dict'):
            for primer in self.data['primer_dict'].keys():
                for key in primer_keys:
                    if not self.data['primer_dict'][primer].has_key(key):
                        self.data['primer_dict'][primer][key]='None'
Check that all primers are ok
Check that all primers are ok
Check that all primers are ok
def check_primers(self):
        primer_keys=['sequence','description']
        if self.data.has_key('primer_dict'):
            for primer in self.data['primer_dict'].keys():
                for key in primer_keys:
                    if not self.data['primer_dict'][primer].has_key(key):
                        self.data['primer_dict'][primer][key]='None'
def check_primers ( self ) : primer_keys = [ 'sequence' , 'description' ] if self . data . has_key ( 'primer_dict' ) : for primer in self . data [ 'primer_dict' ] . keys ( ) : for key in primer_keys : if not self . data [ 'primer_dict' ] [ primer ] . has_key ( key ) : self . data [ 'primer_dict' ] [ primer ] [ key ] = 'None'
Check that all primers are ok
Check that all primers are ok
"""Check that all primers are ok"""
self