@@ -16,7 +16,7 @@ function bidspm(varargin)
1616 isEmptyOrCellstr = @(x ) isempty(x ) || iscellstr(x ); % #ok<*ISCLSTR>
1717 isFileOrStruct = @(x ) isstruct(x ) || exist(x , ' file' ) == 2 ;
1818
19- isLogical = @(x ) islogial (x ) && numel(x ) == 1 ;
19+ isLogical = @(x ) islogical (x ) && numel(x ) == 1 ;
2020 isChar = @(x ) ischar(x );
2121 isPositiveScalar = @(x ) isnumeric(x ) && numel(x ) == 1 && x >= 0 ;
2222
@@ -51,6 +51,7 @@ function bidspm(varargin)
5151 addParameter(args , ' preproc_dir' , pwd , isFolder );
5252 addParameter(args , ' model_file' , struct([]), isFileOrStruct );
5353 addParameter(args , ' roi_based' , false , isLogical );
54+ addParameter(args , ' design_only' , false , isLogical );
5455 % group level stats only
5556 addParameter(args , ' node_name' , ' ' , isChar );
5657
@@ -195,6 +196,7 @@ function bidspm(varargin)
195196 % stats
196197 opt.dir.preproc = args .Results .preproc_dir ;
197198 opt.model.file = args .Results .model_file ;
199+ opt.model.designOnly = args .Results .design_only ;
198200
199201 opt = overrideRoiBased(opt , args );
200202
@@ -322,16 +324,27 @@ function stats(args)
322324 contrasts = ismember(action , {' stats' , ' contrasts' });
323325 results = ismember(action , {' stats' , ' contrasts' , ' results' });
324326
327+ if opt .model .designOnly
328+ contrasts = false ;
329+ results = false ;
330+ end
331+
325332 if opt .glm .roibased .do
326333
327334 bidsFFX(' specify' , opt );
328- bidsRoiBasedGLM(opt );
335+ if ~opt .model .designOnly
336+ bidsRoiBasedGLM(opt );
337+ end
329338
330339 else
331340
332341 if estimate
333342 if isSubjectLevel
334- bidsFFX(' specifyAndEstimate' , opt );
343+ if opt .model .designOnly
344+ bidsFFX(' specify' , opt );
345+ else
346+ bidsFFX(' specifyAndEstimate' , opt );
347+ end
335348 else
336349 bidsRFX(' RFX' , opt , ' nodeName' , nodeName );
337350 end
0 commit comments