--------------------------------------------------------------------------- IOError Traceback (most recent call last) <ipython-input-37-bcb83ef302b7> in <module>() 2 from cobra.io.sbml import create_cobra_model_from_sbml_file 3 from cobra.io.sbml import write_cobra_model_to_sbml_file ----> 4 mod = load('BIOMD0000000172.xml') 5 sbml_out_file = 'BIOMD0000000172.out.xml' 6 sbml_level = 2 /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/lib/npyio.pyc in load(file, mmap_mode) 357 except: 358 raise IOError, \ --> 359 "Failed to interpret file %s as a pickle" % repr(file) 360 finally: 361 if own_fid: IOError: Failed to interpret file 'BIOMD0000000172.xml' as a pickle
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-33-059b0aadb530> in <module>() ----> 1 cobra_model = create_cobra_model_from_sbml_file(BIOMD0000000172.xml, print_time=True) NameError: name 'BIOMD0000000172' is not defined
Can you help me figure out how to solve these issues? Thanks so much
cobra_model.reactions.ATPase.objective_coefficient = 1.
And then check if you get some flux through the system.
I would also recommend that you read something like http://www.nature.com/nbt/journal/v28/n3/abs/nbt.1614.html to get up to speed with constraint-based modeling.
Check out http://sbrg.github.io/MASS-Toolbox/ if you actually want to simulate the model dynamically.
biomodels.net contains mostly ode and stochastic models of small size. Checkout bigg.ucsd.edu or http://metanetx.org/ for more suitable models.
Best,
Niko