PEATDB/PEATTables.py
def display_mutations(self,protein):
        """Display the mutations for this record as compared to the referece protein"""
        if self.parentapp == None:
            return 'NA'
        refprot=self.parentapp.refprotein.get()
        if refprot is None or not self.data.has_key(refprot):
            return 'NA'

        # Get the mutations
        DBi=self.parentapp.data['DBinstance']
        is_parent,operations=DBi.isparent(protein,refprot)
        operations=DBi.shorten_operations(operations)
        if is_parent:
            import string
            mut_text=string.join(operations,'+')
        else:
            mut_text='NA'
        return mut_text
Display the mutations for this record as compared to the referece protein
Display the mutations for this record as compared to the referece protein
Display the mutations for this record as compared to the referece protein
def display_mutations(self,protein):
        if self.parentapp == None:
            return 'NA'
        refprot=self.parentapp.refprotein.get()
        if refprot is None or not self.data.has_key(refprot):
            return 'NA'
        DBi=self.parentapp.data['DBinstance']
        is_parent,operations=DBi.isparent(protein,refprot)
        operations=DBi.shorten_operations(operations)
        if is_parent:
            import string
            mut_text=string.join(operations,'+')
        else:
            mut_text='NA'
        return mut_text
def display_mutations ( self , protein ) : if self . parentapp == None : return 'NA' refprot = self . parentapp . refprotein . get ( ) if refprot is None or not self . data . has_key ( refprot ) : return 'NA' DBi = self . parentapp . data [ 'DBinstance' ] is_parent , operations = DBi . isparent ( protein , refprot ) operations = DBi . shorten_operations ( operations ) if is_parent : import string mut_text = string . join ( operations , '+' ) else : mut_text = 'NA' return mut_text
Display the mutations for this record as compared to the referece protein
Display the mutations for this record as compared to the referece protein
"""Display the mutations for this record as compared to the referece protein""" # Get the mutations
self
protein