Skip to content

Commit 9251835

Browse files
authored
Merge pull request #1579 from opencobra/develop
Develop
2 parents f1cd39a + 909c850 commit 9251835

File tree

334 files changed

+36538
-2995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+36538
-2995
lines changed

.gitignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ sampleCbModelTmp.mat
8282
test/verifiedTests/analysis/testEnumerateOptimal/MILPProblem.mat
8383
test/verifiedTests/analysis/testThermo/MILPProblem.mat
8484
test/verifiedTests/design/MILPProblem.mat
85+
test/verifiedTests/design/testOptForce/TestOptForceM/
86+
test/verifiedTests/reconstruction/testModelBorgifier/SRP065497_taxonomy_abundances_v3.0.tsv
8587

8688
# shared libraries
8789
*.so
@@ -167,4 +169,11 @@ docs/source/_static/json/functions.json
167169

168170
# videos
169171
*.flv
170-
*.mp4
172+
*.mp4
173+
174+
# external modules (legacy)
175+
external/Smith-Decomposition/
176+
external/gaimc/
177+
external/lusol/
178+
external/pdco/
179+
.DS_Store

.gitmodules

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ignore = dirty
2121
[submodule "test/models"]
2222
path = test/models
23-
url = https://github.com/LCSB-BioCore/COBRA.models
23+
url = https://github.com/opencobra/COBRA.models
2424
ignore = dirty
2525
[submodule "external/analysis/Volume-and-Sampling"]
2626
path = external/analysis/Volume-and-Sampling
@@ -38,14 +38,6 @@
3838
path = papers
3939
url = https://github.com/opencobra/COBRA.papers.git
4040
ignore = dirty
41-
[submodule "external/base/utilities/rdir"]
42-
path = external/base/utilities/rdir
43-
url = https://github.com/LCSB-BioCore/rdir.git
44-
ignore = dirty
45-
[submodule "external/analysis/mptoolbox"]
46-
path = external/analysis/mptoolbox
47-
url = https://github.com/LCSB-BioCore/mptoolbox.git
48-
ignore = dirty
4941
[submodule "external/analysis/octave-networks-toolbox"]
5042
path = external/analysis/octave-networks-toolbox
5143
url = https://github.com/aeolianine/octave-networks-toolbox.git
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
function [model,rxnNames] = addDemandReactionOri(model,metaboliteNameList, addRxnGeneMat)
2+
% addDemandReaction adds demand reactions for a set of metabolites
3+
% The reaction names for the demand reactions will be DM_[metaboliteName]
4+
%
5+
% model = addDemandReaction(model,metaboliteNameList)
6+
%
7+
% INPUTS
8+
% model COBRA model structure
9+
% metaboliteNameList List of metabolite names (cell array)
10+
% addRxnGeneMat Adds rxnGeneMat to model structure (default = true)
11+
%
12+
% OUTPUTS
13+
% model COBRA model structure with added demand reactions
14+
% rxnNames List of added reactions
15+
%
16+
% Markus Herrgard 5/8/07
17+
% Ines Thiele 03/09 - Corrected reaction coefficient for demand reaction
18+
% Ines Thiele 08/03/2015, made rxnGeneMat optional
19+
if ~exist('addRxnGeneMat','var')
20+
addRxnGeneMat = 1;
21+
end
22+
23+
if (~iscell(metaboliteNameList))
24+
tmp = metaboliteNameList;
25+
clear metaboliteNameList;
26+
metaboliteNameList{1} = tmp;
27+
end
28+
29+
for i = 1:length(metaboliteNameList)
30+
rxnName = ['DM_' metaboliteNameList{i}];
31+
rxnNames{i}=rxnName;
32+
metaboliteList = {metaboliteNameList{i}};
33+
% [model,rxnIDexists] = addReaction(model,rxnName,metaboliteList,stoichCoeffList,revFlag,lowerBound,upperBound,objCoeff,subSystem,grRule,geneNameList,systNameList,checkDuplicate, addRxnGeneMat)
34+
model = addReactionOri(model,rxnName,metaboliteList,-1,false,0,1000,0,'Demand','',[],[],0, addRxnGeneMat);
35+
end
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
function [newModel,AddedExchRxn] = addExchangeRxn(model,metList,lb,ub)
2+
%addExchangeRxn adds exchange reactions
3+
%
4+
% newModel = addExchangeRxn(model,metList,lb,ub)
5+
%
6+
%INPUTS
7+
% model Cobra model structure
8+
% metList List of metabolites
9+
%
10+
%OPTIONAL INPUTS
11+
% lb Array of lower bounds
12+
% ub Array of upper bounds
13+
%
14+
%OUTPUT
15+
% newModel COBRA model with added exchange reactions
16+
%
17+
% Ines Thiele 02/2009
18+
19+
if nargin < 3
20+
lb = ones(length(metList),1)*min(model.lb);
21+
end
22+
if nargin < 4
23+
ub = ones(length(metList),1)*max(model.ub);
24+
end
25+
Revs = zeros(length(metList),1);
26+
Revs(lb<0) = 1;
27+
28+
newModel = model;
29+
AddedExchRxn = '';
30+
for i = 1 : length(metList)
31+
[newModel,rxnIDexists] = addReactionOri(newModel,strcat('EX_',metList{i}),metList(i),-1,Revs(i),...
32+
lb(i),ub(i));
33+
AddedExchRxn=[AddedExchRxn;strcat('EX_',metList(i))];
34+
end

0 commit comments

Comments
 (0)