Skip to content

Commit 5cc95e9

Browse files
committed
move batch_download_run files in a demo folder
1 parent 2530bb4 commit 5cc95e9

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

batch_download_run.m renamed to demo/batch_download_run.m

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
% tutorial and will run the basic preprocessing, FFX and contrasts on it.
33
% Results might be a bit different from those in the manual as some
44
% default options are slightly different in this pipeline (e.g use of FAST
5-
% instead of AR(1))
5+
% instead of AR(1), motion regressors added)
66

77
clear
88
clc
@@ -14,8 +14,11 @@
1414
% URL of the data set to download
1515
URL = 'http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip';
1616

17-
WD = pwd; % the directory with this script becomes the current directory
18-
addpath(genpath(WD)) % we add all the subfunctions that are in the sub directories
17+
% directory with this script becomes the current directory
18+
WD = fileparts(mfilename('fullpath'));
19+
20+
% we add all the subfunctions that are in the sub directories
21+
addpath(genpath(fullfile(WD, '..')))
1922

2023

2124
%% Set options
@@ -40,7 +43,7 @@
4043

4144
% specify the model file that contains the contrasts to compute
4245
opt = rmfield(opt, 'model');
43-
opt.model.univariate.file = fullfile(WD, 'model-MoAE_smdl.json');
46+
opt.model.univariate.file = fullfile(WD, 'demo', 'model-MoAE_smdl.json');
4447

4548

4649
%% Get data
File renamed without changes.

getOption.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424

25-
% The directory where the derivatives are located
25+
% The directory where the data are located
2626

2727
% opt.dataDir = '/Users/mohamed/Desktop/MotionWorkshop/raw';
2828
% opt.dataDir = '/Users/mohamed/Desktop/Data/raw';

0 commit comments

Comments
 (0)