|
18 | 18 | WD = fileparts(mfilename('fullpath')); |
19 | 19 |
|
20 | 20 | % we add all the subfunctions that are in the sub directories |
21 | | -addpath(genpath(fullfile(WD, '..'))); |
| 21 | +addpath(genpath(fullfile(WD, '..', 'src'))); |
| 22 | +addpath(genpath(fullfile(WD, '..', 'lib'))); |
22 | 23 |
|
23 | 24 | %% Set options |
24 | 25 | opt = getOption(); |
|
37 | 38 | opt.STC_referenceSlice = []; |
38 | 39 | opt.sliceOrder = []; |
39 | 40 | opt.funcVoxelDims = []; |
40 | | -opt.JOBS_dir = fullfile(opt.dataDir, '..', 'derivatives', 'SPM12_CPPL', 'JOBS', opt.taskName); |
| 41 | +opt.jobsDir = fullfile(opt.dataDir, '..', 'derivatives', 'SPM12_CPPL', 'JOBS', opt.taskName); |
41 | 42 |
|
42 | 43 | % specify the model file that contains the contrasts to compute |
43 | 44 | opt = rmfield(opt, 'model'); |
|
63 | 64 | 'NIDM', true); |
64 | 65 |
|
65 | 66 | %% Get data |
66 | | -fprintf('%-40s:', 'Downloading dataset...'); |
67 | | -urlwrite(URL, 'MoAEpilot.zip'); |
68 | | -unzip('MoAEpilot.zip', fullfile(WD, 'output')); |
| 67 | +% fprintf('%-40s:', 'Downloading dataset...'); |
| 68 | +% urlwrite(URL, 'MoAEpilot.zip'); |
| 69 | +% unzip('MoAEpilot.zip', fullfile(WD, 'output')); |
69 | 70 |
|
70 | 71 | %% Check dependencies |
71 | 72 | % If toolboxes are not in the MATLAB Directory and needed to be added to |
|
80 | 81 | checkDependencies(); |
81 | 82 |
|
82 | 83 | %% Run batches |
83 | | -BIDS_copyRawFolder(opt, 1); |
84 | | -BIDS_STC(opt); |
85 | | -BIDS_SpatialPrepro(opt); |
86 | | -BIDS_Smoothing(FWHM, opt); |
87 | | -BIDS_FFX(1, FWHM, opt, 0); |
88 | | -BIDS_FFX(2, FWHM, opt, 0); |
89 | | -BIDS_Results(FWHM, opt, 0); |
| 84 | +bidsCopyRawFolder(opt, 1); |
| 85 | +bidsSTC(opt); |
| 86 | +bidsSpatialPrepro(opt); |
| 87 | +bidsSmoothing(FWHM, opt); |
| 88 | +bidsFFX(1, FWHM, opt, 0); |
| 89 | +bidsFFX(2, FWHM, opt, 0); |
| 90 | +bidsResults(FWHM, [], opt, 0); |
0 commit comments