forked from eminSerin/NBS-Predict
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_NBSPredict.m
60 lines (54 loc) · 2.42 KB
/
start_NBSPredict.m
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function [] = start_NBSPredict(varargin)
% start_NBSPredict shows welcome message to user and run NBSPredict
% toolbox. It bypasses and immediately starts analyzing the data if a
% configuration file is provided (please check MANUAL to see how to create
% a configuration file). If any configuration file provided,
% start_NBSPredict opens graphical user interface to deliver user inputs to
% run analysis.
%
% Arguements:
% NBSPredict - Structure including configurations for NBSPredict to run
% (please check MANUAL for correct structure).
%
% Example:
% start_NBSPredict();
% start_NBSPredict(NBSPredict);
%
% Copyright (C) 2019
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program. If not, see <http://www.gnu.org/licenses/>.
%
% Release : 1.0.0-beta1
% Mail to Author: [email protected]
%
% See also: run_NBSPredictGUI, run_NBSPredict, test_NBSPredict
verNBSPredict = '1.0.0-beta1';
welcomeMsg = ['\n\n\nWelcome to NBSPredict\n',...
'Release: <strong>%s</strong> \n',...
'NBS-Predict was designed by Emin Serin, Andrew Zalesky, Johann Kruschwitz and Henrik Walter, and developed by Emin Serin\n',...
'Berlin School of Mind and Brain, Humboldt Universtaet zu Berlin, Germany\n',...
'Melbourne Neuropsychiatry Centre and Department of Biomedical Engineering, University of Melbourne, Australia\n',...
'Division of Mind and Brain Research, Department for Psychiatry, Charite Berlin, Germany\n',...
'Mail to Author: <a href="[email protected]">Emin Serin</a>\n\n\n'];
fprintf(welcomeMsg,verNBSPredict);
% Check if a configuration file provided.
if ~isempty(varargin)
assert(~(nargin > 1), 'Too much input provided! Please check help section!');
fprintf('\nConfiguration file is provided. Configuration file is being checked...\n\n')
run_NBSPredict(varargin{:});
else
fprintf('\nNBS-Predict GUI is starting...\n\n')
run_NBSPredictGUI();
end
end