|
38 | 38 |
|
39 | 39 | opt = checkOptions(opt); |
40 | 40 |
|
41 | | -use_schema = false; |
42 | | -BIDS_ROI = bids.layout(opt.dir.roi, 'use_schema', use_schema); |
43 | | - |
44 | | -filter = struct('sub', subLabel, ... |
45 | | - 'hemi', 'R', ... |
46 | | - 'desc', 'auditoryCortex'); |
47 | | - |
48 | | -rightRoiFile = bids.query(BIDS_ROI, 'data', filter); |
49 | | - |
50 | 41 | % we get the con image to extract data |
51 | 42 | ffxDir = getFFXdir(subLabel, opt); |
52 | 43 | maskImage = spm_select('FPList', ffxDir, '^.*_mask.nii$'); |
|
60 | 51 | [anat_normalized_file, anatRange] = return_normalized_anat_file(opt, subLabel); |
61 | 52 | layers(1).color.file = anat_normalized_file; |
62 | 53 | layers(1).color.range = [0 anatRange(2)]; |
63 | | - |
64 | 54 | layers(1).color.map = gray(256); |
65 | 55 |
|
66 | 56 | %% Layer 2: Dual-coded layer |
|
83 | 73 | spmTImage = spm_select('FPList', ffxDir, ['^spmT_' bf.entities.label '.nii$']); |
84 | 74 | layers(2).opacity.file = spmTImage; |
85 | 75 |
|
86 | | -layers(2).opacity.range = [2 3]; |
| 76 | +layers(2).opacity.range = [0 3]; |
87 | 77 | layers(2).opacity.label = '| t |'; |
88 | 78 |
|
89 | 79 | %% Layer 3 and 4: Contour of ROI |
90 | | - |
91 | | -roi = spm_select('FPList', ffxDir, ['^sub_.*' bf.entities.label '.*_mask.nii$']); |
92 | | - |
93 | | -layers(3).color.file = rightRoiFile{1}; |
| 80 | +contour = spm_select('FPList', ffxDir, ['^sub.*' bf.entities.label '.*_mask.nii']); |
| 81 | +layers(3).color.file = contour; |
94 | 82 | layers(3).color.map = [0 0 0]; |
95 | 83 | layers(3).color.line_width = 2; |
96 | 84 |
|
|
0 commit comments