def __init__(self, m, sp_num):
        '''takes in a sbml and validates it'''
        self.m = m
        self.py_dot_graph = pydot.Dot(type='digraph', graph_name='graphName', \
         rankdir = "LR")
        self.add_edge = self.py_dot_graph.add_edge
        self.add_node = self.py_dot_graph.add_node
        DotNodes.__init__(self, m)

        self.sp_num = sp_num
        self.sp_id = self.m.getSpecies(sp_num - 1).getId()
    def __init__(self, m):
        '''
		m is a libsbml getModel file
		initialise a few short-cuts here
		'''
        self.m = m
        self.py_dot_graph = pydot.Dot(type='digraph', graph_name='graphName', \
         rankdir = "LR")
        self.add_edge = self.py_dot_graph.add_edge
        self.add_node = self.py_dot_graph.add_node
        DotNodes.__init__(self, m)
Example #3
0
	def	__init__(self, m, sp_num):
		'''takes in a sbml and validates it'''
		self.m = m
		self.py_dot_graph = pydot.Dot(type='digraph', graph_name='graphName', \
			rankdir = "LR")
		self.add_edge = self.py_dot_graph.add_edge
		self.add_node = self.py_dot_graph.add_node
		DotNodes.__init__(self, m)
		
		self.sp_num = sp_num
		self.sp_id = self.m.getSpecies(sp_num-1).getId()
Example #4
0
	def	__init__(self, m):
		'''
		m is a libsbml getModel file
		initialise a few short-cuts here
		'''
		self.m = m
		self.py_dot_graph = pydot.Dot(type='digraph', graph_name='graphName', \
			rankdir = "LR")
		self.add_edge = self.py_dot_graph.add_edge
		self.add_node = self.py_dot_graph.add_node
		DotNodes.__init__(self, m)
    def __init__(self, m, re_num):
        '''
		m is libsbml.getModel 
		re_num is the reaction to be visualised
		'''

        self.m = m
        self.py_dot_graph = pydot.Dot(type='digraph', graph_name='graphName', \
         rankdir = "LR")
        self.add_edge = self.py_dot_graph.add_edge
        self.add_node = self.py_dot_graph.add_node
        DotNodes.__init__(self, m)

        self.re_num = re_num
        self.re = self.m.getReaction(re_num - 1)

        DotNodes.__init__(self, m)
Example #6
0
	def	__init__(self, m, re_num):
		'''
		m is libsbml.getModel 
		re_num is the reaction to be visualised
		'''
		
		self.m = m
		self.py_dot_graph = pydot.Dot(type='digraph', graph_name='graphName', \
			rankdir = "LR")
		self.add_edge = self.py_dot_graph.add_edge
		self.add_node = self.py_dot_graph.add_node
		DotNodes.__init__(self, m)
		
		self.re_num = re_num
		self.re = self.m.getReaction(re_num-1)
		
		DotNodes.__init__(self, m)