|
7 | 7 | WD = fileparts(mfilename('fullpath')); |
8 | 8 |
|
9 | 9 | % we add all the subfunctions that are in the sub directories |
10 | | -addpath(fullfile(WD, '..')); |
11 | | -addpath(genpath(fullfile(WD, '..', 'src'))); |
12 | | -addpath(genpath(fullfile(WD, '..', 'lib'))); |
| 10 | +addpath(genpath(fullfile(WD, '..', '..', 'src'))); |
| 11 | +addpath(genpath(fullfile(WD, '..', '..', 'lib'))); |
13 | 12 |
|
14 | 13 | %% Run batches |
15 | 14 | opt = getOption(); |
16 | 15 |
|
17 | 16 | checkDependencies(); |
18 | 17 |
|
19 | | -% copy raw folder into derivatives folder |
20 | | -% BIDS_copyRawFolder(opt, 1) |
| 18 | +reportBIDS(opt); |
21 | 19 |
|
22 | | -% preprocessing |
23 | | -% BIDS_STC(opt); |
24 | | -% BIDS_SpatialPrepro(opt); |
25 | | -% BIDS_Smoothing(6, opt); |
| 20 | +bidsCopyRawFolder(opt, 1); |
| 21 | +% |
| 22 | +% % preprocessing |
| 23 | +bidsSTC(opt); |
| 24 | +bidsSpatialPrepro(opt); |
| 25 | + |
| 26 | +% Quality control |
| 27 | +anatomicalQA(opt); |
| 28 | + |
| 29 | +% Not implemented yet |
| 30 | +% bidsResliceTpmToFunc(opt); |
| 31 | +% functionalQA(opt); |
| 32 | + |
| 33 | +funcFWHM = 6; |
| 34 | +bidsSmoothing(funcFWHM, opt); |
26 | 35 |
|
27 | 36 | % subject level Univariate |
28 | | -% BIDS_FFX(1, 6, opt); |
29 | | -% BIDS_FFX(2, 6, opt); |
| 37 | +bidsFFX('specifyAndEstimate', opt, funcFWHM); |
| 38 | +bidsFFX('contrasts', opt, funcFWHM); |
30 | 39 |
|
31 | 40 | % group level univariate |
32 | | -BIDS_RFX(1, 6, 6); |
33 | | -BIDS_RFX(2, 6, 6); |
| 41 | +conFWHM = 6; |
| 42 | +bidsRFX('smoothContrasts', funcFWHM, conFWHM, opt); |
34 | 43 |
|
35 | | -BIDS_Results(6, 6, opt, 0); |
| 44 | +% Not implemented yet |
| 45 | +% bidsRFX('RFX', funcFWHM, conFWHM, opt); |
36 | 46 |
|
| 47 | +% Not implemented yet |
37 | 48 | % subject level multivariate |
38 | | -% isMVPA=1; |
39 | | -% BIDS_FFX(1, 6, opt, isMVPA); |
40 | | -% BIDS_FFX(2, 6, opt, isMVPA); |
41 | | -% make4Dmaps(6,opt) |
| 49 | +% opt.model.file = fuufile(WD, ... |
| 50 | +% 'models', ... |
| 51 | +% 'model-motionDecodingMultivariate_smdl.json'); |
| 52 | +% |
| 53 | +% bidsFFX('specifyAndEstimate', opt, funcFWHM); |
| 54 | +% bidsFFX('contrasts', opt, funcFWHM); |
| 55 | +% concatBetaImgTmaps(funcFWHM, opt); |
0 commit comments