Home > tutorial > tutorial2.m

tutorial2

PURPOSE ^

tutorial2

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 tutorial2
   This exercise deals with the a small glycolysis model in RAVEN
   compatible Excel format and shows the most basic aspects of the
   stoichiometric modelling. It is shown how to build a simple model from
   scratch, set parameters and perform simple simulations.
   See Tutorial 2 in "RAVEN tutorials.docx" for more details.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % tutorial2
0002 %   This exercise deals with the a small glycolysis model in RAVEN
0003 %   compatible Excel format and shows the most basic aspects of the
0004 %   stoichiometric modelling. It is shown how to build a simple model from
0005 %   scratch, set parameters and perform simple simulations.
0006 %   See Tutorial 2 in "RAVEN tutorials.docx" for more details.
0007 
0008 %Import the Excel model into a RAVEN model structure
0009 smallModel=importExcelModel('empty.xlsx');
0010 
0011 %This solves the linear programming problem.
0012 %NOTE: if sol.f is equal to zero then the problem is not solvable. Ensure
0013 %that uptake and excretion of all necessary stuff are added to the model
0014 %and run the solveLP again.
0015 sol=solveLP(smallModel);
0016 
0017 %Print the resulting exchange fluxes
0018 printFluxes(smallModel,sol.x,true);
0019 
0020 %Print all fluxes
0021 printFluxes(smallModel,sol.x,false,10^-5,[],'%rxnID (%rxnName):\n\t%eqn\n\t%flux\n');

Generated by m2html © 2005