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
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