Skip to content

Commit

Permalink
Merge pull request #361 from SysBioChalmers/fix/save-ec-model-xml
Browse files Browse the repository at this point in the history
fix: save ec model xml
  • Loading branch information
mihai-sysbio authored Jan 18, 2024
2 parents 074078c + 83412ed commit d1982df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/geckomat/utilities/saveEcModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function saveEcModel(ecModel,filename,modelAdapter)

switch filename(end-3:end)
case {'.xml','sbml'}
exportModel(ecModel,[filename '.xml']);
exportModel(ecModel, filename);
%Convert notation "e-005" to "e-05 " in stoich. coeffs. to avoid
%inconsistencies between Windows and MAC:
copyfile([filename '.xml'],'backup.xml')
copyfile(filename,'backup.xml')
fin = fopen('backup.xml', 'r');
fout = fopen([filename '.xml'], 'w');
fout = fopen(filename, 'w');
still_reading = true;
while still_reading
inline = fgets(fin);
Expand Down
4 changes: 2 additions & 2 deletions tutorials/light_ecModel/protocol.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
% STEP 26 Merge BRENDA and DLKcat derived values
kcatList_merged = mergeDLKcatAndFuzzyKcats(kcatList_DLKcat, kcatList_fuzzy);

% STEP 27 Implement kcat avlues into model.ec.kcat
% STEP 27 Implement kcat values into model.ec.kcat
ecModel = selectKcatValue(ecModel,kcatList_merged);

% STEP 28
Expand All @@ -96,7 +96,7 @@
% -standardMW/standardKcat as the stoiciometric coefficient.
[ecModel, rxnsMissingGPR, standardMW, standardKcat] = getStandardKcat(ecModel);

% STEP 31 Apply kcat avlues to S-matrix
% STEP 31 Apply kcat values to S-matrix
% In light ecModels the kcat values are also kept in ecModels.ec.kcat, and
% only after running applyKcatConstraints are these introduced in the
% ecModel.S matrix. In constrast to full ecModels, the applyKcatConstraints
Expand Down

0 comments on commit d1982df

Please sign in to comment.