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
I'd like to add a function that allows to standardize the EEG so that it can be easily used to combine datasets with different sampling and spatial frequencies. Uniformizing the sampling frequency can be done easily with the resampling functions from MNE (https://mne.tools/stable/auto_tutorials/preprocessing/30_filtering_resampling.html).
For the spatial resampling, we need to interpolate on a standard EEG montage. The idea here is to
Get original montage (montage1)
Get montage to interpolate to (montage2)
Co-register montage2 with montage1 on a same head surface if these are not already co-registered (not in the code above)
Create a Raw structure containing with flat signals (zeros) for the data associated with montage2
Merge the two montages
Merge the two raw objects and set the raw montage
Flag all the channels from montage2 as 'bad' in the merged raw
Interpolate bad channels
Drop channels from montage 1
This is a snippet of code taken from one of my previous analyses that do more or less that:
I'd like to add a function that allows to standardize the EEG so that it can be easily used to combine datasets with different sampling and spatial frequencies. Uniformizing the sampling frequency can be done easily with the resampling functions from MNE (https://mne.tools/stable/auto_tutorials/preprocessing/30_filtering_resampling.html).
For the spatial resampling, we need to interpolate on a standard EEG montage. The idea here is to
This is a snippet of code taken from one of my previous analyses that do more or less that:
(not complete and executable in its current form)
As an added bonus, adding this feature will put us in a very good place to close #131
The text was updated successfully, but these errors were encountered: