0001 function model = removeStandardKcat(model)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 stdEnzIdx = find(strcmpi(model.ec.enzymes, 'standard'));
0023 if ~isempty(stdEnzIdx)
0024 model.ec.genes(stdEnzIdx) = [];
0025 model.ec.enzymes(stdEnzIdx) = [];
0026 model.ec.mw(stdEnzIdx) = [];
0027 model.ec.sequence(stdEnzIdx) = [];
0028 if isfield(model.ec,'concs')
0029 model.ec.concs(stdEnzIdx) = [];
0030 end
0031 rxnEnzIdx = find(model.ec.rxnEnzMat(:,stdEnzIdx));
0032 model.ec.rxns(rxnEnzIdx) = [];
0033 model.ec.kcat(rxnEnzIdx) = [];
0034 model.ec.source(rxnEnzIdx) = [];
0035 model.ec.notes(rxnEnzIdx) = [];
0036 model.ec.eccodes(rxnEnzIdx) = [];
0037 model.ec.rxnEnzMat(:,stdEnzIdx) = [];
0038 model.ec.rxnEnzMat(rxnEnzIdx,:) = [];
0039 end
0040
0041
0042
0043 stdKcatIdx = find(strcmpi(model.ec.source, 'standard'));
0044 if ~isempty(stdKcatIdx)
0045 model.ec.source(stdKcatIdx) = {''};
0046 model.ec.kcat(stdKcatIdx) = 0;
0047 model = applyKcatConstraints(model,stdKcatIdx);
0048 end
0049
0050
0051 stdMetIdx = find(strcmpi(model.mets, 'prot_standard'));
0052 if ~isempty(stdMetIdx)
0053 model = removeMets(model,stdMetIdx,false,false,false,false);
0054 end
0055 stdProtEx = find(strcmpi(model.rxns, 'usage_prot_standard'));
0056 if ~isempty(stdProtEx)
0057 model = removeReactions(model,stdProtEx,false,false,false);
0058 end
0059 stdProtGene = find(strcmpi(model.genes, 'standard'));
0060 if ~isempty(stdProtGene)
0061 model = removeGenes(model,stdProtGene,false,false,false);
0062 end
0063 end