Skip to content

Commit

Permalink
fix saving _info.set
Browse files Browse the repository at this point in the history
  • Loading branch information
DouweHorsthuis committed Sep 23, 2021
1 parent 76d31fc commit 2146ee0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/B_downs_filter_chaninfo_exclchan.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2146ee0

Please sign in to comment.