Skip to content
Snippets Groups Projects
ligandsfitting_model.py 604 B
Newer Older
root's avatar
root committed
# Python imports
root's avatar
root committed
from uuid import uuid4
root's avatar
root committed
# Third-party imports
from neomodel import StructuredNode, StringProperty, IntegerProperty, UniqueIdProperty, RelationshipTo, DateTimeProperty, BooleanProperty

class LigandsFitting(StructuredNode):
root's avatar
root committed
	"""
	Defines node properties and relationships
	Provides data serializer
	"""

	# Properties
	uuid=StringProperty(unique_index=True, default=uuid4)
	type=StringProperty()
root's avatar
root committed

	@property
	def serialize(self):

 		"""
 		Serializer for node properties
 		"""
root's avatar
root committed

 		return {
root's avatar
root committed
 		'ligands_fitting_node_properties': {
root's avatar
root committed
 		'uuid': self.uuid,
 		'type': self.type,
root's avatar
root committed
 		},
 		}