ps = init_phys_struct() Initializes a structure with various control variables for reading files containing accessory physiological data such as heart rate, respiration, etc. Initially written to support analyses of fMRI data
0001 function ps = init_phys_struct(config) 0002 % ps = init_phys_struct() 0003 % 0004 % Initializes a structure with various control variables for reading files 0005 % containing accessory physiological data such as heart rate, respiration, etc. 0006 % 0007 % Initially written to support analyses of fMRI data 0008 % 0009 0010 % 10/28/05 Petr Janata 0011 % 03/16/08 FB - added config, passed on to init_physmon_params 0012 0013 ps.dataroot = ''; % common global root of all data files 0014 ps.datapath = ''; % experiment specific path 0015 ps.phys_data_stub = ''; 0016 ps.phys_data_suffix = ''; 0017 ps.logfid = 1; 0018 0019 ps.cardiac_slop_s = 2; 0020 ps.nslice_per_vol = []; 0021 ps.elim_runs = []; 0022 0023 % Initialize more specific parsing parameters 0024 ps.pp = init_physmon_params(config); 0025 0026 expect.nruns = []; 0027 expect.pos_events_per_run = []; 0028 expect.pos_events = []; 0029 expect.neg_events_per_run = []; 0030 expect.neg_events = []; 0031 0032 ps.expect = expect; 0033 0034 ps.verbose = 0;