Skip to content

Commit

Permalink
Merge pull request #2384 from almut-heinken/demeterFixes
Browse files Browse the repository at this point in the history
Fix in DEMETER to ensure reaction names are read
  • Loading branch information
rmtfleming authored Feb 6, 2025
2 parents 6a3baa9 + 3a9dd89 commit 1d8fe69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@
'FTMAOR' , [],'FTMAOR','FTMAORi'
'NTMAOR' , [],'NTMAOR','NTMAORi'
'D4DGCD',[],'D4DGCD','D4DGCDi'
'NDPK7 AND NTP13',[],'NTP13','NTP13i'
};


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,8 @@
% may result in transporters being added without the exchange
% reaction-need to add the exchange reaction in this case
exMets={};
for j=1:length(addedRxns)
mets=findMetsFromRxns(relaxedModel,addedRxns{j});
exMets=union(exMets,mets(find(contains(mets,'[e]'))));
end
mets=findMetsFromRxns(relaxedModel,addedRxns);
exMets=union(exMets,mets(find(contains(mets,'[e]'))));
exRxns={};
for j=1:length(exMets)
exInd=find(strncmp(database.reactions(:,1),['EX_' strrep(exMets{j},'[e]','(e)')],length(['EX_' strrep(exMets{j},'[e]','(e)')])));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function createSBMLFiles(refinedFolder, sbmlFolder)
% time-consuming.
%
% USAGE
% createTestSBMLFiles(refinedFolder, sbmlFolder)
% createSBMLFiles(refinedFolder, sbmlFolder)
%
% INPUTS
% refinedFolder Folder with refined COBRA models generated by
Expand Down

0 comments on commit 1d8fe69

Please sign in to comment.