|
54 | 54 | load model.mat |
55 | 55 | model.b = zeros(length(model.mets),1); |
56 | 56 | cd ../../../ComplementaryScripts |
57 | | - ecModel_batch = substituteBiomassRxns(ecModel_batch); |
58 | | - model_modified = substituteBiomassRxns(model); |
| 57 | + model_modified = model; |
59 | 58 | %Allow any level of average enzyme saturaion (0 - 100%) |
60 | | - P_index = find(strcmpi(ecModel_batch.rxnNames,'prot_pool_exchange')); |
61 | | - ecModel_batch.ub(P_index) = 0.609*0.5; |
| 59 | + P_index = strcmpi(ecModel_batch.rxnNames,'prot_pool_exchange'); |
| 60 | + ecModel_batch.ub(P_index) = 0.593*0.5; |
62 | 61 | %Save models |
63 | 62 | cd ([modelsFolder, '/', folders{i}]) |
64 | 63 | save ('ecModel_batch.mat', 'ecModel_batch') |
|
80 | 79 | [EX_IDs,exc_Indexes] = getExchangeRxns(model_modified); |
81 | 80 | exchangeMets = {}; |
82 | 81 | for j=1:length(expIDs)-1 |
83 | | - metJ = find(strcmpi(model_modified.rxns,expIDs(j))); |
| 82 | + metJ = strcmpi(model_modified.rxns,expIDs(j)); |
84 | 83 | exchangeMets = [exchangeMets;... |
85 | 84 | model_modified.metNames(find(model_modified.S(:,metJ),1))]; |
86 | 85 | end |
|
95 | 94 | exc_ecModel =[]; |
96 | 95 | %Map each exchange rxn to ecModel_batch |
97 | 96 | for j=1:length(exc_Indexes) |
98 | | - indexes = []; |
99 | 97 | indexes = rxnMapping(EX_IDs{j},ecModel_batch,true); |
100 | 98 | if length(indexes)>1 |
101 | 99 | exc_ecModel = [exc_ecModel; ecMsol.x(indexes(1))-ecMsol.x(indexes(2))]; |
@@ -254,7 +252,7 @@ function plotDataPoints(Xvalues,Yvalues,color,direction) |
254 | 252 | %model = setBounds(model,GrowthIndx,value,ecFlag,true); |
255 | 253 | if ecFlag |
256 | 254 | Prot_biomass = fluxes(end); %Total protein content in biomass [g prot/g DW] |
257 | | - Prot_pool = fluxes(end)*0.5*0.75; %Amount of enzymes available for biochemical reactions |
| 255 | + Prot_pool = fluxes(end)*0.5*0.5; %Amount of enzymes available for biochemical reactions |
258 | 256 | model = rescaleBiomassProtein(model,Prot_pool,ecFlag); |
259 | 257 | end |
260 | 258 | %Glucose exchange bound |
@@ -324,10 +322,10 @@ function plotDataPoints(Xvalues,Yvalues,color,direction) |
324 | 322 | %-------------------------------------------------------------------------- |
325 | 323 | function model = rescaleBiomassProtein(model,Ptot,constrainPool) |
326 | 324 | if nargin <3 |
327 | | - gIndex = find(strcmpi(model.rxns,'HumanGrowth')); |
328 | | - protIndex = find(strcmpi(model.metNames,'proteinPool')); |
| 325 | + gIndex = find(strcmpi(model.rxns,'biomass_human')); |
| 326 | + protIndex = find(strcmpi(model.metNames,'protein_pool_biomass')); |
329 | 327 | coeff = model.S(protIndex,gIndex); %Extract coeff corresponding to 0.609 g Prot / g Biomass |
330 | | - newCoeff = coeff*Ptot/0.609; |
| 328 | + newCoeff = coeff*Ptot/0.593; |
331 | 329 | %Rescale stoichiometric coefficient of proteinPool in biomass equation |
332 | 330 | model.S(protIndex,gIndex) = newCoeff; |
333 | 331 | else |
|
0 commit comments