mne-tools / mne-python

MNE: Magnetoencephalography (MEG) and Electroencephalography (EEG) in Python
https://mne.tools
BSD 3-Clause "New" or "Revised" License
2.72k stars 1.32k forks source link

DOC: new tutorial for using automated preprocessing pipelines / switching back and forth between EEGLAB and MNE-Python #10750

Open dominikwelke opened 2 years ago

dominikwelke commented 2 years ago

Proposed documentation ehancement

hi All,

for the 2022 sprint I suggested to add a small tutorial on using MNE-Python with data that has been preprocessed in other software (i.e. interoperability). I particularly thought of EEGLAB which knows a bunch of neat fully-automatic preprocessing pipelines for EEG data.

It's not very difficult to import these data, and all the tools are there. yet I thought that a small dedicated tutorial in the I/O section might highlight this fact for new users, thus making it even easier to 1) try MNE coming from EEGLAB or 2) use the strenghts of different softwares for different subtasks.

there are several options how to implement such a tutorial, from a minimum version with a few lines of code for importing preprocessed EEGLAB data, to a longer and more general version with best practices on interoperability, or different other softwares respectively.

@drammock suggested to open this issue in advance to discuss it a little: what do you think, any comments, suggestions?

p.s. by a quick scan I found several potentially related issues in the board (EEGLAB only):

9989 #10505 #10482 #8581 #6610 #3837

larsoner commented 1 year ago

@dominikwelke I can't remember if we talked about this at the sprint or not, but I agree this would be useful indeed if you or someone else is interested in looking into it!

withmywoessner commented 9 months ago

@larsoner @dominikwelke I am very interested in this.

A while ago I was trying to recreate an EEGLAB Time-Frequency analysis pipeline in MNE and was having trouble getting my results to match. I made a forum post related to one of the MNE TFA parameters as well. See link. The answer was very helpful, but I still had trouble getting my results to match.

The parameters for TFA in EEGLAB and MNE are a little different. In particular, I had trouble getting the wavelet cycles to match:

image image

While MNE just asks you to pass the number of wavelets as a list or an int.

I tried to convert the parameters but I ended up getting an error so I stopped working on it.