PEATDB/PEATApp.py
def format_protein_sequence(self,sequence):
        """ Returns a string containing the one-letter sequence"""
        if not sequence:
            return ''
        seq=''
        self.aa={'ALA':'A','CYS':'C','ASP':'D','GLU':'E','PHE':'F','GLY':'G','HIS':'H',
                'ILE':'I','LYS':'K','LEU':'L','MET':'M','ASN':'N','PRO':'P','GLN':'Q',
                'ARG':'R','SER':'S','THR':'T','VAL':'V','TRP':'W','TYR':'Y'}

        for resnum,restyp in sequence:
            if self.aa.has_key(restyp):
                seq=seq+self.aa[restyp]
            else:
                seq=seq+'?'
        return seq
 Returns a string containing the one-letter sequence
Returns a string containing the one-letter sequence
Returns a string containing the one - letter sequence
def format_protein_sequence(self,sequence):
        if not sequence:
            return ''
        seq=''
        self.aa={'ALA':'A','CYS':'C','ASP':'D','GLU':'E','PHE':'F','GLY':'G','HIS':'H',
                'ILE':'I','LYS':'K','LEU':'L','MET':'M','ASN':'N','PRO':'P','GLN':'Q',
                'ARG':'R','SER':'S','THR':'T','VAL':'V','TRP':'W','TYR':'Y'}
        for resnum,restyp in sequence:
            if self.aa.has_key(restyp):
                seq=seq+self.aa[restyp]
            else:
                seq=seq+'?'
        return seq
def format_protein_sequence ( self , sequence ) : if not sequence : return '' seq = '' self . aa = { 'ALA' : 'A' , 'CYS' : 'C' , 'ASP' : 'D' , 'GLU' : 'E' , 'PHE' : 'F' , 'GLY' : 'G' , 'HIS' : 'H' , 'ILE' : 'I' , 'LYS' : 'K' , 'LEU' : 'L' , 'MET' : 'M' , 'ASN' : 'N' , 'PRO' : 'P' , 'GLN' : 'Q' , 'ARG' : 'R' , 'SER' : 'S' , 'THR' : 'T' , 'VAL' : 'V' , 'TRP' : 'W' , 'TYR' : 'Y' } for resnum , restyp in sequence : if self . aa . has_key ( restyp ) : seq = seq + self . aa [ restyp ] else : seq = seq + '?' return seq
Returns a string containing the one-letter sequence
Returns a string containing the one - letter sequence
""" Returns a string containing the one-letter sequence"""
self
sequence