forked from tkkarjal/magia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagia_get_default_specs.m
77 lines (74 loc) · 1.92 KB
/
magia_get_default_specs.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
function value = magia_get_default_specs(field_name,varargin)
% Specifies default options for Magia processing. Some of the defaults are
% tracer-dependent. Not all fields have a default. For example, the fields
% template and mni_roi_atlas_dir require specification of full paths, which
% makes them site-dependent fields. The field classfile, on the other hand,
% is dependent on the scanner, again making it site-dependent.
if(nargin == 2)
tracer = varargin{1};
end
switch lower(field_name)
case 'rc'
value = 0;
case 'cpi'
value = 1;
case 'cut_time'
value = 0;
case 'roi_type'
value = 'freesurfer';
case 'roi_set'
value = 'tracer_default';
case 'fwhm_pre'
switch tracer
case '[18f]fmpep-d2'
value = 6;
otherwise
value = 4;
end
case 'fwhm_post'
value = 6;
case 'fwhm_roi'
value = 0;
case 'norm_method'
value = 'mri';
case 'mc_excluded_frames'
value = [];
case 'mc_ref_frame'
switch tracer
case '[11c]pk11195'
value = 10;
otherwise
value = 0;
end
case 'mc_fwhm'
switch tracer
case '[11c]pk11195'
value = 2;
otherwise
value = 7;
end
case 'mc_rtm'
switch tracer
case '[11c]pk11195'
value = 0;
otherwise
value = 1;
end
case 'mc_sep'
switch tracer
case '[11c]pk11195'
value = 1;
otherwise
value = 2;
end
case 'gu'
switch tracer
case '[18f]fdg'
value = 1;
otherwise
value = 0;
end
otherwise
error('No default Magia-specs have been specified for the field %s.',lower(field_name));
end
end