-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputClass.py
More file actions
44 lines (39 loc) · 1.15 KB
/
Copy pathinputClass.py
File metadata and controls
44 lines (39 loc) · 1.15 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
class Input:
transcript = ""
snippetrefers = ""
firstwildtype = ""
lastwildtype = ""
protein = ""
position = ""
aa1 = ""
aa2 = ""
alteration = ""
nameofalteration = ""
gene = ""
insertedbase = ""
newbase = ""
def create_post(self):
if self.site == "mutationtaster" :
values = {"transcript" : self.transcript,
"snippetRefers" : self.snippetRefers,
"alteration": self.alteration,
"alterName": self.alterName,
}
if self.site == "polyphen":
values = {"protein": self.protein,
"position" : self.position,
"AA1" : self.AA1,
"AA2" : self.AA2,
}
return values
"""
def __init__(self,transcript,snippetRefers,alteration,alterName,protein,position,AA1,AA2):
self.transcript = transcript
self.snippetRefers = snippetRefers
self.alteration = alteration
self.alterName = alterName
self.protein = protein
self.position = position
self.AA1 = AA1
self.AA2 = AA2
"""