Skip to content

Commit

Permalink
fix: anaerobicModel no rescale of biomass
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Nov 24, 2024
1 parent 1d4f14f commit a25d321
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions code/otherChanges/anaerobicModel.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function model = anaerobicModel(model,recalBiomassMW)
function model = anaerobicModel(model)
% anaerobicModel
% Constrains yeast-GEM to anaerobic conditions. By default yeast-GEM aims
% to represent aerobic metabolism (particulary with glucose as carbon
Expand All @@ -10,25 +10,13 @@
%
% Input:
% model model structure, which is aerobic by default
% recalBiomassMW logical, should the biomass molecular weight be
% recalculated before fitting it to 1 g/gDCW. This option
% requires COBRA Toolbox to be installed. (optional,
% default false, a precalculated value will instead be
% used)
%
% Output:
% model model structure, modified to match anaerobic conditions
%
% Usage: model = anaerobicModel(model)

if nargin<2
recalBiomassMW = false;
end

GAM = 55.2; % Remains unchanged, line can be removed
NGAM = 1; % 0.7 in aerobic, should it not remain unchanged?

model = changeGAM(model,GAM,NGAM);

%% Set environmental conditions
% Remove heme a from the cofactor pseudoreaction (part of biomass)
Expand Down Expand Up @@ -90,15 +78,4 @@

currCoeff = full(model.S(metIdx,bioIdx)); % Gather the current coefficients
model.S(metIdx,bioIdx) = currCoeff + [FADH2_prod; -FADH2_prod; -2*FADH2_prod];

%% Adjust Mw of biomass to 1000
% This function requires COBRA Toolbox to be installed.
if recalBiomassMW
Biomass_MW = computeMetFormulae(model,'metMwRange','s_0450','fillMets','none','printLevel',0);
else
% Default value, calculate for yeast-GEM 9.1.0
Biomass_MW = [954.343535827233, 954.343535827305];
end
model.S(:,bioIdx) = model.S(:,bioIdx)*1000/mean(Biomass_MW);
model.S(strcmp(model.mets,'s_0450'),bioIdx) = 1;
end

0 comments on commit a25d321

Please sign in to comment.