Converting between AminoAcid Letter Codes

So I don’t have to write it again and again:

AALetterCode = {'ILE': 'I', 'GLN': 'Q', 'GLY': 'G', 'PHE': 'F',
                'GLU': 'E', 'CYS': 'C', 'ASP': 'D', 'SER': 'S',
                'LYS': 'K', 'PRO': 'P', 'ASN': 'N', 'A': 'ALA',
                'C': 'CYS', 'E': 'GLU', 'D': 'ASP', 'G': 'GLY',
                'F': 'PHE', 'I': 'ILE', 'H': 'HIS', 'K': 'LYS',
                'M': 'MET', 'L': 'LEU', 'N': 'ASN', 'Q': 'GLN',
                'P': 'PRO', 'S': 'SER', 'R': 'ARG', 'T': 'THR',
                'W': 'TRP', 'V': 'VAL', 'Y': 'TYR', 'TRP': 'W',
                'HIS': 'H', 'THR': 'T', 'ALA': 'A', 'MET': 'M',
                'LEU': 'L', 'ARG': 'R', 'VAL': 'V', 'TYR': 'Y'}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s