Commit 1f8ac913 authored by Mike Cichonski's avatar Mike Cichonski
Browse files

Merge branch 'dev' into 'master'

Merge documentation and config changes



See merge request !14
parents 2d37fd43 fd84e0b5
file_name
c01_scalpart_remote.cfg
exec_func
ef_sbatch
replace_string
[in_path],[]
[montage_info],
[staging_script],derivatives/lossless/code/scripts/staging_script.m
[aref_trim],30
[recur_sec],1
[limit_sec],[0 1]
[sd_t_meth],q
[sd_t_vals],[.3 .7]
[sd_t_o],6
[sd_t_f_meth],fixed
[sd_t_f_vals],
[sd_t_f_o],.2
[sd_t_pad],1
[sd_ch_meth],q
[sd_ch_vals],[.3 .7]
[sd_ch_o],6
[sd_ch_f_meth],fixed
[sd_ch_f_vals],
[sd_ch_f_o],.2
[ref_loc_file],derivatives/lossless/code/misc/standard_1020_bucanl19.elc
[low_bound_hz],
[high_bound_hz],
[save_f_res],1
[n_nbr_ch],3
[r_ch_meth],q
[r_ch_vals],[.3 .7]
[r_ch_o],6
[r_ch_f_meth],fixed
[r_ch_f_vals],
[r_ch_f_o],.2
[bridge_trim],40
[bridge_z],6
[n_nbr_t],3
[r_t_meth],q
[r_t_vals],[.3 .7]
[r_t_o],6
[r_t_f_meth],fixed
[r_t_f_vals],
[r_t_f_o],.2
[min_gap_ms],2000
[out_path],derivatives/lossless
[amica_param_file],derivatives/lossless/code/misc/amica15_default.param
[amica_threads_s02],8
order
1
session_init
derivatives/lossless/code/config/octave.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
m_init
derivatives/lossless/code/config/octave.minit
submit_options
--account=def-bucanl
memory
8g
time_limit
1h
mpi
false
num_tasks
1
threads_per_task
software
octave
program_options
file_name
c02_amica_init_remote.cfg
exec_func
ef_sbatch
replace_string
[dep_path],derivatives/lossless/code/dependencies/eeglab_asr_amica/plugins/amica
[in_path],analysis/data/2_preproc
[amica_ver],amica15
order
[2 1]
session_init
derivatives/lossless/code/config/amica.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
derivatives/lossless/code/config/amica.jobinit
m_init
submit_options
--account=def-bucanl
memory
2G
time_limit
2h
mpi
true
num_tasks
threads_per_task
8
software
none
program_options
file_name
c03_compart_data_remote.cfg
exec_func
ef_sbatch
replace_string
[in_path],derivatives/lossless
[recur_sec],1
[limit_sec],[0 1]
[sd_t_meth],q
[sd_t_vals],[.3 .7]
[sd_t_o],6
[sd_t_f_meth],fixed
[sd_t_f_vals],
[sd_t_f_o],.2
[min_gap_ms],2000
[out_path],derivatives/lossless
[amica_param_file],derivatives/lossless/code/misc/amica_default.param
[amica_threads_s04],8
order
[3 2]
session_init
derivatives/lossless/code/config/octave.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
m_init
derivatives/lossless/code/config/octave.minit
submit_options
--account=def-bucanl
memory
8g
time_limit
1h
mpi
false
num_tasks
threads_per_task
software
octave
program_options
file_name
c04a_amica_remote.cfg
exec_func
ef_sbatch
replace_string
[dep_path],derivatives/lossless/code/dependencies/eeglab_asr_amica/plugins/amica
[in_path],analysis/data/2_preproc
[amica_ver],amica15
order
[4 3]
session_init
derivatives/lossless/code/config/amica.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
derivatives/lossless/code/config/amica.jobinit
m_init
submit_options
--account=def-bucanl
memory
2G
time_limit
2h
mpi
true
num_tasks
threads_per_task
8
software
none
program_options
file_name
c04b_amica_remote.cfg
exec_func
ef_sbatch
replace_string
[dep_path],derivatives/lossless/code/dependencies/eeglab_asr_amica/plugins/amica
[in_path],analysis/data/2_preproc
[amica_ver],amica15
order
[4 3]
session_init
derivatives/lossless/code/config/amica.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
derivatives/lossless/code/config/amica.jobinit
m_init
submit_options
--account=def-bucanl
memory
2G
time_limit
2h
mpi
true
num_tasks
threads_per_task
8
software
none
program_options
file_name
c04c_amica_remote.cfg
exec_func
ef_sbatch
replace_string
[dep_path],derivatives/lossless/code/dependencies/eeglab_asr_amica/plugins/amica
[in_path],analysis/data/2_preproc
[amica_ver],amica15
order
[4 3]
session_init
derivatives/lossless/code/config/amica.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
derivatives/lossless/code/config/amica.jobinit
m_init
submit_options
--account=def-bucanl
memory
1G
time_limit
1h
mpi
true
num_tasks
threads_per_task
8
software
none
program_options
file_name
c05_concat_data_remote.cfg
exec_func
ef_sbatch
replace_string
[in_path],derivatives/lossless
[recur_sec],1
[limit_sec],[0 1]
[sd_t_meth],q
[sd_t_vals],[.3 .7]
[sd_t_o],6
[sd_t_f_meth],fixed
[sd_t_f_vals],
[sd_t_f_o],.2
[min_gap_ms],2000
[icr_crit],0.05
[dip_vol], derivatives/lossless/code/misc/standard_vol.mat
[dip_mri], derivatives/lossless/code/misc/standard_mri.mat
[dip_elc], derivatives/lossless/code/misc/standard_1020.elc
[dip_transmat], [0 0 0 0 0 0 1 1 1]
[cor_transmat], [0,0,0,0,0,1.57,1,1,1]
[cor_nosedir], +X
[out_path],derivatives/lossless
order
[5 4]
session_init
derivatives/lossless/code/config/octave.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
m_init
derivatives/lossless/code/config/octave.minit
submit_options
--account=def-bucanl
memory
8g
time_limit
2h
mpi
false
num_tasks
threads_per_task
8
software
octave
program_options
\ No newline at end of file
file_name
c99_clean.cfg
exec_func
ef_sbatch
replace_string
[in_path],anaylsis/log
[preproc_amica_param],true
[preproc_amicaout],true
[preproc_concat_data],true
[preproc_concat_asr],false
[preproc_sa],true
[preproc_sa_purge],true
[preproc_asr],true
[preproc_asr_purge],true
[preproc_compart_data_purge],true
[preproc_compart_data],true
[preproc_dip],false
[trash_root],true
[zip_successful_logs],true
[delete_successful_logs],true
[use_system_xz],true
[use_system_gzip],false
[use_zip],false
order
[13 12]
session_init
analysis/support/config/octave.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
m_init
analysis/support/config/octave.minit
qsub_options
memory
3g
time_limit
20m
mpi
false
num_processors
1
software
octave
program_options
file_name
c20_rebuild_remote.cfg
exec_func
ef_sqsub
replace_string
[in_path],analysis/data/2_preproc
[ori_in_path],analysis/data/1_init
[out_path],analysis/data/2_preproc
[datafile],concat_asrdata
[remasrloss],'YES'
[remfilterloss],'YES'
order
[20]
session_init
analysis/support/config/octave.sesinit
job_name
[batch_hfn,.,1]_[/,-1,batch_dfn,.,-1]
mfile_name
[/,-1,batch_dfn,.,-1]
job_init
m_init
analysis/support/config/octave.minit
qsub_options
-r 1h --mpp 6G
memory
6g
time_limit
1h
mpi
false
numprocesors
1
software
octave
program_options
...@@ -10,36 +10,48 @@ ...@@ -10,36 +10,48 @@
% in_path = [in_path] Relative path to input data files assuming cd = work_path % in_path = [in_path] Relative path to input data files assuming cd = work_path
% montage_info = [montage_info] Montage information to fit channel locations on a standard surface. % montage_info = [montage_info] Montage information to fit channel locations on a standard surface.
% This can be a transformations matrix (e.g. [-.14,-22,-48,-.07,0,-1.57,1080,1260,1240]) % This can be a transformations matrix (e.g. [-.14,-22,-48,-.07,0,-1.57,1080,1260,1240])
% ... or a a file contasining a transformation matrix (e.g. [batch_dfn]_transmat.mat). % ... or a a file containing a transformation matrix (e.g. [batch_dfn]_transmat.mat).
% ... or a BIDS channel location tsv file (assuming that during BIDS init the channels were coregistered to the standard surface). % ... or a BIDS channel location tsv file (assuming that during BIDS init the channels were coregistered to the standard surface).
% staging_script = [staging_script] Scipt file path/name that creates marks based on events in the raw data file. % staging_script = [staging_script] Scipt file path/name that creates marks based on events in the raw data file.
% aref_trim = [aref_trim] Trim of mean for initial average rereference (e.g. 30 = 15% off each side)
% recur_sec = [recur_sec] Recurrence (sec) for artifact detection epoching (e.g. .5, Default 1) % recur_sec = [recur_sec] Recurrence (sec) for artifact detection epoching (e.g. .5, Default 1)
% limit_sec = [limit_sec] Limits (sec) for artifact detection epoching (e.g. [-.5 0], Default [0 recur_sec]) % limit_sec = [limit_sec] Limits (sec) for artifact detection epoching (e.g. [-.5 0], Default [0 recur_sec])
% sd_epoch_z = [sd_epoch_z] z threshold for flagging epochs during standard deviation criteria (e.g. 6) % sd_t_meth = [sd_t_meth] Method used for flagging epochs (e.g. 'q' (quantiles), or 'na' (default))
% sd_epoch_p = [sd_epoch_p] Percentage of flagged channels required to flag an epoch during standard deviation criteria (e.g. .1) % sd_t_vals = [sd_t_vals] Percentage trim for confidence intervals during epoch standard deviation criteria (e.g. [.3 .7])
% sd_epoch_trim = [sd_epoch_trim] Percentage trim for confidence intervals during epoch standard deviation criteria (10 = 5% top and bottom) % sd_t_o = [sd_t_o] z threshold for flagging epochs during standard deviation criteria (e.g. 6)
% sd_epoch_pad = [sd_epoch_pad] Number of windows to pad onto each side of the ch_sd time flag % sd_t_f_meth = [sd_t_f_meth] Fixed method used for flagging epochs (should be 'fixed')
% sd_chan_z = [sd_chan_z] z threshold for flagging channel during standard deviation criteria (e.g. 6) % sd_t_f_vals = [sd_t_f_vals] Percentage trim for confidence intervals during epoch standard deviation criteria (e.g. [.3 .7], leave empty for 'fixed')
% sd_chan_p = [sd_chan_p] Percentage of flagged epochs required to flag a channel during standard deviation criteria (e.g. .1) % sd_t_f_o = [sd_t_f_o] z threshold for flagging epochs during fixed standard deviation criteria (e.g. .2)
% sd_chan_trim = [sd_chan_trim] Percentage trim for confidence intervals during channel standard deviation criteria (10 = 5% top and bottom) % sd_t_pad = [sd_t_pad] Number of windows to pad onto each side of the ch_sd time flag
% sd_ch_meth = [sd_ch_meth] Method used for flagging channels (e.g. 'q' (quantiles), or 'na' (default))
% sd_ch_vals = [sd_ch_vals] Percentage trim for confidence intervals during channel standard deviation criteria (e.g. [.3 .7])
% sd_ch_o = [sd_ch_o] z threshold for flagging channels during standard deviation criteria (e.g. 6)
% sd_ch_f_meth = [sd_ch_f_meth] Fixed method used for flagging channels (should be 'fixed')
% sd_ch_f_vals = [sd_ch_f_vals] Percentage trim for confidence intervals during channel standard deviation criteria (e.g. [.3 .7], leave empty for 'fixed')
% sd_ch_f_o = [sd_ch_f_o] z threshold for flagging channel during fixed standard deviation criteria (e.g. 6)
% ref_loc_file = [ref_loc_file] Name of file containing the reference locations (including the relative path) % ref_loc_file = [ref_loc_file] Name of file containing the reference locations (including the relative path)
% low_bound_hz = [low_bound_hz] Lower bound of the filter bass-band % low_bound_hz = [low_bound_hz] Lower bound of the filter bass-band
% high_bound_hz = [high_bound_hz] Upper bound of the filter bass-band % high_bound_hz = [high_bound_hz] Upper bound of the filter bass-band
% n_neighb_chan = [n_neighb_chan] Number of channels to use in nearest neighbour r calculation (for channel criteria) % save_f_res = [save_f_res] 1 if you want to save the filter residuals (Default: 1)
% r_chan_z = [r_chan_z] z threshold for flagging channel during neighbour r criteria (e.g. 3) % n_nbr_ch = [n_nbr_ch] Number of channels to use in nearest neighbour r calculation (for channel criteria)
% r_chan_p = [r_chan_p] Percentage of flagged epochs required to flag a channel during neighbour r criteria (e.g. .1) % r_ch_meth = [sd_ch_meth] Method used for flagging low r channels (e.g. 'q' (quantiles), or 'na' (default))
% r_chan_trim = [r_chan_trim] Percentage trim for confidence intervals during channel neighbour r criteria (10 = 5% top and bottom) % r_ch_vals = [sd_ch_vals] Percentage trim for confidence intervals during low r channel standard deviation criteria (e.g. [.3 .7])
% r_ch_o = [r_ch_o] z threshold for flagging channel during neighbour r criteria (e.g. 3)
% r_ch_f_meth = [r_ch_f_meth] Fixed method used for flagging low r channels (should be 'fixed')
% r_ch_f_vals = [r_ch_f_vals] Percentage trim for confidence intervals during low r channel standard deviation criteria (e.g. [.3 .7], leave empty for 'fixed')
% r_ch_f_o = [r_ch_f_o] z threshold for flagging channel during fixed neighbour r criteria (e.g. 3)
% bridge_trim = [bridge_trim] Percentage trim for z calculation of bridged channels (e.g. 40 = 20% top and bottom) % bridge_trim = [bridge_trim] Percentage trim for z calculation of bridged channels (e.g. 40 = 20% top and bottom)
% bridge_z = [bridge_z] z threshold for flagging channel during bridging criteria (e.g. 8) % bridge_z = [bridge_z] z threshold for flagging channel during bridging criteria (e.g. 8)
% n_neighb_epoch = [n_neighb_epoch] Number of channels to use in nearest neighbour r calculation (for epoch criteria) % n_nbr_t = [n_nbr_t] Number of channels to use in nearest neighbour r calculation (for epoch criteria)
% epoch_z = [epoch_z] z threshold for flagging epochs during neighbour r criteria (e.g. 3) % r_t_meth = [r_t_meth] Method used for flagging low r epochs (e.g. 'q' (quantiles), or 'na' (default))
% epoch_p = [epoch_p] Percentage of flagged channels required to flag an epoch during neighbour r criteria (e.g. .1) % r_t_vals = [r_t_vals] Percentage trim for confidence intervals during low r epoch standard deviation criteria (e.g. [.3 .7])
% epoch_trim = [epoch_trim] Percentage trim for confidence intervals during epoch neighbour r criteria (10 = 5% top and bottom) % r_t_o = [r_t_o] z threshold for flagging epochs during neighbour r criteria (e.g. 3)
% r_t_f_meth = [r_t_f_meth] Fixed method used for flagging low r epochs (should be 'fixed')
% r_t_f_vals = [r_t_f_vals] Percentage trim for confidence intervals during low r epoch standard deviation criteria (e.g. [.3 .7], leave empty for 'fixed')
% r_t_f_o = [r_t_f_o] z threshold for flagging epochs during fixed neighbour r criteria (e.g. 3)
% min_gap_ms = [min_gap_ms] Minimum time (ms) to allow between periods marked for rejection % min_gap_ms = [min_gap_ms] Minimum time (ms) to allow between periods marked for rejection
% out_path = [out_path] Relative path to output data files assuming cd = work_path % out_path = [out_path] Relative path to output data files assuming cd = work_path
% amica_param_file = [amica_param_file] template amicadefs.param file to modify. % amica_param_file = [amica_param_file] template amicadefs.param file to modify
% save_diff = [savediff] YES if you want to save the filter residuals (Default: NO) % amica_threads_s02 = [amica_threads_s02] number of threads to use for running s02 amica script (Default: 8)
%% CHECK FOR OUTPUT PATH AND CRETAE IF NECESSARY %% CHECK FOR OUTPUT PATH AND CRETAE IF NECESSARY
if ~exist('[out_path]/[batch_dfn,/,-1]','dir'); if ~exist('[out_path]/[batch_dfn,/,-1]','dir');
...@@ -85,7 +97,7 @@ end ...@@ -85,7 +97,7 @@ end
%warp locations to standard head surface: %warp locations to standard head surface:
if ~isempty('[montage_info]'); if ~isempty('[montage_info]');
if isempty(str2num('[montage_info]')); if isempty(str2num('[montage_info]'));
%if it is a BIDS channel tsv, load the tsv, %if it is a BIDS channel tsv, load the tsv,sd_t_f_vals
%else read the file that is assumed to be a transformation matrix. %else read the file that is assumed to be a transformation matrix.
else else
EEG = warp_locs( EEG,'[ref_loc_file]', ... EEG = warp_locs( EEG,'[ref_loc_file]', ...
......
...@@ -11,12 +11,16 @@ ...@@ -11,12 +11,16 @@
% data_path = [in_path] Path to input and output data files assuming cd = work_path % data_path = [in_path] Path to input and output data files assuming cd = work_path
% recur_sec = [recur_sec] Recurrence (sec) for artifact detection epoching (e.g. .3) % recur_sec = [recur_sec] Recurrence (sec) for artifact detection epoching (e.g. .3)
% limit_sec = [limit_sec] Limits (sec) for artifact detection epoching (e.g. [-.3 .3]) % limit_sec = [limit_sec] Limits (sec) for artifact detection epoching (e.g. [-.3 .3])
% epoch_z = [epoch_z] z threshold for flagging channel during icsd criteria (e.g. 3) % sd_t_meth = [sd_t_meth] Method used for flagging epochs (e.g. 'q' (quantiles), or 'na' (default))
% epoch_p = [epoch_p] Percentage of flagged components required to flag an epoch during icsd criteria (e.g. .1) % sd_t_vals = [sd_t_vals] Percentage trim for confidence intervals during epoch standard deviation criteria (e.g. [.3 .7])
% epoch_trim = [epoch_trim] Percentage trim for confidence intervals during channel neighbour r criteria (10 = 5% top and bottom) % sd_t_o = [sd_t_o] z threshold for flagging epochs during standard deviation criteria (e.g. 6)
% min_gap_ms = [min_gap_ms] Minimum time (ms) to allow between periods marked for rejection % sd_t_f_meth = [sd_t_f_meth] Fixed method used for flagging epochs (should be 'fixed')
% amica_param_file = [amica_param_file] Template amicadefs.param file to modify. % sd_t_f_vals = [sd_t_f_vals] Percentage trim for confidence intervals during epoch standard deviation criteria (e.g. [.3 .7], leave empty for 'fixed')
% sd_t_f_o = [sd_t_f_o] z threshold for flagging epochs during fixed standard deviation criteria (e.g. .2)
% out_path = [out_path] Relative path to output data files assuming cd = work_path % out_path = [out_path] Relative path to output data files assuming cd = work_path
% min_gap_ms = [min_gap_ms] Minimum time (ms) to allow between periods marked for rejection
% amica_param_file = [amica_param_file] template amicadefs.param file to modify
% amica_threads_s04 = [amica_threads_s04] number of threads to use for running s04a, s04b, s04c amica scripts (Default: 8)
%% LOAD SA DATASET %% LOAD SA DATASET
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
...@@ -191,7 +195,7 @@ swapstr=file_strswap('[amica_param_file]', ... ...@@ -191,7 +195,7 @@ swapstr=file_strswap('[amica_param_file]', ...
'[repstr_outpath]','[out_path]/[batch_dfn,_,-1]_amicaout_A', ... '[repstr_outpath]','[out_path]/[batch_dfn,_,-1]_amicaout_A', ...
'[repstr_nbchan]', num2str(EEG.nbchan), ... '[repstr_nbchan]', num2str(EEG.nbchan), ...
'[repstr_pnts]', sprintf('%12.0f',EEG.pnts), ... '[repstr_pnts]', sprintf('%12.0f',EEG.pnts), ...
'[repstr_tpp]', '[amica_threads_s07_08_09]', ... '[repstr_tpp]', '[amica_threads_s04]', ...
'[repstr_pca]', num2str(EEG.nbchan)); '[repstr_pca]', num2str(EEG.nbchan));
fidparam=fopen('[out_path]/[batch_dfn,_,-1]_A.param','w'); fidparam=fopen('[out_path]/[batch_dfn,_,-1]_A.param','w');
fprintf(fidparam,'%s',swapstr); fprintf(fidparam,'%s',swapstr);
...@@ -204,7 +208,7 @@ swapstr=file_strswap('[amica_param_file]', ... ...@@ -204,7 +208,7 @@ swapstr=file_strswap('[amica_param_file]', ...
'[repstr_outpath]','[out_path]/[batch_dfn,_,-1]_amicaout_B', ... '[repstr_outpath]','[out_path]/[batch_dfn,_,-1]_amicaout_B', ...
'[repstr_nbchan]', num2str(EEG.nbchan), ... '[repstr_nbchan]', num2str(EEG.nbchan), ...
'[repstr_pnts]', sprintf('%12.0f',EEG.pnts), ... '[repstr_pnts]', sprintf('%12.0f',EEG.pnts), ...
'[repstr_tpp]', '[amica_threads_s07_08_09]', ... '[repstr_tpp]', '[amica_threads_s04]', ...
'[repstr_pca]', num2str(EEG.nbchan)); '[repstr_pca]', num2str(EEG.nbchan));
fidparam=fopen('[out_path]/[batch_dfn,_,-1]_B.param','w'); fidparam=fopen('[out_path]/[batch_dfn,_,-1]_B.param','w');
fprintf(fidparam,'%s',swapstr); fprintf(fidparam,'%s',swapstr);
...@@ -217,7 +221,7 @@ swapstr=file_strswap('[amica_param_file]', ... ...@@ -217,7 +221,7 @@ swapstr=file_strswap('[amica_param_file]', ...
'[repstr_outpath]','[out_path]/[batch_dfn,_,-1]_amicaout_C', ... '[repstr_outpath]','[out_path]/[batch_dfn,_,-1]_amicaout_C', ...
'[repstr_nbchan]', num2str(EEG.nbchan), ... '[repstr_nbchan]', num2str(EEG.nbchan), ...
'[repstr_pnts]', sprintf('%12.0f',EEG.pnts), ... '[repstr_pnts]', sprintf('%12.0f',EEG.pnts), ...
'[repstr_tpp]', '[amica_threads_s07_08_09]', ... '[repstr_tpp]', '[amica_threads_s04]', ...
'[repstr_pca]', num2str(EEG.nbchan)); '[repstr_pca]', num2str(EEG.nbchan));
fidparam=fopen('[out_path]/[batch_dfn,_,-1]_C.param','w'); fidparam=fopen('[out_path]/[batch_dfn,_,-1]_C.param','w');
fprintf(fidparam,'%s',swapstr); fprintf(fidparam,'%s',swapstr);
......
...@@ -5,22 +5,24 @@ ...@@ -5,22 +5,24 @@
% %
%% From Config key_strswap Description %% From Config key_strswap Description
%----------------------------------------------------------------------------------------------------------------------------- %-----------------------------------------------------------------------------------------------------------------------------
% in_path = [in_path] Relative path to input data files assuming cd = work_path % in_path = [in_path] Relative path to input data files assuming cd = work_path
% out_path = [out_path] Relative path to output data files assuming cd = work_path
% recur_sec = [recur_sec] Recurrence (sec) for the current artifact detection epoching (e.g. 1) % recur_sec = [recur_sec] Recurrence (sec) for the current artifact detection epoching (e.g. 1)
% limit_sec = [limit_sec] Limits (sec) for the current artifact detection epoching (e.g. [0 1]) % limit_sec = [limit_sec] Limits (sec) for the current artifact detection epoching (e.g. [0 1])
% epoch_z = [epoch_z] z threshold for flagging channel during icsd criteria (e.g. 2.326) % sd_t_meth = [sd_t_meth] Method used for flagging epochs (e.g. 'q' (quantiles), or 'na' (default))
% epoch_p = [epoch_p] Percentage of flagged components required to flag an epoch during icsd criteria (e.g. .1) % sd_t_vals = [sd_t_vals] Percentage trim for confidence intervals during epoch standard deviation criteria (e.g. [.3 .7])
% epoch_trim = [epoch_trim] Percentage trim for confidence intervals during channel neighbour r criteria (10 = 5% top and bottom) % sd_t_o = [sd_t_o] z threshold for flagging epochs during standard deviation criteria (e.g. 6)
% sd_t_f_meth = [sd_t_f_meth] Fixed method used for flagging epochs (should be 'fixed')
% sd_t_f_vals = [sd_t_f_vals] Percentage trim for confidence intervals during epoch standard deviation criteria (e.g. [.3 .7], leave empty for 'fixed')
% sd_t_f_o = [sd_t_f_o] z threshold for flagging epochs during fixed standard deviation criteria (e.g. .2)
% min_gap_ms = [min_gap_ms] Minimum time (ms) to allow between periods marked for rejection % min_gap_ms = [min_gap_ms] Minimum time (ms) to allow between periods marked for rejection
% icr_crit = [icr_crit] False discovery rate of component replicatablilty, measure of sensitivity % % icr_crit = [icr_crit] False discovery rate of component replicatablilty, measure of sensitivity %
% dip_vol = [dip_vol] file path/name of the standard volume file used in dipole fitting (e.g. derivatives/lossless/code/misc/standard_vol.mat). % dip_vol = [dip_vol] file path/name of the standard volume file used in dipole fitting (e.g. derivatives/lossless/code/misc/standard_vol.mat).
% dip_mri = [dip_mri] file path/name of the standard mri file used in dipole fitting (e.g. derivatives/lossless/code/misc/standard_mri.mat). % dip_mri = [dip_mri] file path/name of the standard mri file used in dipole fitting (e.g. derivatives/lossless/code/misc/standard_mri.mat).
% dip_elc = [dip_elc] file path/name of the standard electrode file used in dipole fitting (derivatives/lossless/code/misc/standard_1020.elc). % dip_elc = [dip_elc] file path/name of the standard electrode file used in dipole fitting (derivatives/lossless/code/misc/standard_1020.elc).
% dip_transmat = [dip_transmat] Transformation matrix to apply during dipole fit (e.g. [0 0 0 0 0 0 1 1 1]) % dip_transmat = [dip_transmat] Transformation matrix to apply during dipole fit (e.g. [0 0 0 0 0 0 1 1 1])
% cor_transmat = [cor_transmat] The transformation matrix to apply between dipole fitting to the standard head and performing ICLabel to the EEGLAB default orientation (e.g.[0,0,0,0,0,1.57,1,1,1]) % cor_transmat = [cor_transmat] The transformation matrix to apply between dipole fitting to the standard head and performing ICLabel to the EEGLAB default orientation (e.g.[0,0,0,0,0,1.57,1,1,1])
% cor_nosedir = [cor_nosedir] Nose direction of montage to apply between dipole fitting to the standard head and performing ICLabel to the EEGLAB default orientation (e.g.+Y) % cor_nosedir = [cor_nosedir] Nose direction of montage to apply between dipole fitting to the standard head and performing ICLabel to the EEGLAB default orientation (e.g. +Y)
% out_path = [out_path] Relative path to output data files assuming cd = work_path
%% LOAD COMPART DATASET %% LOAD COMPART DATASET
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%