You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ After that we use [pop_rejcont](https://github.com/wojzaremba/active-delays/blob
101
101
102
102
**note** for the Aging group, we use the [pop_rejcont](https://github.com/wojzaremba/active-delays/blob/master/external_tools/eeglab11_0_4_3b/functions/popfunc/pop_rejcont.m) function also right before the ICA. This is because the data was too noisy for more than 50% of the participants to find eye components.
103
103
104
-
#### F_interpolate
104
+
#### F_preprocces4
105
105
This script loads a file with all the original channels, deletes the externals and uses these file locations to interpolate the channels of the corresponding's subjects data.
106
106
In the case of 160 channel data, it uses the [transform_n_channels](https://github.com/CognitiveNeuroLab/Interpolating_160ch_to_64ch_eeglab) function to interpolate the remaining channels not to the original 160, but to 64 channel data so that it is the same as all the other data. For this to work Matlab needs to know the location of 2 things, the trannsform_n_channel.m file and the EEG files called 64.set and 64.fdt.
Copy file name to clipboardExpand all lines: src/B_preprocess1.m
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -64,16 +64,15 @@
64
64
end
65
65
%adding channel location
66
66
ifEEG.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)
67
-
EEG=pop_chanedit(EEG, 'lookup',[home_path'standard-10-5-cap385.elp']); %make sure you put here the location of this file for your computer
EEG=pop_chanedit(EEG, 'lookup',[home_path'standard-10-5-cap385.elp']); %make sure you put here the location of this file for your computer
69
68
elseifEEG.nbchan>159 &&EEG.nbchan<191%160chan cap
70
69
if isempty(EEG.chanlocs) &&EEG.nbchan==160
71
70
EEG = pop_editset(EEG, 'chanlocs', [home_path'Cap160_fromBESAWebpage.sfp']); %need to first load any sort of sfp file with the correct channels (the locations will be overwritten to the correct ones later)
72
71
else
73
-
EEG=pop_chanedit(EEG, 'lookup',[home_path'Cap160_fromBESAWebpage.sfp']); %make sure you put here the location of this file for your computer
if strcmp(Group{g},'Aging') &&EEGinter.nbchan==160&& isempty(EEGinter.chanlocs)
33
-
EEGinter = pop_editset(EEGinter, 'chanlocs', [home_path'Cap160_fromBESAWebpage.sfp']); %need to first load any sort of sfp file with the correct channels (the locations will be overwritten to the correct ones later)
EEGinter = pop_editset(EEGinter, 'chanlocs', [home_path'BioSemi64.sfp']); %need to first load any sort of sfp file with the correct channels (the locations will be overwritten to the correct ones later)
36
-
end
37
31
%saving the original amount of total channels
38
32
labels_all = {EEGinter.chanlocs.labels}.'; %stores all the labels in a new matrix
39
33
%interpolating the 160channels to 64 channels
@@ -57,16 +51,16 @@
57
51
disp(EEG.nbchan); %writes down how many channels are there
58
52
EEG = pop_interp(EEG, EEGinter.chanlocs, 'spherical');%interpolates the data
0 commit comments