isart() - Function for evaluating whether or not the text label of an independent component (IC) corresponds to an EEG artifact or not. Usage: >> reject=isart(label) Required Inputs: label - a string label for an IC. Output: reject - 1 if "label" is a type of IC artifact, 0 otherwise. The possible values of label recognized as IC artifacts are: 'blink' -Eye blink IC 'HE' -Horizontal eye movement IC 'EOG' -Generic eye movment IC 'EMG' -Muscle noise IC 'heart' -Heartbeat artifact IC 'drift' -Drift artifact IC 'bad_chan' -Bad channel (i.e., sensor problems) IC '60HZ' -60 Hz line noise IC 'art' -Generic artifact IC 'blink (objective)' -Eye blink IC (according to objective test) 'heart (objective)' -Heart blink IC (according to objective test) 'HE (objective)' -Horizontal eye movement IC (according to objective test) 'EMG (objective)' -Muscle noise IC (according to objective test) 'bad_chan (objective)' -Bad channel (i.e., sensor problems) IC (according to objective test) 'xtrm_activity (objective)' -Extreme activations (most likely due to movement of some sort) 'EOG (objective)' -Eye movement IC (according to objective test) Notes: -The evaluation of "label" is NOT case sensitive. For example, 'blink','Blink','BLINK', and 'bLiNK' would all be recognized as an artifact. Author: David Groppe Kutaslab, 11/2009
0001 function reject=is_art(label) 0002 % isart() - Function for evaluating whether or not the text label of an 0003 % independent component (IC) corresponds to an EEG artifact or not. 0004 % 0005 % Usage: 0006 % >> reject=isart(label) 0007 % 0008 % Required Inputs: 0009 % label - a string label for an IC. 0010 % 0011 % Output: 0012 % reject - 1 if "label" is a type of IC artifact, 0 otherwise. The 0013 % possible values of label recognized as IC artifacts are: 0014 % 'blink' -Eye blink IC 0015 % 'HE' -Horizontal eye movement IC 0016 % 'EOG' -Generic eye movment IC 0017 % 'EMG' -Muscle noise IC 0018 % 'heart' -Heartbeat artifact IC 0019 % 'drift' -Drift artifact IC 0020 % 'bad_chan' -Bad channel (i.e., sensor problems) IC 0021 % '60HZ' -60 Hz line noise IC 0022 % 'art' -Generic artifact IC 0023 % 'blink (objective)' -Eye blink IC (according to objective test) 0024 % 'heart (objective)' -Heart blink IC (according to objective 0025 % test) 0026 % 'HE (objective)' -Horizontal eye movement IC (according to objective 0027 % test) 0028 % 'EMG (objective)' -Muscle noise IC (according to objective 0029 % test) 0030 % 'bad_chan (objective)' -Bad channel (i.e., sensor problems) 0031 % IC (according to objective test) 0032 % 'xtrm_activity (objective)' -Extreme activations (most likely 0033 % due to movement of some sort) 0034 % 'EOG (objective)' -Eye movement IC (according to objective 0035 % test) 0036 % 0037 % Notes: 0038 % -The evaluation of "label" is NOT case sensitive. For example, 0039 % 'blink','Blink','BLINK', and 'bLiNK' would all be recognized as an 0040 % artifact. 0041 % 0042 % Author: 0043 % David Groppe 0044 % Kutaslab, 11/2009 0045 % 0046 0047 0048 art_labels{1}='blink'; 0049 art_labels{2}='HE'; 0050 art_labels{3}='EOG'; 0051 art_labels{4}='NZ'; %left in for backwards compatibility 0052 art_labels{5}='heart'; 0053 art_labels{6}='drift'; 0054 art_labels{7}='bad_chan'; 0055 art_labels{8}='60HZ'; 0056 art_labels{9}='art'; 0057 art_labels{10}='EMG'; 0058 art_labels{11}='blink (objective)'; 0059 art_labels{12}='heart (objective)'; 0060 art_labels{13}='HE (objective)'; 0061 art_labels{14}='EMG (objective)'; 0062 art_labels{15}='bad_chan (objective)'; 0063 art_labels{16}='xtrm_activity (objective)'; 0064 art_labels{17}='EOG (objective)'; 0065 0066 0067 reject=0; 0068 if ~isempty(label) 0069 for a=1:length(art_labels), 0070 if strcmpi(label,art_labels{a}) 0071 reject=1; 0072 return; 0073 end 0074 end 0075 end