-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamino_dict.py
More file actions
57 lines (49 loc) · 1.22 KB
/
Copy pathamino_dict.py
File metadata and controls
57 lines (49 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# REQUIRED DICTIONARY.
one_letter ={'VAL':'V', 'ILE':'I', 'LEU':'L', 'GLU':'E', 'GLN':'Q', \
'ASP':'D', 'ASN':'N', 'HIS':'H', 'TRP':'W', 'PHE':'F', 'TYR':'Y', \
'ARG':'R', 'LYS':'K', 'SER':'S', 'THR':'T', 'MET':'M', 'ALA':'A', \
'GLY':'G', 'PRO':'P', 'CYS':'C'}
def replace_all(text, dic):
for i, j in dic.items():
text = text.replace(i, j)
return text
amino = ['V','I','L','E','Q','D','N','H','W','F','Y','R','K','S','T','M','A','G','P','C']
# AEI Reduced Amino Acid Representation used by Wang and Wang.
Red_Wang = {
'C':'i', 'M':'i',
'F':'i', 'I':'i',
'L':'i', 'V':'i',
'W':'i', 'Y':'i',
'A':'a', 'T':'a',
'H':'a', 'G':'a',
'P':'a', 'R':'a',
'D':'e', 'E':'e',
'S':'e', 'N':'e',
'Q':'e', 'K':'e'
}
# EIS Reduced Amino Acid Representation used by Li et. al.
Red_Li = {
'C':'i', 'F':'i',
'Y':'i', 'W':'i',
'M':'i', 'L':'i',
'I':'i', 'V':'i',
'G':'s', 'P':'s',
'A':'s', 'T':'s',
'S':'s', 'N':'e',
'H':'e', 'Q':'e',
'E':'e', 'D':'e',
'R':'e', 'K':'e'
}
# FLP Reduced Amino Acid Representation used by Vaisman group.
Red_Vaisman = {
'V':'f', 'A':'f',
'F':'f', 'I':'f',
'L':'f', 'P':'f',
'M':'f', 'G':'f',
'D':'l', 'E':'l',
'K':'l', 'R':'l',
'S':'p', 'T':'p',
'Y':'p', 'C':'p',
'N':'p', 'Q':'p',
'H':'p', 'W':'p'
}