Skip to content

Commit f43ab02

Browse files
committed
fix: conserve original models biomass rxn
1 parent 14744cd commit f43ab02

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
function model = modelModifications(model)
2-
[grRules, rxnGeneMat] = standardizeGrRules(model);
3-
model.grRules = grRules;
4-
model.rxnGeneMat = rxnGeneMat;
5-
model.b = zeros(length(model.mets),1);
6-
% Standardizes the metabolites names
7-
model = modifyMetNames(model);
8-
% Substitute biomass reaction
9-
model = substituteBiomassRxns(model,false);
2+
[GRR, RGM] = standardizeGrRules(model);
3+
model.grRules = GRR;
4+
model.rxnGeneMat = RGM;
5+
model.b = zeros(length(model.mets),1);
6+
model = setParam(model,'obj','biomass_human',1);
107
end

0 commit comments

Comments
 (0)