Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions demos/MoAE/moae_run.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,29 @@
bidsCopyRawFolder(opt, 1);

% In case you just want to run segmentation and skull stripping
% bidsSegmentSkullStrip(opt);
%
% NOTE: skull stripping is also included in 'bidsSpatialPrepro'
bidsSegmentSkullStrip(opt);

bidsSTC(opt);

bidsSpatialPrepro(opt);

% The following do not run on octave for now (because of spmup)
anatomicalQA(opt);
bidsResliceTpmToFunc(opt);
functionalQA(opt);

% anatomicalQA(opt);
% bidsResliceTpmToFunc(opt);
% functionalQA(opt);

% create a whole brain functional mean image mask
% so the mask will be in the same resolution/space as the functional images
% one may not need it if they are running bidsFFX
% since it creates a mask.nii by default
opt.skullstrip.mean = 1;
mask = bidsWholeBrainFuncMask(opt);

% smoooth the funcitional images
bidsSmoothing(FWHM, opt);

% The following crash on CI
WD = pwd;
% The following crash on Travis CI
bidsFFX('specifyAndEstimate', opt, FWHM);
cd(WD);
bidsFFX('contrasts', opt, FWHM);
cd(WD);
bidsResults(opt, FWHM);
cd(WD);
Loading