|
11 | 11 |
|
12 | 12 | opt = set_spm_2_bids_defaults(opt); |
13 | 13 |
|
| 14 | + map = opt.spm_2_bids; |
| 15 | + |
14 | 16 | switch lower(workflowName) |
15 | 17 |
|
16 | 18 | case 'spatialprepro' |
17 | 19 |
|
18 | 20 | if ~opt.realign.useUnwarp |
19 | | - opt.spm_2_bids = opt.spm_2_bids.add_mapping('prefix', opt.spm_2_bids.realign, ... |
20 | | - 'name_spec', opt.spm_2_bids.cfg.preproc); |
| 21 | + map = map.add_mapping('prefix', map.realign, ... |
| 22 | + 'name_spec', map.cfg.preproc); |
21 | 23 |
|
22 | | - opt.spm_2_bids = opt.spm_2_bids.add_mapping('prefix', [opt.spm_2_bids.realign 'mean'], ... |
23 | | - 'name_spec', opt.spm_2_bids.cfg.mean); |
24 | | - opt.spm_2_bids = opt.spm_2_bids.flatten_mapping(); |
| 24 | + map = map.add_mapping('prefix', [map.realign 'mean'], ... |
| 25 | + 'name_spec', map.cfg.mean); |
25 | 26 | end |
26 | 27 |
|
27 | 28 | case 'realignreslice' |
28 | 29 |
|
29 | | - opt.spm_2_bids = opt.spm_2_bids.add_mapping('prefix', opt.spm_2_bids.realign, ... |
30 | | - 'name_spec', opt.spm_2_bids.cfg.preproc); |
| 30 | + map = map.add_mapping('prefix', map.realign, ... |
| 31 | + 'name_spec', map.cfg.preproc); |
31 | 32 |
|
32 | | - opt.spm_2_bids = opt.spm_2_bids.add_mapping('prefix', [opt.spm_2_bids.realign 'mean'], ... |
33 | | - 'name_spec', opt.spm_2_bids.cfg.mean); |
| 33 | + map = map.add_mapping('prefix', [map.realign 'mean'], ... |
| 34 | + 'name_spec', map.cfg.mean); |
34 | 35 |
|
35 | 36 | case 'reslicetpmtofunc' |
36 | 37 |
|
37 | 38 | name_spec.entities.res = 'bold'; |
38 | | - opt.spm_2_bids = opt.spm_2_bids.add_mapping('prefix', opt.spm_2_bids.realign, ... |
39 | | - 'name_spec', name_spec); |
| 39 | + map = map.add_mapping('prefix', map.realign, ... |
| 40 | + 'name_spec', name_spec); |
40 | 41 |
|
41 | 42 | case 'lesionsegmentation' |
42 | 43 |
|
43 | | - map = opt.spm_2_bids; |
44 | | - |
45 | 44 | res = opt.toolbox.ALI.unified_segmentation.step1vox; |
46 | 45 | res = ['r' convertToStr(res)]; |
47 | 46 | fwhm = opt.toolbox.ALI.unified_segmentation.step1fwhm; |
|
110 | 109 |
|
111 | 110 | end |
112 | 111 |
|
113 | | - opt.spm_2_bids = map.flatten_mapping(); |
| 112 | + map = map.flatten_mapping(); |
| 113 | + |
| 114 | + opt.spm_2_bids = map; |
114 | 115 |
|
115 | 116 | end |
116 | 117 |
|
|
0 commit comments