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

importing ".omex" models #2104

Open
3 tasks done
Laminsecin opened this issue Dec 28, 2022 · 7 comments
Open
3 tasks done

importing ".omex" models #2104

Laminsecin opened this issue Dec 28, 2022 · 7 comments

Comments

@Laminsecin
Copy link

Laminsecin commented Dec 28, 2022

Hi,
I am using a genome-scale model and it's format is ".omex". Does anyone know how can I properly import the model in Matlab cobratoolbox?
I tried opening the file az a zip and importing the ".xml" file inside but there is an error with the met charges and the genes matrix is also missing.

I hereby confirm that I have:

  • Tried to solve the issue on my own
  • Retried to run my code with the latest version of The COBRA Toolbox
  • Checked that a similar issue has not already been opened
@rmtfleming
Copy link
Member

rmtfleming commented Jan 5, 2023 via email

@Laminsecin
Copy link
Author

Laminsecin commented Jan 5, 2023

Do you mean omix? https://www.omix-visualization.com

No sir it's a COMBINE archive format and here is the link to it: https://www.ebi.ac.uk/biomodels/MODEL2102050001#Files

@tpfau
Copy link
Contributor

tpfau commented Jan 5, 2023

As mentioned on the OMEX description, omex files should essentially be a zip format.
I would try open it with an some form of zip-tool (potentially changing the ending to .zip). THen there should be an sbml file in there, as described in the Article introducing omex:
https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-014-0369-z
This sbml should be importable via the readCbModel function

@Laminsecin
Copy link
Author

Thank you so much for your explanation.

@draeger
Copy link

draeger commented Jan 5, 2023

I successfully tried the following steps:

  1. Download the file again from BioModels
  2. Rename the file from iCGB21FR.omex to iCGB21FR.zip
  3. Unzip it and navigated inside the newly created folder, where the file iCGB21FR.xml (the SBML model) is located.
  4. Check that model file with the SBML validator.

The validator stated that it is entirely valid (just some warnings are issued, which can be safely ignored). The validator also recognizes it as a flux-balance constraints model. Consequently, it should run in a COBRA-compliant software. We tested it using COBRApy where it worked.

@Laminsecin
Copy link
Author

Dear Dr. Draeger,
Thanks for your kind respond. I actually just found out that I only face these errors in MATLAB COBRA toolbox version 2.
As I installed version 3, the model was correctly loaded.

@draeger
Copy link

draeger commented Jan 6, 2023

Excellent! I am glad this works now. In the longer term, adding direct support for the OMEX file format could be a valuable feature for COBRA Toolbox because it can ship Models, Figures, Data, Escher Maps, and much more, all bundled together.

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

4 participants