Skip to content

Commit e2ffdf6

Browse files
author
annasheehy
committed
Persephone tutorials
1 parent d848935 commit e2ffdf6

7 files changed

+1910
-0
lines changed

analysis/persephone/Tut_0_Startup.m

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
initCobraToolbox();
2+
3+
% Can also be different versions
4+
changeCobraSolver('ibm_cplex');
5+
6+
7+
pe = pyenv;
8+
if pe.Version == ""
9+
error("Python not installed, required for running MARS")
10+
end
11+
% Do we need a check for Pandas, JSON or Numpy? - required for MARS
12+
13+
% Are all paths set up correctly
14+
15+
microbiomeModels = '';
16+
readsFilePath = '';
17+
OTUFilePath = '';
18+
19+
paths2Check = {microbiomeModels; dietFilePath; readsFilePath; OTUFilePath};
20+
21+
for i = 1:size(paths2Check,1)
22+
if i ==1
23+
if ~isfolder(paths2Check{i})
24+
error(concat(microbiomeModels{i}, ' does not seems to exist on your system. Please check if your path is formulated correctly'))
25+
end
26+
else
27+
if ~isfile(paths2Check{i}) && ~isempty(paths2Check{i})
28+
error(concat(microbiomeModels{i}, ' does not seems to exist on your system. Please check if your path is formulated correctly'))
29+
end
30+
end
31+
end

analysis/persephone/Tut_1_0_MicrobiomeCreation.m

+454
Large diffs are not rendered by default.

analysis/persephone/Tut_1_5_PersonaliseWBM.m

+557
Large diffs are not rendered by default.
-159 Bytes
Binary file not shown.

analysis/persephone/Tut_2_SolveModel.m

+549
Large diffs are not rendered by default.
-30 Bytes
Binary file not shown.

analysis/persephone/Tut_SeqC.m

+319
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)