-
Notifications
You must be signed in to change notification settings - Fork 1
/
F8.m
235 lines (204 loc) · 6.79 KB
/
F8.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
% %
%
%% (0) Initial setup.
% startup
clear, %close all
set_paths;
dbstop if error
% assays to run
setup.runSScanelas = 0;
setup.runGSvanHeerden = 0;
setup.plotResultsMode = 0; %30; %20; %10;
setup.conditionsSS = 0;
setup.conditionsGP = 0;
% model structure used
setup.biomass = 0; % biomass
setup.clamp10.Pi = 0;%1;
setup.clamp10.TRE = 0;%1;
setup.clamp10.NADX = 0;%1;
setup.clamp10.AXP = 0;%1;
setup.clamp10.IXP = 1;
setup.clamp10.UDP_GLC = 1; % UDP_GLC_exp in AGT1 rate equation
setup.clamp = setup.clamp10;
% select parameters to study:
parsNTH1 = [122, 123];
parsATH1 = [149, 150];
parsAGT1 = [151:154, 158]; % include par158 (Ki for UDPG)
% parsvacuoleT = [155, 156];
parsvacuoleT = [155, 156, 157];
parsGLT = [35:36];
parsGLK = [28, 29, 30, 31, 32, 33, 34]; % 33 is k_T6P
parsPGI = [57:60];
parsPFK = [43:56,87];
parsPGM1 = [83:86];
parsUGP = [144:148];
parsTPS1 = [124:128];
parsTPS2 = [119:121];
parsPFK_sweep = [43:45,47,51,52,87];
parsPFK_selected = [51, 52];
parCombs = [33, parsNTH1, parsATH1, parsAGT1, parsvacuoleT, parsPGM1, parsUGP, parsTPS1, parsTPS2];
% get datasets (others needed)
[legenda] = legendaFull;
loadData_Y3M1;
% get GPFF datasets
load('TUDdata.mat'); % loads the datasets
dataset.FF01.time_mets = [0;5;10;15;20;25;30;60;90;120;150;180;220;250;300;350;400];
dataset.FF01.timeECgluc= [0;5;11;15;20; 30;60;90; 150;180;220;250;300;350;400];
dataset.FF03.time_mets = [0;5;10;20;30;40;60;90;120;150;200;250;300;400;550;700;800;900;1000;1200;1400;1600;1700;1803];
dataset.FF04.time_mets = [0;5;10;15;20;30;60;90;120;150;180;220;250;300;350;398];
reorganiseTUDdata; % puts it in order for easily coding in the next section
%% (1) simulations (GP suarez)
% simulation FF01
setup.GPdataset.GP400WT = 1;
setup.GPdataset.GP1800WT = 0;
setup.GPdataset.GP400M = 0;
setup.GPdataset.Fructose = 0;
setup.GPdataset.Sucrose = 0;
su = 0;
fn = fieldnames(setup.GPdataset);
for i = 1:numel(fn)
su = su+ setup.GPdataset.(fn{i});
end
if su > 1
disp('too many datasets used')
end
z = 2; %l/gcdw
if setup.GPdataset.GP400WT == 1
InitCond_GP_TUD;
elseif setup.GPdataset.GP1800WT == 1
InitCond_GP_TUD_1800;
elseif setup.GPdataset.GP400M == 1
InitCond_GP_TUD_mutant;
elseif setup.GPdataset.Fructose == 1
FFFruc = readFructose(z);
dataset.FFFruc = FFFruc;
reorganiseFrucData;
IC = ICFrucData(z, FFFruc);
elseif setup.GPdataset.Sucrose == 1
FFSuc = readSucrose(z);
dataset.FFSuc = FFSuc;
reorganiseSucData;
InitConditionsSucrose;
end
NumberCycles = 5;
plotflag = 0;
%% updated parameter set from pE2
% % % % % load('pset_pE2res.mat');
% % % % % x1 = x_pE2_start;
% % % % % x2 = x_pE2_end;
%% glycerol_SynthDeg active
setup.glycSynthDeg = 1; % this adds a reaction to the mass balance (ODEs), reaction calculation in rate equations and the starting parameter value
% % % % % x1(159) = -4; % -10;
% % % % % x2(159) = -4; %-10;
%% extension glycogen metabolism
% load parameters
% % % % % load('pset_pE6_x1res.mat','x_pE6_x1_end'); x1 = x_pE6_x1_end;
% % % % % load('pset_pE6_x2res.mat','x_pE6_x2_end'); x2 = x_pE6_x2_end;
%% adding a more detailed glycogen metabolism
setup.glycSynthDeg_separate = 1;
%% recall last case
% % % % % x = x1;
% % % % % x(162) = 10;
setup.ATHinhibitionT6P = 1;
% % % % % load('pset_pE7_xres.mat','x_pE7_start','x_pE7_end');
% % % % % clear x x1 x2
% % % % % x = x_pE7_end;
%% separating ath1_ec and ath1_vac
% % % % % x(163:164) = x(149:150); % km_tre, k_cat
% % % % % x(165) = x(162); % ki_t6p
setup.ATH_separate_EC_VAC = 1;
%% setting the option
setup.glycogenReactionsSink = 1;
setup.dataset = dataset;
%
% % % % % load('pset_pE10_xres.mat','x_pE10_start','x_pE10_end'); x = x_pE10_end;
%% latest setup
% % % % setup.updated_bmf_Cx_ATH1ec = 1;
setup.TREec_brothOut_OFF = 1;
setup.updated_bmf_Cx_ATH1ec = 1;
%% added for enrichment simulations
load('datasetEnrich.mat');
reorganiseEnrichData;
%% (2021 - 08 - 09) right balance around ATH1ec
setup.TRE_recirculation_rightBalances = 1;
%% (2021 09 17) Adjustment glk
% load('x16a.mat','x16a')
% x = x16a;
% x16c_E_start = x_test(1,:);
% x16c_E_final = x_test(2,:);
% load('x16c_E_TPS2.mat', 'x16c_E_start', 'x16c_E_final')
% x = x16c_E_final;
load('pset_Y3M2.mat','x16d_initial','x16d_final')
x = x16d_final;
%% Directly implementing the Csmin idea in out model
% general clamping and setup options
NumberCycles = 20;
setup.clamp_GLCec = 0;
% setup.clamp_GLCec = 1;
setup.changing_Keq_glt = 3; % here the value number 3.
% changing_Keq_glt = 3; means that CSmin is implemented (FF01 value)
% = 2; manually fixed Keq_glt. p.GLT.KeqGLT = 1 * 10 .^ setup.Keq_glt_inc;
% = 1; estimated Keq_glt. p.GLT.KeqGLT = 1 * 10 .^ x(166);
% x(166) = 0; % % <== change x166 if needed here.
setup.csmin = 0.094;
% setup.csmin = 0;
% tic
% %% testing the change in the mass balance
[legenda] = legendaFull; %legenda for the names needed
metNames = legenda.metabolites;
reactNames = legenda.fluxes;
legendaMetabolites_addEnrichment;
choosedataset
%% (2021 10 01: adding the sinkPYR decrease)
setup.decrease_sinkPYR = 1;
setup.ratio_decrease_sinkPYR = 0.1;
%% Starting simulation
setup.experiment = 1;
[T_FF01_1,Y_FF01_1,V_FF01_1] = simulate_FF_enrichment(x,canelas_SS,data,dataset,setup,NumberCycles,plotflag,IC);
% plotMode = 2; % multiple simulations
% %
selResCell{1}.T_FF01 = T_FF01_1;
selResCell{1}.Y_FF01 = Y_FF01_1;
selResCell{1}.V_FF01 = V_FF01_1;
% % %
plotMode = 2;
referencePlotSimulations_enrichment
plotMode = 0;
%
simRes_initial = selResCell;
clear selResCell
% selResCell = simRes_initial;
%% Plotting the data
time_sim = simRes_initial{1}.T_FF01; % time_sim
tre_cyt_sim = simRes_initial{1}.Y_FF01(:,25); % tre_cyt_sim
tre_vac_sim = simRes_initial{1}.Y_FF01(:,38); % tre_vac_sim
tre_ic_sim = tre_cyt_sim + tre_vac_sim; % tre_ic_sim
tre_ic_exp = dataset.FF01.metabolites.ICtreh.conc; % tre_ic_exp
tre_ic_exp_time = dataset.FF01.metabolites.ICtreh.time; % tre_ic_exp_time
frac_tre_cyt_sim = tre_cyt_sim ./ (tre_cyt_sim + tre_vac_sim); % frac_tre_cyt_sim
frac_tre_vac_sim = tre_vac_sim ./ (tre_cyt_sim + tre_vac_sim); % frac_tre_vac_sim
vNTH1_sim = simRes_initial{1}.V_FF01(:,20); % vNTH1_sim
vNTH1_exp = dataset.FF01.fluxes{14}; % vNTH1_exp
vNTH1_exp_time = dataset.FF01.fluxes_times; % vNTH1_exp_time
%% Overall figure
tempStyle1 = 'k-';
%
if exist('tempFig','var')
clf(102)
end
tempFig = figure(102);
tempFig.Position = [2035 785 694 178];
% TRE,cyt
subplot(1,3,3)
plot(time_sim, tre_cyt_sim, tempStyle1,'LineWidth',2)
xlabel('Time (s)')
ylabel('v_{NTH1} (mM s^{-1})')
% vNTH1
subplot(1,3,2)
plot(time_sim, vNTH1_sim, tempStyle1,'LineWidth',2)
hold on
plot(vNTH1_exp_time, vNTH1_exp, 'ko', 'MarkerFaceColor', 'red')
xlabel('Time (s)')
ylabel('TRE_{cyt} (mM)')
%%
% % % % % print(gcf,'-dpdf','E:\OneDrive - TU Eindhoven\Documents\ch5_Y3M2_FF\workingVersion\IntraCycles\RESULTS\figures_manuscript\F8BC');