sappelhoff / pyprep

PyPREP: A Python implementation of the Preprocessing Pipeline (PREP) for EEG data
https://pyprep.readthedocs.io/en/latest/
MIT License
136 stars 33 forks source link

Question: using pyprep.NoisyChannels on numpy arrays #126

Closed sunshineinsandiego closed 1 year ago

sunshineinsandiego commented 1 year ago

Hi - First, thanks for making the PREP pipeline available in python! I have a set of 19-channel EEG recordings in numpy array format (19ch x 18K samples), and I would like to automatically eliminate bad channels from these arrays before further processing. Is it possible to use pyprep.NoisyChannels to identify the channels (i.e. rows) that should be eliminated before EEG analysis? Thanks!

sappelhoff commented 1 year ago

hi @sunshineinsandiego, please follow this tutorial to turn your numpy array into an MNE data structure first ("raw"): https://mne.tools/stable/auto_tutorials/simulation/10_array_objs.html

PyPREP only works on MNE raw data structures, not on numpy arrays.

Cheers!