-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from rmtfleming/develop
numerical characteristics wbm
- Loading branch information
Showing
55 changed files
with
2,194 additions
and
1,254,152 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
analysis/benchmarkSolvers/driver_loadBenchmarkWBMsolvers.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
%% Choose between different models. | ||
% Add your own via the switch statement below. | ||
|
||
if ~exist(modelToUse,'var') | ||
%modelToUse = 'iCoreED'; % medium - TODO could not compute extremePools -find out why. | ||
%modelToUse = 'iDopaNeuroC'; | ||
% modelToUse = 'Recon3T'; | ||
modelToUse = 'Harvey'; | ||
%modelToUse = 'Harvetta'; | ||
end | ||
|
||
%% Set local parameters | ||
% If true, it will relax tight bounds | ||
relaxTightBounds=0; | ||
lowerExponent = 4; %the minimum difference between ub_j and lb_j is 10^(lowerExponent) | ||
higherExponent = 10; | ||
|
||
% Load the selected model and make any adjustments necessary. | ||
switch modelToUse | ||
case 'iCoreED' | ||
if ~exist('iCoreED','var') | ||
load ~/drive/sbgCloud/projects/variationalKinetics/data/iCoreED/iCoreED_modelT.mat | ||
end | ||
model = modelT; | ||
|
||
if ~isfield(model,'biomassRxnAbbr') | ||
model.biomassRxnAbbr='Biomass_Ecoli_core_w_GAM'; | ||
end | ||
case 'iDopaNeuroC' | ||
load('~/drive/sbgCloud/projects/variationalKinetics/data/iDopaNeuro/iDopaNeuroC.mat') | ||
%load('~/drive/sbgCloud/data/models/published/iDopaNeuro/iDopaNeuroC.mat') | ||
model = iDopaNeuroC; | ||
model.description='iDopaNeuroC'; | ||
model.version='1.0'; | ||
case 'Recon3T' | ||
load('~/drive/sbgCloud/projects/variationalKinetics/data/Recon3T/Recon3DModel_301_xomics_input.mat'); | ||
case 'Harvey' | ||
if isfile('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvey_1_04c_lifted.mat') | ||
load('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvey_1_04c_lifted.mat') | ||
model=male; | ||
model.osenseStr='max'; | ||
else | ||
load('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvey_1_04c.mat') | ||
%load('~/drive/sbgCloud/projects/variationalKinetics/data/WBM/Harvey_1_04c.mat') | ||
%load('~/drive/sbgCloud/data/models/published/Harvey_Harvetta/20191104_Harvey_1_01c.mat') | ||
model=male; | ||
model.osenseStr='max'; | ||
model = changeObjective(model,model.rxns(contains(model.rxns,'Whole'))); | ||
|
||
model = homogeniseCouplingConstraints(model); | ||
|
||
%% Reformulate coupling constraints | ||
% Using hierarchical lifting as described here | ||
% https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-14-240 | ||
[male] = liftCouplingConstraints(model); | ||
save('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvey_1_04c_lifted.mat','male'); | ||
return | ||
end | ||
|
||
case 'Harvetta' | ||
if isfile('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvetta_1_04c_lifted.mat') | ||
load('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvetta_1_04c_lifted.mat') | ||
model=female; | ||
model.osenseStr='max'; | ||
else | ||
load('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvetta_1_04c.mat') | ||
%load('~/drive/sbgCloud/projects/variationalKinetics/data/WBM/Harvetta_1_04c.mat') | ||
%load('~/drive/sbgCloud/data/models/published/Harvey_Harvetta/20191104_Harvetta_1_01c.mat') | ||
model=female; | ||
model.osenseStr='max'; | ||
model = changeObjective(model,model.rxns(contains(model.rxns,'Whole'))); | ||
|
||
model = homogeniseCouplingConstraints(model); | ||
|
||
%% Reformulate coupling constraints | ||
% Using hierarchical lifting as described here | ||
% https://bmcbioinformatics.biomedcentral.com/articles/10.1186/1471-2105-14-240 | ||
[female] = liftCouplingConstraints(model); | ||
save('~/drive/sbgCloud/code/wbm_modelingcode/WBM_reconstructions/Harvetta_1_04c_lifted.mat','female'); | ||
return | ||
end | ||
otherwise | ||
errror('Unrecognised modelToUse') | ||
end | ||
|
||
|
||
|
Oops, something went wrong.