Skip to content

Commit 4b25c7f

Browse files
committed
[DATALAD] Recorded changes
1 parent cc07d95 commit 4b25c7f

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

demos/MoAE/moae_03_slice_display.m

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@
3838

3939
opt = checkOptions(opt);
4040

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-
5041
% we get the con image to extract data
5142
ffxDir = getFFXdir(subLabel, opt);
5243
maskImage = spm_select('FPList', ffxDir, '^.*_mask.nii$');
@@ -60,7 +51,6 @@
6051
[anat_normalized_file, anatRange] = return_normalized_anat_file(opt, subLabel);
6152
layers(1).color.file = anat_normalized_file;
6253
layers(1).color.range = [0 anatRange(2)];
63-
6454
layers(1).color.map = gray(256);
6555

6656
%% Layer 2: Dual-coded layer
@@ -83,14 +73,12 @@
8373
spmTImage = spm_select('FPList', ffxDir, ['^spmT_' bf.entities.label '.nii$']);
8474
layers(2).opacity.file = spmTImage;
8575

86-
layers(2).opacity.range = [2 3];
76+
layers(2).opacity.range = [0 3];
8777
layers(2).opacity.label = '| t |';
8878

8979
%% 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;
9482
layers(3).color.map = [0 0 0];
9583
layers(3).color.line_width = 2;
9684

0 commit comments

Comments
 (0)