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
1313%
1414% Usage: FVA_Dists = comparativeFVA_humanModels(cellLine)
1515%
16- % Ivan Domenzain, 2019-05-14
16+ % Ivan Domenzain, 2019-05-16
1717
1818current = pwd ;
1919% Clone GECKO and pull comparativeFVa branch
2323git (' checkout fix/comparativeFVA' )
2424git 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
2929glucBound = 1 ;
3030oxBound = 1000 ;
3131stdBound = 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 );
3436evalin( ' base' , ' clear('' model_modified'' )' )
3537evalin( ' base' , ' clear('' ecModel_batch'' )' )
4042cd (current )
4143cd ([' ../../models/humanGEM_cellLines/' cellLine ])
4244save(' 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
4360end
0 commit comments