Skip to content

Commit 3e10f02

Browse files
Merge pull request #18 from SysBioChalmers/fix/comparativeFVA_humanModels
fix: removed RAVEN uncompatible fields in original model for FVA comp…
2 parents 7ec2326 + f8ee293 commit 3e10f02

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

ComplementaryScripts/ExchFluxesComparison_NCI60.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
end
106106
%Keep just the exchange fluxes that are also part of the
107107
%dataset and compare both GEM and ecGEM predictions
108-
[~,toKeep,order] = intersect(EX_IDs,expIDs);;
108+
[~,toKeep,order] = intersect(EX_IDs,expIDs);
109109
str = strrep(folders{i},'_','-');
110110
if length(toKeep) == length(expIDs(1:end-1))
111111
if ecFlag
@@ -254,7 +254,7 @@ function plotDataPoints(Xvalues,Yvalues,color,direction)
254254
%model = setBounds(model,GrowthIndx,value,ecFlag,true);
255255
if ecFlag
256256
Prot_biomass = fluxes(end); %Total protein content in biomass [g prot/g DW]
257-
Prot_pool = fluxes(end)*0.5*0.5; %Amount of enzymes available for biochemical reactions
257+
Prot_pool = fluxes(end)*0.5*0.75; %Amount of enzymes available for biochemical reactions
258258
model = rescaleBiomassProtein(model,Prot_pool,ecFlag);
259259
end
260260
%Glucose exchange bound

ComplementaryScripts/Simulation/comparativeFVA_humanModels.m

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function FVA_Dists = comparativeFVA_humanModels(cellLine)
1+
%function FVA_Dists = comparativeFVA_humanModels(cellLine)
22
%comparativeFVA_humanModels
33
%
44
% Function that runs a comparative flux variabiability analysis between a
@@ -13,7 +13,7 @@
1313
%
1414
% Usage: FVA_Dists = comparativeFVA_humanModels(cellLine)
1515
%
16-
% Ivan Domenzain, 2019-05-14
16+
% Ivan Domenzain, 2019-05-16
1717

1818
current = pwd;
1919
%Clone GECKO and pull comparativeFVa branch
@@ -23,13 +23,15 @@
2323
git ('checkout fix/comparativeFVA')
2424
git pull
2525
%Load GEM and ecGEM
26-
load(['../../models/humanGEM_cellLines/' cellLine '/model_modified.mat'])
27-
load(['../../models/humanGEM_cellLines/' cellLine '/ecModel_batch.mat'])
26+
load(['../../../models/humanGEM_cellLines/' cellLine '/model_modified.mat'])
27+
load(['../../../models/humanGEM_cellLines/' cellLine '/ecModel_batch.mat'])
2828
%Set medium constraints
2929
glucBound = 1;
3030
oxBound = 1000;
3131
stdBound = 1;
32-
[model,~] = setEMEMmedium(model_modified,glucBound,oxBound,stdBound,false);
32+
cd (current)
33+
model = removeMetFields(model_modified);
34+
[model,~] = setEMEMmedium(model,glucBound,oxBound,stdBound,false);
3335
[ecModel,~] = setEMEMmedium(ecModel_batch,glucBound,oxBound,stdBound);
3436
evalin( 'base', 'clear(''model_modified'')' )
3537
evalin( 'base', 'clear(''ecModel_batch'')' )
@@ -40,4 +42,19 @@
4042
cd (current)
4143
cd (['../../models/humanGEM_cellLines/' cellLine])
4244
save('FVA_results.mat','FVA_Dists','indexes')
45+
%end
46+
%--------------------------------------------------------------------------
47+
function model = removeMetFields(model)
48+
if isfield(model,'inchis')
49+
model = rmfield(model,'inchis');
50+
end
51+
if isfield(model,'metMiriams')
52+
model = rmfield(model,'metMiriams');
53+
end
54+
if isfield(model,'metCharges')
55+
model = rmfield(model,'metCharges');
56+
end
57+
if isfield(model,'metFrom')
58+
model = rmfield(model,'metFrom');
59+
end
4360
end

0 commit comments

Comments
 (0)