Skip to content

Commit

Permalink
fix: anaerobic_flux_predictions readtable
Browse files Browse the repository at this point in the history
  • Loading branch information
edkerk committed Nov 24, 2024
1 parent a25d321 commit f774af4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion code/modelTests/anaerobic_flux_predictions.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function R2=anaerobic_flux_predictions(model)

fluxTable= readtable('../../data/physiology/flux_data_anaerobic.tsv');
fluxTable = readtable('../../data/physiology/flux_data_anaerobic.tsv','FileType','text');
fluxTable = table2cell(fluxTable);
vals_flux=fluxTable;
text_flux=fluxTable;
Expand Down
4 changes: 2 additions & 2 deletions code/modelTests/anaerobiosis.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
clear; close all
% Load the model and apply the corrections for *all* models
model = readYAMLmodel('../../model/yeast-GEM.yml');
cd('../modelCuration/')
v9_1_0;

Expand All @@ -9,10 +10,9 @@
%% Run growth tests
R2 = growth(model);

NLIM=0;
%% Convert to anaerobic
cd('../otherChanges/')
model = anaerobicModel(model,0);
model = anaerobicModel(model);

cd('../modelTests/');
%% flux predictions
Expand Down
6 changes: 2 additions & 4 deletions code/modelTests/growth.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,11 @@
model_origin = scaleBioMass(model_origin,'protein',0.289,'',false);
model_origin = scaleBioMass(model_origin,'lipid',0.048,'',false);
model_origin = scaleBioMass(model_origin,'RNA',0.077,'carbohydrate',false);
NLIM=1;
else
NLIM=0;

end

if mode1 == 2
model_origin = anaerobicModel(model_origin,NLIM);
model_origin = anaerobicModel(model_origin);
end
for i = 1:length(exp_data(:,1))
model_test= model_origin;
Expand Down
4 changes: 2 additions & 2 deletions code/otherChanges/anaerobicModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
% This function was updated as part of release v9.1.0.
%
% Input:
% model model structure, which is aerobic by default
% model yeast-GEM model structure, which is aerobic by default
%
% Output:
% model model structure, modified to match anaerobic conditions
Expand Down Expand Up @@ -69,7 +69,7 @@
% (2023) 10.1016/j.ymben.2024.01.007).
model = setParam(model,'eq',{'r_0659'},0);

%% Fumarate reductase is required for to recycle FADH2 dereived from
%% Fumarate reductase is required for to recycle FADH2 derived from
% disulphide bound formation in anaerobic conditions through Ero1 (Camarasa
% et al (2007) 10.1002/yea.1467; Kim et al (2018) 10.1038/s41467-018-07285-9).

Expand Down

0 comments on commit f774af4

Please sign in to comment.