Skip to content

Instantly share code, notes, and snippets.

@kentwait
Created July 13, 2022 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kentwait/8121a33fa5c2862f54a9b9b2beebe96d to your computer and use it in GitHub Desktop.
Save kentwait/8121a33fa5c2862f54a9b9b2beebe96d to your computer and use it in GitHub Desktop.
three_to_one_aa = {
'Ala': 'A',
'Arg': 'R',
'Asn': 'N',
'Asp': 'D',
'Asx': 'B',
'Cys': 'C',
'Glu': 'E',
'Gln': 'Q',
'Glx': 'Z',
'Gly': 'G',
'His': 'H',
'Ile': 'I',
'Leu': 'L',
'Lys': 'K',
'Met': 'M',
'Phe': 'F',
'Pro': 'P',
'Ser': 'S',
'Thr': 'T',
'Trp': 'W',
'Tyr': 'Y',
'Val': 'V',
}
one_to_three_aa = {v: k for k,v in three_to_one_aa.items()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment