Newer
Older
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
# Python imports
from uuid import uuid4
# Third-party imports
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo
# Models imports
class LigandSolutions(StructuredNode):
'''
Defines node properties and relationships
Provides data serializer
'''
# Properties
uuid=StringProperty(unique_index=True, default=uuid4)
closecontacts=StringProperty()
chain=StringProperty()
contactscore=IntegerProperty()
ligandstrain=IntegerProperty()
poorfit=StringProperty()
output=StringProperty()
correlationcoefficient=IntegerProperty()
rhofitscore=IntegerProperty()
solution_number=IntegerProperty()
@property
def serialize(self):
'''
Serializer for node properties
'''
return {
'ligand_solutions_node_properties': {
"uuid": self.uuid,
"closecontacts": self.closecontacts,
"rhofitscore": self.rhofitscore,
"chain": self.chain,
"correlationcoefficient": self.correlationcoefficient,
"output": self.output,
"ligandstrain": self.ligandstrain,
"poorfit": self.poorfit,
"contactscore": self.contactscore,
"solution_number": self.solution_number,
},
}