Skip to content

Commit 14744cd

Browse files
committed
style: main model generator script rearrangemente
1 parent 67c9e1c commit 14744cd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

ComplementaryScripts/generate_human_ecModels_NCI60.m

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,27 @@
44
% NCI60 cell-lines) with enzyme-constraints with the use of the GECKO
55
% pipeline.
66
%
7-
% Ivan Domenzain. Last edited: 2019-05-15
7+
% Ivan Domenzain. Last edited: 2019-11-20
88

9-
load('../models/humanGEM_cellLines/11models.mat')
10-
modelNames = who;
11-
current = pwd;
129
%Clone GECKO and substitute human-specific scripts
1310
git('clone https://github.com/SysBioChalmers/GECKO.git')
14-
GECKO_path = [current '/GECKO'];
1511
%Replace scripts in GECKO:
1612
fileNames = dir('GECKO_humanFiles');
1713
for i = 1:length(fileNames)
1814
fileName = fileNames(i).name;
19-
if ~strcmp(fileName,'.') && ~strcmp(fileName,'..')
15+
if ~strcmp(fileName,'.') && ~strcmp(fileName,'..') && ~strcmp(fileName,'.DS_Store')
2016
fullName = ['GECKO_humanFiles/' fileName];
2117
GECKOpath = dir(['GECKO/**/' fileName]);
2218
GECKOpath = GECKOpath.folder;
2319
copyfile(fullName,GECKOpath)
2420
end
2521
end
22+
clear
23+
clc
24+
load('../models/humanGEM_cellLines/11models.mat')
25+
modelNames = who;
26+
current = pwd;
27+
GECKO_path = [current '/GECKO'];
2628
%Generate enzyme-constrained models
2729
for i=1:length(modelNames)
2830
cd (current)
@@ -33,7 +35,7 @@
3335
mkdir Data
3436
cd (current)
3537
%Models mat files are saved in their respective folder by enhanceGEM_cellLine
36-
[ecModel,ecModel_batch] = enhanceGEM_cellLine(cellName);
38+
[ecModel,ecModel_batch] = enhanceGEM_cellLine(cellName,[current '/GECKO']);
3739
end
3840
cd (current)
3941
rmdir('GECKO', 's')

0 commit comments

Comments
 (0)