SBMLFromExcel Converts a model in the Excel format to SBML fileName the Excel file outputFileName the SBML file toCOBRA true if the model should be saved in COBRA Toolbox format. Only limited support at the moment (opt, default false) printWarnings true if warnings about model issues should be reported (opt, default true) For a detailed description of the file format, see the supplied manual. Usage: SBMLFromExcel(fileName,outputFileName,toCOBRA,printWarnings) NOTE: This is just a wrapper function for importExcelModel, printModelStats and exportModel. Use those functions directly for greater control. Rasmus Agren, 2013-08-03
0001 function SBMLFromExcel(fileName, outputFileName,toCOBRA,printWarnings) 0002 % SBMLFromExcel 0003 % Converts a model in the Excel format to SBML 0004 % 0005 % fileName the Excel file 0006 % outputFileName the SBML file 0007 % toCOBRA true if the model should be saved in COBRA Toolbox 0008 % format. Only limited support at the moment (opt, 0009 % default false) 0010 % printWarnings true if warnings about model issues should be reported 0011 % (opt, default true) 0012 % 0013 % For a detailed description of the file format, see the supplied manual. 0014 % 0015 % Usage: SBMLFromExcel(fileName,outputFileName,toCOBRA,printWarnings) 0016 % 0017 % NOTE: This is just a wrapper function for importExcelModel, printModelStats 0018 % and exportModel. Use those functions directly for greater control. 0019 % 0020 % Rasmus Agren, 2013-08-03 0021 % 0022 0023 if nargin<3 0024 toCOBRA=false; 0025 end 0026 if nargin<4 0027 printWarnings=true; 0028 end 0029 0030 model=importExcelModel(fileName,false,printWarnings); 0031 printModelStats(model,printWarnings,false); 0032 exportModel(model,outputFileName,toCOBRA,true); 0033 end