From 2146ee05de5beea3f27524c66da2fa14b30cc0d4 Mon Sep 17 00:00:00 2001 From: douwehorsthuis Date: Thu, 23 Sep 2021 16:44:31 -0400 Subject: [PATCH] fix saving _info.set --- src/B_downs_filter_chaninfo_exclchan.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/B_downs_filter_chaninfo_exclchan.m b/src/B_downs_filter_chaninfo_exclchan.m index 35a7525..14cc4b9 100644 --- a/src/B_downs_filter_chaninfo_exclchan.m +++ b/src/B_downs_filter_chaninfo_exclchan.m @@ -30,14 +30,16 @@ %adding channel location if EEG.nbchan >63 && EEG.nbchan < 95 %64chan cap (can be a lot of externals, this makes sure that it includes a everything that is under 96 channels, which could be an extra ribbon) EEG=pop_chanedit(EEG, 'lookup',[eeglab_location 'plugins\dipfit\standard_BESA\standard-10-5-cap385.elp']); %make sure you put here the location of this file for your computer - %deleting bad channels + EEG = pop_saveset( EEG, 'filename',[subject_list{s} '_info.set'],'filepath', data_path); + %deleting bad channels EEG = pop_rejchan(EEG,'elec', [1:64],'threshold',5,'norm','on','measure','kurt'); elseif EEG.nbchan >159 && EEG.nbchan < 191 %160chan cap EEG=pop_chanedit(EEG, 'lookup',[scripts_location 'BioSemi160.sfp']); %make sure you put here the location of this file for your computer - %deleting bad channels + EEG = pop_saveset( EEG, 'filename',[subject_list{s} '_info.set'],'filepath', data_path); + %deleting bad channels EEG = pop_rejchan(EEG,'elec', [1:160],'threshold',5,'norm','on','measure','kurt'); end - %adding info to the EEG structure + %adding info to the EEG structure EEG = pop_saveset( EEG, 'filename',[subject_list{s} '_exchn.set'],'filepath', data_path); end