Skip to content

Commit

Permalink
Merge pull request #1397 from tpfau/FAQUp
Browse files Browse the repository at this point in the history
Update to FAQ (wrt load/readCbModel)
  • Loading branch information
laurentheirendt authored Nov 30, 2018
2 parents b199251 + 87de381 commit 4946d88
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/source/notes/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,25 @@ A comprehensive list of labels and their description for the issues and
pull requests is given
`here <https://opencobra.github.io/cobratoolbox/docs/labels.html>`__.

General
-------

After loading a model, I get errors when using it with toolbox functions. What can I do?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you used ``load('filename.mat')`` to load your model, you may encounter
unexpected errors. Please only use ``readCbModel('filename.mat')``. Many
models stored in a MATLAB format (.mat) contain outdated data structures, which
are no longer compatible with the COBRA Toolbox. The ``readCbModel()`` function
tries to convert these models to the current format and will inform you whether
this was successful or not.

If the ``readCbModel()`` call was unsuccessful, please use ``load`` again to
load your model struct and run ``verifyModel(model)`` to determine which fields
in the model are problematic. You can then either try to correct the fields,
or remove them, if they are not necessary for your analysis.

If this does not solve your problem, feel free to report an issue as described
`here <https://opencobra.github.io/cobratoolbox/docs/issueGuide.html>`__.

.. end-faq-marker

0 comments on commit 4946d88

Please sign in to comment.