-
Notifications
You must be signed in to change notification settings - Fork 10
/
snpm.m
112 lines (100 loc) · 3.88 KB
/
snpm.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
function varargout=snpm(Action)
% SnPM: nonParametric statistical analysis toolbox for SPM
%_______________________________________________________________________
% ___ ____ __ __ Statistical nonParametric Mapping toolbox
% / __) ___ ( _ \( \/ ) Dpt of Statistics & Warwick Manufacturing Group
% \__ \( _ ) )___/ ) ( The University of Warwick
% (___/(_)_)(__) (_/\/\_) SnPM13
%_______________________________________________________________________
%
% This is SnPM13, the SPM batch-compatible release of the nonParametric
% toolbox for SPM
% SnPM13 is written for SPM8 and SPM12b -released Friday October 11th, 2013
%
% Please refer to this version as "SnPM13" in papers and
% communications.
%
% ----------------
%
% Please report bugs to [email protected]. Peculiarities and
% general queries should be raised on the SPM discussion list. We will
% report patches to the list and make updates available if necessary.
%
% ----------------
%
% See the "About SnPM" topic (snpm.man) for information on using SnPM
%
% Additional information may be found at the SPMweb site:
% http://www.fil.ion.ucl.ac.uk/spm/snpm
% ...where details of the SPM email discussion list can be found:
% http://www.fil.ion.ucl.ac.uk/spm/help
%
% ----------------
%
% SnPM, by Andrew Holmes and Thomas Nichols
%_______________________________________________________________________
% Copyright (C) 2013-14 The University of Warwick
% Id: snpm.m SnPM13.01 2014/01/31
% Thomas Nichols
%-----------------------------functions-called------------------------
% spm
% spm_figure
% spm_help
% snpm_cp
% snpm_pp
% snpm_ui
%-----------------------------functions-called------------------------
%-Parameters
%-----------------------------------------------------------------------
SnPMver = 'SnPM13.1.09';
%-Format arguments
%-----------------------------------------------------------------------
if nargin == 0, Action='Init'; end
if strcmpi(Action,'Init')
%=======================================================================
global MODALITY
if isempty(spm_figure('FindWin','Menu'))
spm('PET')
clc
else
clc
end
snpm_defaults;
[Finter,Fgraph,CmdLine] = spm('FnUIsetup','Statistical non-Parametric Mapping (SnPM)');
snpm_init; % Initialize Matlab Batch system
snpm('AsciiWelcome')
spm_help('!Disp','snpm.m','','Graphics',snpm('Ver'))
snpm('CreateMenuWin')
elseif strcmpi(Action,'AsciiWelcome')
%=======================================================================
disp( ' ___ ____ __ __ ')
disp( '/ __) ___ ( _ \( \/ ) Statistical nonParametric Mapping toolbox ')
disp( '\__ \( _ ) )___/ ) ( University of Warwick')
disp(['(___/(_)_)(__) (_/\/\_) Version: ',snpm('Ver')])
fprintf('\n')
elseif strcmpi(Action,'Ver')
%=======================================================================
% snpm('Ver')
varargout = {SnPMver};
elseif strcmpi(Action,'Colour')
%=======================================================================
% snpm('Colour')
%-----------------------------------------------------------------------
% %-Developmental livery
% varargout = {[0.7,1.0,0.7], 'Lime Green'};
%-Distribution livery
varargout = {[0.8 0.8 1.0], 'Diluted Blackcurrent Purple'};
elseif strcmpi(Action,'CreateMenuWin')
%=======================================================================
% snpm('CreateMenuWin')
% Initialise batch system
spm_jobman('initcfg');
% Open batch window
spm_jobman('interactive');
disp('SnPM13 tools are available in the SPM batch window under SPM -> Tools -> SnPM')
else
%=======================================================================
error('SnPM:UnknownAction', 'Unknown action string')
%=======================================================================
end