|
6 | 6 | run ../../initCppRoi; |
7 | 7 |
|
8 | 8 | gunzip(fullfile('inputs', '*.gz')); |
9 | | -zMap = fullfile(pwd, 'inputs', 'visual_motion_association-test_z_FDR_0.01.nii'); |
| 9 | +zMap = fullfile(pwd, 'inputs', 'visual motion_association-test_z_FDR_0.01.nii'); |
10 | 10 |
|
11 | 11 | zMap = renameNeuroSynth(zMap); |
12 | 12 | roiImage = thresholdToMask(zMap, 5); |
|
16 | 16 | rightRoiImage = keepHemisphere(roiImage, 'R'); |
17 | 17 |
|
18 | 18 | % change the label entity and remove the hs one |
19 | | -leftRoiImage = renameFile(leftRoiImage, ... |
20 | | - struct('entities', struct( ... |
21 | | - 'label', 'ns left motion', ... |
22 | | - 'hemi', ''))); |
23 | | -rightRoiImage = renameFile(rightRoiImage, ... |
24 | | - struct('entities', struct( ... |
25 | | - 'label', 'ns right motion', ... |
26 | | - 'hemi', ''))); |
| 19 | +specification = struct('entities', struct('label', 'ns left motion', ... |
| 20 | + 'hemi', '')); |
| 21 | +bf = bids.File(leftRoiImage); |
| 22 | +bf = bf.rename('spec', specification, 'dry_run', false, 'verbose', true); |
| 23 | +leftRoiImage = fullfile(bf.path, bf.filename); |
| 24 | + |
| 25 | +specification.entities.label = 'ns right motion'; |
| 26 | +bf = bids.File(rightRoiImage); |
| 27 | +bf = bf.rename('spec', specification, 'dry_run', false, 'verbose', true); |
| 28 | +rightRoiImage = fullfile(bf.path, bf.filename); |
0 commit comments