transformKEGG2Model

PURPOSE ^

translate the metabolites from KEGG to cobra model names

SYNOPSIS ^

function model = transformKEGG2Model(modelKEGG,dictionary)

DESCRIPTION ^

translate the metabolites from KEGG to cobra model names
   Detailed explanation goes here

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Thu 21-Jun-2012 15:39:23 by m2html © 2003