Exemplo n.º 1
0
 def atomize(self,ticket,xmlFile,atomize):
     reaction = 'config/reactionDefinitions.json'
     print ticket
     try:
         result = libsbml2bngl.readFromString(xmlFile,
                                              reaction,False,None,atomize)
         self.addToDict(ticket,result)
         print 'sucess',result
     except:
         self.addToDict(ticket,-5)
         print 'failure'
Exemplo n.º 2
0
 def atomize(self, bxmlFile,atomize=False,reaction='config/reactionDefinitions.json',species=None):
     counter = next_id()
     xmlFile = bxmlFile.data
     species = 'config/' + species
     reaction = 'config/reactionDefinitions.json'
     
     
     result = libsbml2bngl.readFromString(xmlFile,
                                          reaction,True,None,atomize)
     
     
     return result