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 (optional, default false) printWarnings true if warnings about model issues should be reported (optional, 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.
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 (optional, 0009 % default false) 0010 % printWarnings true if warnings about model issues should be reported 0011 % (optional, 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 fileName=char(fileName); 0020 outputFileName=char(outputFileName); 0021 if nargin<3 0022 toCOBRA=false; 0023 end 0024 if nargin<4 0025 printWarnings=true; 0026 end 0027 0028 model=importExcelModel(fileName,false,printWarnings); 0029 printModelStats(model,printWarnings,false); 0030 exportModel(model,outputFileName,toCOBRA,true); 0031 end