Hello all,
I am having an apparent issue getting COBRA to read and load models while using testAll. solveCobraMILP and other functions involving reading or loading a model seem to be the common
I am running:
MATLAB R2015a (win64) on Windows 7
SBMLToolbox-4.1.0 - This was installed separately from the COBRA toolbox included version; the RunTest.m included with the program will run successfully in Matlab.
libSBML-5.11.0-libxml2-x64 - This was installed separately from the COBRA toolbox included version and is the specific Matlab build/install. I can not find a guide for the testing/verification of the installation of this in matlab.
Gurobi-6.0.2-win64 -Included examples solved as expected.
The version of COBRA Toolbox that I am using was obtained today from the Github repository.
After installation and running initCobraToolbox in matlab, I get the following:
LP solver set to gurobi5 successful
MILP solver set to gurobi5 successful
QP solver set to gurobi5 successful
MIQP solver set to gurobi5 successful
CB map output set to svg successful
-So, no apparent problems noted with Cobra not being able to read models.
Running testALL (and removing lines 62, 64, and 67 in CobraMILP.m, as they are more then likely typos), I get the following:
14 of 22 tests completed successfully.
Tests passed:
testBuildMPS
testDeletionStudy
testElementalBalance
testFBA
testFVA
testMOMA
testMaps
testModelManipulation
testOptKnock
testRobustnessAnalysis
testSampleCbModel
testgpSampler
testTissueModel
testpFBA
Tests not passed:
testGDLS
testGrowthExpMatch
sbmlTestModelToMat
testModels
testSBML
testDifferentLPSolvers
(These two tests below, I believe, will not work without Tomlab, and so are "normal" failures.)
testC13Fitting
testSolvers
The specific errors that I am getting for each failed test (not including the two normally failing tests) are the following:
testGDLS
Undefined function or variable "parameters".
Error in solveCobraMILP (line 155)
[solverParams.intTol, solverParams.relMipGapTol, solverParams.timeLimit, ...
Error in GDLS>fluxBalance (line 340)
solBiomass = solveCobraMILP(modelb);
Error in GDLS (line 131)
solution0 = fluxBalance(model,selTargetRxns);
Error in testGDLS (line 26)
[gdlsSolution] = GDLS(model, 'EX_succ(e)', 'minGrowth', 0.05, 'selectedRxns',
selectedRxns, 'maxKO', 5, 'nbhdsz', 3);
testGrowthExpMatch -This
will load the model and run through steps 1-3 outlined in the beginning
of the file. It will error at step 4 with the following:
Undefined function or variable "parameters".
Error in solveCobraMILP (line 155)
[solverParams.intTol, solverParams.relMipGapTol, solverParams.timeLimit, ...
Error in growthExpMatch (line 167)
solution = solveCobraMILP(MILPproblem);
Error in testGrowthExpMatch (line 58)
[solution]=growthExpMatch(model, KEGGFilename,'[c]', 1, d.dictionary);
testModels - I believe this one is a typo in the m-file, as
Matlab wants to load a directory that clearly would not be on my
computer. Unfortunately, I am not too clear or very proficient on Matlab
and the code itself in the beginning of this m-file to know why it is
or isn't using this directory compared to the Cobra Toolbox one and to make sure it is loading the correct one.
Error using cd
Cannot CD to
/home/rfleming/work/sbg-code/cobratoolbox_master/testing/testModels/m_model_collection
(Name is nonexistent or not a directory).
Error in testModels (line 209)
cd(destFolder)
testSBML
Undefined function or variable 'h'.
Error in convertSBMLToCobra (line 155)
close(h);
Error in readCbModel>readSBMLCbModel (line 184)
model = convertSBMLToCobra(modelSBML,defaultBound,compSymbolList,compNameList);
Error in readCbModel (line 134)
model = readSBMLCbModel(fileName,defaultBound,compSymbolList,compNameList);
Error in testSBML (line 17)
testModel = readCbModel('Ec_iJR904.xml');
When I specifically call readCbModel('Ec_iJR904.xml'), I get the following:
Undefined function or variable 'h'.
Error in convertSBMLToCobra (line 155)
close(h);
Error in readCbModel>readSBMLCbModel (line 184)
model = convertSBMLToCobra(modelSBML,defaultBound,compSymbolList,compNameList);
Error in readCbModel (line 134)
model = readSBMLCbModel(fileName,defaultBound,compSymbolList,compNameList);
testDifferentLPSolvers
Reference to non-existent field 'S'.
Error in testDifferentLPSolvers (line 53)
[m,n]=size(model.S);
sbmlTestModelToMat
Error using sbmlTestModelToMat (line 35)
Not enough input arguments.
All of these errors seem to be Matlab/Cobra having issues loading models, but I am not sure what the issue specifically is or how best to troubleshoot this. Any help would be appreciated!
Thanks,
Michael