Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with CONSERVED_MOIETIES calculation #268

Closed
matthiaskoenig opened this issue Jan 20, 2016 · 3 comments
Closed

Problem with CONSERVED_MOIETIES calculation #268

matthiaskoenig opened this issue Jan 20, 2016 · 3 comments

Comments

@matthiaskoenig
Copy link
Collaborator

When setting the the conserved moites load option the following model cannot be loaded any more. This worked without any problem for the model before.

import roadrunner
print(roadrunner.__version__)
!wget https://raw.githubusercontent.com/matthiaskoenig/multiscale-galactose/develop/python/multiscalepy/multiscale/examples/models/demo/Koenig_demo_10_annotated.xml -O test.xml

roadrunner.Config.setValue(roadrunner.Config.LOADSBMLOPTIONS_CONSERVED_MOIETIES, True)
r = roadrunner.RoadRunner("test.xml")
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-14-f3b417378487> in <module>()
      5 
      6 roadrunner.Config.setValue(roadrunner.Config.LOADSBMLOPTIONS_CONSERVED_MOIETIES, True)
----> 7 r = roadrunner.RoadRunner("test.xml")
      8 
      9 # r = roadrunner.RoadRunner("https://raw.githubusercontent.com/matthiaskoenig/multiscale-galactose/develop/python/multiscalepy/multiscale/examples/models/demo/Koenig_demo_10_annotated.xml")

/usr/local/lib/python2.7/dist-packages/roadrunner/roadrunner.pyc in _new_init(self, *args)
   2632 
   2633     def _new_init(self, *args):
-> 2634         RoadRunner._swig_init(self, *args)
   2635         RoadRunner._makeProperties(self)
   2636 

/usr/local/lib/python2.7/dist-packages/roadrunner/roadrunner.pyc in __init__(self, *args)
   1898     __getattr__ = lambda self, name: _swig_getattr(self, RoadRunner, name)
   1899     def __init__(self, *args):
-> 1900         this = _roadrunner.new_RoadRunner(*args)
   1901         try: self.this.append(this)
   1902         except: self.this = this

RuntimeError: error converting document to conserved moieties, at rrllvm::ModelGeneratorContext::ModelGeneratorContext(const string&, unsigned int)
@0u812
Copy link
Member

0u812 commented Jan 29, 2016

Our bundled version of libSBML doesn't support fbc version 2 and it doesn't have the logic to convert the document even though you have fbc:required="false" in your SBML. Apart from that, roadrunner was throwing away the fbc namespace, which I fixed (so now you can use fbc version 1 in the SBML). 1/2 way there. I'll add a separate issue for upgrading the bundled libSBML.

@0u812 0u812 closed this as completed in 1f764b8 Jan 29, 2016
@luciansmith
Copy link

For what it's worth, libsbml provides an fbc l2 to l1 converter (and the reverse).

@0u812
Copy link
Member

0u812 commented Jan 29, 2016

Updated sys-bio/libroadrunner-deps to libSBML 5.12.0 (sys-bio/libroadrunner-deps#1). fbc version 2 support is available.

0u812 added a commit that referenced this issue Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants