Skip to content

Commit

Permalink
chore-rxn: move KEGG pathway ids to proper field
Browse files Browse the repository at this point in the history
after COBRA (opencobra/cobratoolbox#1604) and RAVEN (SysBioChalmers/RAVEN#313) added functionality for them
  • Loading branch information
BenjaSanchez committed Nov 24, 2020
1 parent b2f3d69 commit 41be91c
Show file tree
Hide file tree
Showing 4 changed files with 17,721 additions and 10,627 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
Loading

0 comments on commit 41be91c

Please sign in to comment.