-
Notifications
You must be signed in to change notification settings - Fork 17
/
constants.py
68 lines (58 loc) · 3.67 KB
/
constants.py
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
58
59
60
61
62
63
64
65
66
67
68
""" Some useful constants used throughout codebase """
DATASETS = {"avgfp": {"ds_name": "avgfp",
"ds_dir": "data/avgfp",
"ds_fn": "data/avgfp/avgfp.tsv",
"wt_aa": "SKGEELFTGVVPILVELDGDVNGHKFSVSGEGEGDATYGKLTLKFICTTGKLPVPWPTL"
"VTTLSYGVQCFSRYPDHMKQHDFFKSAMPEGYVQERTIFFKDDGNYKTRAEVKFEGDTL"
"VNRIELKGIDFKEDGNILGHKLEYNYNSHNVYIMADKQKNGIKVNFKIRHNIEDGSVQL"
"ADHYQQNTPIGDGPVLLPDNHYLSTQSALSKDPNEKRDHMVLLEFVTAAGITHGMDELYK",
"wt_ofs": 0,
"pdb_fn": "data/avgfp/avgfp_rosetta_model.pdb"},
"avgfp_metl": {"ds_name": "avgfp_metl",
"ds_dir": "data/avgfp_metl",
"ds_fn": "data/avgfp_metl/avgfp.tsv",
"wt_aa": "SKGEELFTGVVPILVELDGDVNGHKFSVSGEGEGDATYGKLTLKFICTTGKLPVPWPTL"
"VTTLSYGVQCFSRYPDHMKQHDFFKSAMPEGYVQERTIFFKDDGNYKTRAEVKFEGDTL"
"VNRIELKGIDFKEDGNILGHKLEYNYNSHNVYIMADKQKNGIKVNFKIRHNIEDGSVQL"
"ADHYQQNTPIGDGPVLLPDNHYLSTQSALSKDPNEKRDHMVLLEFVTAAGITHGMDELYK",
"wt_ofs": 0,
"pdb_fn": "data/avgfp/avgfp_rosetta_model.pdb"},
"bgl3": {"ds_name": "bgl3",
"ds_dir": "data/bgl3",
"ds_fn": "data/bgl3/bgl3.tsv",
"wt_aa": "MVPAAQQTAMAPDAALTFPEGFLWGSATASYQIEGAAAEDGRTPSIWDTYARTPGRVRNGDTGDVAT"
"DHYHRWREDVALMAELGLGAYRFSLAWPRIQPTGRGPALQKGLDFYRRLADELLAKGIQPVATLYHWD"
"LPQELENAGGWPERATAERFAEYAAIAADALGDRVKTWTTLNEPWCSAFLGYGSGVHAPGRTDPVAALR"
"AAHHLNLGHGLAVQALRDRLPADAQCSVTLNIHHVRPLTDSDADADAVRRIDALANRVFTGPMLQGAYP"
"EDLVKDTAGLTDWSFVRDGDLRLAHQKLDFLGVNYYSPTLVSEADGSGTHNSDGHGRSAHSPWPGADRVA"
"FHQPPGETTAMGWAVDPSGLYELLRRLSSDFPALPLVITENGAAFHDYADPEGNVNDPERIAYVRDHLAAV"
"HRAIKDGSDVRGYFLWSLLDNFEWAHGYSKRFGAVYVDYPTGTRIPKASARWYAEVARTGVLPTAGDPNSSS"
"VDKLAAALEHHHHHH",
"wt_ofs": 0,
"pdb_fn": "data/bgl3/bgl3_rosetta_model.pdb"},
"gb1": {"ds_name": "gb1",
"ds_dir": "data/gb1",
"ds_fn": "data/gb1/gb1.tsv",
"wt_aa": "MQYKLILNGKTLKGETTTEAVDAATAEKVFKQYANDNGVDGEWTYDDATKTFTVTE",
"wt_ofs": 0,
"pdb_fn": "data/gb1/2qmt.pdb"},
"pab1": {"ds_name": "pab1",
"ds_dir": "data/pab1",
"ds_fn": "data/pab1/pab1.tsv",
"wt_aa": "GNIFIKNLHPDIDNKALYDTFSVFGDILSSKIATDENGKSKGFGFVHFEEEGAAKEAIDALNGMLLNGQEIYVAP",
"wt_ofs": 126,
"pdb_fn": "data/pab1/pab1_rosetta_model.pdb"},
"ube4b": {"ds_name": "ube4b",
"ds_dir": "data/ube4b",
"ds_fn": "data/ube4b/ube4b.tsv",
"wt_aa": "IEKFKLLAEKVEEIVAKNARAEIDYSDAPDEFRDPLMDTLMTDPVRLP"
"SGTVMDRSIILRHLLNSPTDPFNRQMLTESMLEPVPELKEQIQAWMREKQSSDH",
"wt_ofs": 0,
"pdb_fn": "data/ube4b/ube4b_rosetta_model.pdb"}}
# list of chars that can be encountered in any sequence
CHARS = ["*", "A", "C", "D", "E", "F", "G", "H", "I", "K", "L",
"M", "N", "P", "Q", "R", "S", "T", "V", "W", "Y"]
# number of chars
NUM_CHARS = 21 # len(CHARS)
# dictionary mapping chars->int
C2I_MAPPING = {c: i for i, c in enumerate(CHARS)}