I wanted to report a SBMLToolbox bug (in 4.1), but unfortunately it is not possible to create a ticket in the SBMLToolbox section (see screenshot attached -> I am logged in SourceForge, but do not have the create ticket option). Here is the only option for me to create a ticket. So please move it to the SBMLToolbox section.
There is a problem in convertSBMLToCobra, if SBML models do not have kineticLaws (which is quit often the case, especially for FBA networks).
Error in convertSBMLToCobra (line 122)
parameters = modelSBML.reaction(i).kineticLaw.parameter;
Error in demo_example_1 (line 9)
[model] = convertSBMLToCobra(modelSBML, defaultBound);
The patch is:
% Bug Fix for SBML models without kinetic laws if isempty(modelSBML.reaction(i).kineticLaw) parameters = ; elseif isfield(modelSBML.reaction(i).kineticLaw,'parameter') parameters = modelSBML.reaction(i).kineticLaw.parameter; else parameters = ; end
Sorry for posting in the wrong section. Probably the settings for reporting tickets have to be changed, so that all logged in users can post and not only people in the group.