Skip to content

Instantly share code, notes, and snippets.

@ISDementyev
Last active August 13, 2021 18:15
Show Gist options
  • Save ISDementyev/1f9b247ba0c2af33b38af759d34489af to your computer and use it in GitHub Desktop.
Save ISDementyev/1f9b247ba0c2af33b38af759d34489af to your computer and use it in GitHub Desktop.
Residue dictionaries for one-letter and three-letter amino acid names
resdict = {"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"}
resdict_inv = {one_let: three_let for three_let, one_let in resdict.items()}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment