Home > src > geckomat > kcat_sensitivity_analysis > Bayesian > addCarbonNum.m

addCarbonNum

PURPOSE ^

addCarbonNum

SYNOPSIS ^

function model = addCarbonNum(model)

DESCRIPTION ^

 addCarbonNum
   Adds a carbon number field to the model.

 Input:
   model           ecModel that was generated by makeEcModel, or loaded from
                   an earlier run. Not compatible with ecModels generated by
                   earlier GECKO versions (pre 3.0).
 Output:
   model           ecModel

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function model = addCarbonNum(model)
0002 % addCarbonNum
0003 %   Adds a carbon number field to the model.
0004 %
0005 % Input:
0006 %   model           ecModel that was generated by makeEcModel, or loaded from
0007 %                   an earlier run. Not compatible with ecModels generated by
0008 %                   earlier GECKO versions (pre 3.0).
0009 % Output:
0010 %   model           ecModel
0011 %
0012 
0013 % get carbonnum for each exchange rxn to further calculation of error
0014 model.excarbon = zeros(1,length(model.rxns));
0015 [EXrxn, EXrxnIdx] = getExchangeRxns(model);
0016 [CarbonNum,EXfors] = getcarbonnum(model,EXrxn);
0017 model.excarbon(EXrxnIdx) = CarbonNum;
0018 model.excarbon(strcmp(model.rxnNames,'growth')) = 41;
0019 
0020 end

Generated by m2html © 2005