Convert RECON .mat file to .sbml

204 views
Skip to first unread message

C b

unread,
Jul 14, 2021, 8:20:30 AM7/14/21
to cobra pie
Hi everyone,

My goal is to obtain a R graph object from RECON3 resources. My plan is to use COBRApy to convert the .mat file from RECON into a sbml file, and then use a R package that converts .sbml to R graph.

I have a virtual env, python 3.8.2, using Jupyter Notebook. Here is my code : 

from cobra.io import load_matlab_model, write_sbml_model

recon = load_matlab_model(".../Recon3D_301.mat")

Here is where I get the error : 

write_sbml_model(recon, "recon3d.xml")

Gives me this : 

LibSBML error code -3: The requested action could not be performed. This can occur in a variety of contexts, such as passing a null object as a parameter in a situation where it does not make sense to permit a null object.

Anyone can help me with this simple task ? I don't get it.
Thank you


Moritz Beber

unread,
Jul 26, 2021, 4:34:53 PM7/26/21
to cobr...@googlegroups.com
Hello,

Are you the same person who opened https://github.com/opencobra/cobrapy/issues/1104 ? Did that solve your problem?

Best regards,
Moritz
--
You received this message because you are subscribed to the Google Groups "cobra pie" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cobra-pie+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cobra-pie/6a781aa6-be01-4e1e-958c-3d341c92d1d4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages