Skip to content

Commit

Permalink
Merge pull request #88 from SysBioChalmers/feat/new_formats
Browse files Browse the repository at this point in the history
Feat/new formats
  • Loading branch information
BenjaSanchez authored Apr 16, 2018
2 parents cb06df1 + c80e6ef commit f6594b9
Show file tree
Hide file tree
Showing 3 changed files with 74,398 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ComplementaryScripts/saveYeastModel.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% saveYeastModel(model)
% Saves model as a .xml and .txt file. Also updates complementary files
% (boundaryMets.txt and dependencies.txt).
% Saves model as a .xml, .txt and .yml file. Also updates complementary
% files (boundaryMets.txt and dependencies.txt).
%
% Benjamín J. Sánchez
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -17,6 +17,7 @@ function saveYeastModel(model)
%Save changes to current model:
writeCbModel(model,'sbml','../ModelFiles/xml/yeastGEM.xml');
writeCbModel(model,'text','../ModelFiles/txt/yeastGEM.txt');
writeYaml(model,'../ModelFiles/yml/yeastGEM.yml');

%Detect boundary metabolites and save them in a .txt file:
fid = fopen('boundaryMets.txt','wt');
Expand All @@ -29,7 +30,7 @@ function saveYeastModel(model)
fclose(fid);

%Retrieve RAVEN version:
RAVENver = getVersion('checkInstallation.m','version.txt');
RAVENver = getVersion('ravenCobraWrapper.m','version.txt');

%Retrieve latest COBRA commit:
COBRApath = which('initCobraToolbox.m');
Expand Down
Loading

0 comments on commit f6594b9

Please sign in to comment.