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
53
54
55
56
57
# Python imports
from uuid import uuid4
# Third-party imports
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo
# Models imports
class LigandStatistics(StructuredNode):
'''
Defines node properties and relationships
Provides data serializer
'''
# Properties
uuid=StringProperty(unique_index=True, default=uuid4)
ligandomin=StringProperty()
mogulzbond=StringProperty()
ligandbmin=StringProperty()
mogulring=StringProperty()
moguldihe=StringProperty()
ligandbavg=StringProperty()
mogulangl=StringProperty()
mogulbond=StringProperty()
ligandbmax=StringProperty()
ligandid=StringProperty()
ligandomax=StringProperty()
ligandcc=StringProperty()
mogulzangl=StringProperty()
@property
def serialize(self):
'''
Serializer for node properties
'''
return {
'ligand_statistics_node_properties': {
"uuid": self.uuid,
'ligandomin': self.ligandomin,
'mogulzbond': self.mogulzbond,
'ligandbmin': self.ligandbmin,
'mogulring': self.mogulring,
'moguldihe': self.moguldihe,
'ligandbavg': self.ligandbavg,
'mogulangl': self.mogulangl,
'mogulbond': self.mogulbond,
'ligandbmax': self.ligandbmax,
'ligandid': self.ligandid,
'ligandomax': self.ligandomax,
'ligandcc': self.ligandcc,
'mogulzangl': self.mogulzangl,
},
}