translate the metabolites from KEGG to cobra model names Detailed explanation goes here
0001 function model = transformKEGG2Model(modelKEGG,dictionary) 0002 %translate the metabolites from KEGG to cobra model names 0003 % Detailed explanation goes here 0004 if (nargin == 2) 0005 model = mapMetName2KEGGID(modelKEGG,dictionary); 0006 elseif(nargin ==1) 0007 model = modelKEGG; 0008 end 0009 0010 model.mets = model.metsAbr; 0011 %modelKEGG.mets = modelKEGG.KEGGID; 0012 0013 for i = 1: length(model.mets) 0014 if (isempty(model.mets{i})) 0015 model.mets(i)=model.KEGGID(i); 0016 end 0017 end 0018 0019 end 0020