Skip to content

Commit 064a1b7

Browse files
committed
update MoAE code
1 parent eba522a commit 064a1b7

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

demos/MoAE/moae_01_preproc.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
clear;
77
clc;
88

9-
download_data = true;
10-
clean = true;
9+
download_data = false;
10+
clean = false;
1111

1212
try
1313
run ../../initCppSpm.m;
@@ -20,12 +20,8 @@
2020

2121
reportBIDS(opt);
2222

23-
opt.pipeline.type = 'preproc';
24-
2523
bidsCopyInputFolder(opt);
2624

27-
bidsSTC(opt);
28-
2925
bidsSpatialPrepro(opt);
3026

3127
anatomicalQA(opt);

demos/MoAE/moae_03_create_roi_extract_data.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
subLabel = '01';
1717

1818
opt = moae_get_option_stats();
19+
opt.pipeline.type = 'stats';
20+
opt = checkOptions(opt);
1921

2022
%% Get the con image to extract data
2123
% we can do this by using the "label-XXXX"

demos/MoAE/moae_04_slice_display.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
subLabel = '01';
1919

2020
opt = moae_get_option_stats();
21+
opt.pipeline.type = 'stats';
22+
opt = checkOptions(opt);
2123

2224
use_schema = false;
2325
BIDS_ROI = bids.layout(opt.dir.roi, use_schema);
@@ -78,8 +80,8 @@
7880

7981
% we reuse the details for the SPM montage
8082
settings.slice.orientation = opt.result.Nodes(1).Output.montage.orientation;
81-
settings.slice.disp_slices = -15:3:30;
82-
settings.fig_specs.n.slice_column = 5;
83+
settings.slice.disp_slices = -15:3:18;
84+
settings.fig_specs.n.slice_column = 4;
8385
settings.fig_specs.title = opt.result.Nodes(1).Contrasts(1).Name;
8486

8587
%% Display the layers

demos/MoAE/moae_get_option_fmriprep_preproc.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
opt.space = {'MNI152NLin2009cAsym'};
2121

2222
opt.query.desc = {'preproc', 'confounds'};
23-
% opt.query.space = opt.space;
2423

2524
%% DO NOT TOUCH
2625
opt = checkOptions(opt);

demos/MoAE/moae_get_option_stats.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
opt.dir.roi = fullfile(opt.dir.derivatives, 'cpp_spm-roi');
2020
opt.dir.stats = fullfile(opt.dir.derivatives, 'cpp_spm-stats');
2121

22-
opt.pipeline.type = 'stats';
23-
24-
opt.space = {'IXI549Space'};
25-
2622
opt.model.file = fullfile(fileparts(mfilename('fullpath')), ...
2723
'models', 'model-MoAE_smdl.json');
2824
% to add the hrf temporal derivative = [1 0]

demos/MoAE/models/model-MoAE_smdl.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"BIDSModelVersion": "1.0.0",
44
"Description": "contrasts to compute for the FIL MoAE dataset",
55
"Input": {
6-
"task": "auditory"
6+
"task": "auditory",
7+
"space": "IXI549Space"
78
},
89
"Nodes": [
910
{
@@ -53,4 +54,4 @@
5354
]
5455
}
5556
]
56-
}
57+
}

0 commit comments

Comments
 (0)