Home > fmri > fsl > set_fsf_defaults.m

set_fsf_defaults

PURPOSE ^

fsf = set_fsf_defaults(fsf);

SYNOPSIS ^

function fsf = set_fsf_defaults(fsf, setname)

DESCRIPTION ^

 fsf = set_fsf_defaults(fsf);

 Sets fields of the FEAT analysis structure (fsf) according to the defaults
 associate with a particular set of settings.

 setname - name of set

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function fsf = set_fsf_defaults(fsf, setname)
0002 % fsf = set_fsf_defaults(fsf);
0003 %
0004 % Sets fields of the FEAT analysis structure (fsf) according to the defaults
0005 % associate with a particular set of settings.
0006 %
0007 % setname - name of set
0008 %
0009 
0010 % 11/03/05 Petr Janata
0011 
0012 try fsf; catch fsf=[]; end
0013 try setname; catch setname = ''; end
0014 
0015 if isempty(setname) | isempty(fsf)
0016   fsf = create_fsf;
0017 end
0018 
0019 switch setname
0020   case {'remove_physio','remove_variance'}
0021     fsf.analysis = 2;  % 2=stats only
0022     fsf.poststats_yn = 0;
0023     fsf.paradigm_hp = 0;
0024     fsf.prewhiten_yn = 0; % no prewhitening
0025     fsf.filtering_yn = 0; % no filtering
0026     fsf.mc = 0;  % turn motion-correction off
0027     fsf.bet_yn = 0; % no brain extraction
0028     fsf.smooth = 0; % no smoothing
0029     fsf.regstandard_yn = 0;  % no registration
0030     
0031     fsf.con_mode_old = 'real';
0032     fsf.con_mode = 'real';
0033     
0034   case 'evaluate_physio'
0035     fsf.paradigm_hp = 0;
0036     fsf.prewhiten_yn = 0; % no prewhitening
0037     fsf.filtering_yn = 0; % no filtering
0038     fsf.analysis = 6;  % 4=Stats + Contrasts, Thresholding, Rendering
0039     fsf.thresh=2;  % 0=None, 1=Uncorrected, 2=Voxel, 3=Cluster
0040     fsf.regstandard_yn = 0;  % no registration
0041     fsf.mc = 0;
0042     fsf.bet_yn = 0;
0043     fsf.smooth = 0;
0044     fsf.con_mode_old = 'real';
0045     fsf.con_mode = 'real';
0046     fsf.stats_yn = 1;
0047     fsf.poststats_yn = 1;
0048     fsf.featwatcher_yn = 1;
0049     fsf.tsplot_yn = 1;
0050     
0051   case 'coreg'
0052     fsf.analysis = 0;  % Registration
0053     fsf.reginitial_highres_yn=1; % coplanar
0054     fsf.reghighres_yn=1; % high res
0055     fsf.regstandard_yn = 1;
0056     fsf.stats_yn = 0;
0057     fsf.poststats_yn = 0;
0058     fsf.reg_yn=1;
0059     
0060   case 'subject_sess_run'
0061     fsf.level = 2;  % 2=higher level analysis
0062     fsf.analysis = 6; % 6=stats+post-stats
0063     fsf.inputtype = 1;  % 1 : Inputs are lower-level FEAT directories
0064 end

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003