With the exponential increase in data dimension and complexity, conducting state-of-the-art brain network analyses using MEG and EEG is becoming an increasingly challenging and time-consuming endeavor. Here we describe NeuroPype, a free open-source Python package we developed for efficient multi-thread processing of MEG and EEG studies. The proposed package is based on NiPype and MNE-Python and benefits from standard Python packages such as NumPy and SciPy. The pipeline also incorporates several existing wrappers, such as a Freesurfer Pyhton-wrapper for multi-subject MRI segmentation. Through the efficient combination of multiple neuroimaging and MEG/EEG packages, NeuroPype provides a common and fast framework for advanced MEG/EEG analyses. The highlights of the pipeline, include data pre-processing and cleaning, sensor or source-level connectivity analyses (Imaginary and standard coherence, phase-lag index, phase-locking, etc.), and graph-theoretical metrics (including modular partitions). The pipeline design, data structure and analysis workflow is described and future additions will be discussed.
Annalisa Pascarella , David Meunier , Daphn BertrandDubois , Tarek Lajnef , Dmitri Altukhov , Karim Jerbi