-
Notifications
You must be signed in to change notification settings - Fork 0
/
SynCommModelCreation.m
40 lines (27 loc) · 1.21 KB
/
SynCommModelCreation.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
%create SynComm model for DvH and MMp
%Rupa Immanuel, ISB
rxnFormulaMMp =printRxnFormula(iMR539);
% initially assign DvH as new integrated model
SynCommModel = updatediJF744;
% add the MMp model reactions to this new model
for i = 1:length(iMR539.rxns)
SynCommModel = addReaction(SynCommModel,rxns{i},'reactionFormula',rxnFormulaMMp{i},'geneRule',IMR539GPR{i}, 'geneNameList',genesMMp);
end
% add the tDM diffusion reactions to make connections between DvH and MMp
for i = 1:length(tDMRxns)
SynCommModel = addReaction(SynCommModel,tDMRxns{i},'reactionFormula', tDMRxnFormula{i},'reactionName', tDMRxnName{i});
end
%change the bounds for tDM reactions
for i = 1:length(tDMRxns)
SynCommModel = changeRxnBounds(SynCommModel,tDMRxns{i},-1000,'l');
SynCommModel = changeRxnBounds(SynCommModel,tDMRxns{i},1000,'u');
end
%change the bound for exchanges of MMp
ExSynCommModel = SynCommModel;
for i = 1:length(ExchangesMMp)
ExSynCommModel = changeRxnBounds(ExSynCommModel,ExchangesMMp{i},0,'l');
ExSynCommModel = changeRxnBounds(ExSynCommModel,ExchangesMMp{i},1000,'u');
end
%to make the MMp survive
%when the objective is set to MMp, biomass of DvH is given a lb
ExSynCommModel = changeRxnBounds(ExSynCommModel,'bio_DvH_5gam',0.4,'l');