forked from TrinhLab/ModCell2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitModCell2.m
More file actions
27 lines (21 loc) · 805 Bytes
/
initModCell2.m
File metadata and controls
27 lines (21 loc) · 805 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
25
26
27
function initModCell2()
% Basically makes sure external dependencies are installed. More importantly, serves as a
% reference to find the modcell directory.
%
fix_instructions = 'make sure you follow the instructions in requirements.md';
if exist('cobratoolbox','dir') ~= 7
error(['cobratoolbox is not in the Matlab path,',fix_instructions])
end
fprintf('Setting cobra toolbox solver...')
parfor i = 1:2
changeCobraSolver('glpk','LP');
end
fprintf('done\n')
%Ascii art logo created with: patorjk.com/software/taag/
logo2 = [...
' __ ___ _______ _______ ',
' / |/ /__ ___/ / ___/__ / / /_ |',
' / /|_/ / _ \/ _ / /__/ -_) / / __/ ',
'/_/ /_/\___/\_,_/\___/\__/_/_/____/ ',
' '];
disp(logo2)