-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtutorial.m
More file actions
25 lines (15 loc) · 839 Bytes
/
Copy pathtutorial.m
File metadata and controls
25 lines (15 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
rootDir = pwd;
%% Starts the cobratoolbox
initCobraToolbox
%% Change solver
solverOK=changeCobraSolver('ibm_cplex','LP');
websave('AGORA-master.zip','https://github.com/VirtualMetabolicHuman/AGORA/archive/master.zip')
unzip('AGORA-master')
modPath = [rootDir filesep 'AGORA-master' filesep 'CurrentVersion' filesep 'AGORA_1_03' filesep' 'AGORA_1_03_mat'];
abunFilePath = [rootDir filesep 'IBD_study_abundances.csv'];
computeProfiles = true;
dietFilePath = 'AverageEuropeanDiet';
infoFilePath = [rootDir filesep 'IBD_study_samples.csv'];
resPath = [rootDir filesep 'MicrobiomeModels'];
numWorkers = 4;
[init, netSecretionFluxes, netUptakeFluxes, Y, modelStats, summary] = initMgPipe(modPath, abunFilePath, computeProfiles, 'dietFilePath', dietFilePath, 'infoFilePath', infoFilePath, 'resPath', resPath, 'numWorkers', numWorkers);