Skip to content

Commit

Permalink
adding a sily script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxrcon authored Aug 4, 2021
1 parent ada9f49 commit 7cc9304
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions get_mutations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# silly script for writing mutations from 2 proteins in a pretty way
# doens't work with indels

original = "QEHDG"
engenheirada = "ARNDG"


aminoacid_dict = {"A":"Ala",
"R":"Arg",
"N":"Asn",
"D":"Asp",
"C":"Cys",
"Q":"Gln",
"E":"Glu",
"G":"Gly",
"H":"His",
"I":"Ile",
"L":"Leu",
"K":"Lys",
"M":"Met",
"F":"Phe",
"P":"Pro",
"O":"Pyl",
"S":"Ser",
"U":"Sec",
"T":"Thr",
"W":"Trp",
"Y":"Tyr",
"V":"Val",
"B":"Asx",
"Z":"Glx",
"X":"Xaa",
"J":"Xle"}

for i in range(0, len(original)):
if original[i] != engenheirada[i]:
print(aminoacid_dict[original[i]]+str(i+1)+aminoacid_dict[engenheirada[i]])

0 comments on commit 7cc9304

Please sign in to comment.