Skip to content

Commit

Permalink
Merge pull request #253 from SysBioChalmers/chore/update-toolboxes
Browse files Browse the repository at this point in the history
Chore: update COBRA+RAVEN toolboxes
  • Loading branch information
BenjaSanchez authored Nov 25, 2020
2 parents 27350d4 + 41be91c commit d28afbe
Show file tree
Hide file tree
Showing 6 changed files with 67,413 additions and 58,866 deletions.
21 changes: 21 additions & 0 deletions ComplementaryScripts/otherChanges/migrateKEGGpathways.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

% Load Model:
cd ..
model = loadYeastModel;

% Migrate KEGG pathways from 'subSystems' to 'rxnKEGGpathways'
model.rxnKEGGPathways = cell(size(model.rxns));
for i = 1:length(model.rxns)
KEGGPathways = model.subSystems{i};
for j = 1:length(KEGGPathways)
if ~isempty(KEGGPathways{j})
KEGGPathways{j} = KEGGPathways{j}(1:8);
end
end
model.rxnKEGGPathways{i} = strjoin(KEGGPathways,';');
end
model.subSystems = cell(size(model.rxns));

% Save Model:
saveYeastModel(model);
cd otherChanges
3 changes: 2 additions & 1 deletion ComplementaryScripts/saveYeastModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function saveYeastModel(model,upDATE,allowNoGrowth)
copyfile('tempModel.xml','../ModelFiles/xml/yeastGEM.xml')
delete('tempModel.xml');
writeCbModel(model,'text','../ModelFiles/txt/yeastGEM.txt');
exportForGit(model,'yeastGEM','..',{'yml'});
exportForGit(model,'yeastGEM','../ModelFiles',{'yml'},false,false); % temporal
movefile ../ModelFiles/yeastGEM.yml ../ModelFiles/yml/ % temporal

%Detect boundary metabolites and save them in a .txt file:
fid = fopen('../ModelFiles/boundaryMets.txt','wt');
Expand Down
4 changes: 2 additions & 2 deletions ModelFiles/dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MATLAB 9.7.0.1190202 (R2019b)
libSBML 5.17.0
RAVEN_toolbox 2.4.0
COBRA_toolbox commit 0303050
RAVEN_toolbox 2.4.1
COBRA_toolbox commit 6c49aaf
SBML_level 3
SBML_version 1
fbc_version 2
Loading

0 comments on commit d28afbe

Please sign in to comment.