Search bioRxiv⌕ Search

bioRxiv · 10.1101/2022.09.12.507592

Meggie - easy-to-use graphical user interface for M/EEG analysis based on MNE-python

Abstract

BackgroundIn the last decades, electrophysiological imaging methodology has seen many advances and the computational power in the neuroscience laboratories has steadily increased. Still, the new methodologies are unavailable for many. There is a need for more versatile analysis approaches for neuroscience specialists without a programming background. New methodUsing a software which provides standard pipelines, provides good default values for parameters, has a good multi-subject support, and stores the used analysis steps with the parameters in one place for reporting, is efficient and fast. In addition to enabling analysis for people without background in programming, it enables analysis for people with background in programming but a limited background in neuroscience. When constructed with care, the GUI may guide the researcher to apply analysis steps in correct order with reasonable default parameters. Comparison to existing methodsTwo existing software, EEGLAB and Brainstorm, both provide an easy-to-use graphical user interface for end-to-end analysis for multiple subjects. The key difference to work presented here is the choice of language. The scientific community is moving en masse towards the python programming language, thus making it an ideal platform for extendable software. Another problem with Matlab is that it is not free - both from the perspective of open source and concrete monetary resources. Within the current trend towards increasing open science, covering data, analysis and reporting, the need for open source software is imperative. ResultsMeggie is an open source software for running MEG and EEG analysis with easy-to-use graphical user interface. It is written in Python 3, runs on Linux, macOS and Windows, and uses the MNE-python library under the hood to do heavy lifting. It is designed to allow end-to-end analysis of MEG and EEG datasets from multiple subjects with common sensor-level analysis steps such as preprocessing, epoching and averaging, spectral analysis and time-frequency analysis. Most of the analysis steps can be run for all the subjects in one go, and combining the results across subjects is made possible with grand averages. We have emphasized the extendibility of Meggie by implementing most of the Meggie itself as plugins, thus ensuring that new plugins have access to all necessary core features. ConclusionMeggie answers the demand for easy-to-use and extendable python-based graphical user interface that provides an end-to-end analysis environment for M/EEG data analysis. It is freely available at https://github.com/cibr-jyu/meggie under the BSD license. Installation instructions, documentation and tutorials are found on that website. Highlights- MNE-python-based graphical user interface for M/EEG analysis - Easy to use even without programming background - Has good support for multiple subjects - Written in python, and can be easily extended with plugins - Free and open source with BSD license

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Heinila, E., Parviainen, T.. 2022-09-14. Meggie - easy-to-use graphical user interface for M/EEG analysis based on MNE-python. https://doi.org/10.1101/2022.09.12.507592

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

The Unreasonable Effectiveness of Cell Types in Describing Neuronal Physiological Features

Single-cell RNA sequencing (scRNA-seq) captures detailed gene expression profiles at scale, while patch-clamp recordings measure intrinsic neuronal electrophysiological properties. Modeling the relations between these two modalities remains a challenge. Here, we compare how well electrophysiological features can be predicted by traditional transcriptomic cell type classification, representations derived from a foundational model (scGPT) pretrained on large-scale scRNA-seq datasets, ion channel-coding genes, and highly variable genes. Using paired transcriptomic and electrophysiological patch-sequencing data from 495 human neurons from neurosurgical tissue, we find that cluster-level cell type representations consistently outperform highly variable gene selection, ion channel gene selection, and context-enriched scGPT embeddings. Notably, performance varies across model architectures and initializations, and the best results are obtained by combining the outputs of separate cell type and scGPT-based models. Together, these findings suggest that traditional discrete cellular classification is highly effective in predicting physiological features. For maximum performance it can be complemented by pretrained transformer models.

neuroscience↗

A nonlinear inhibition pathway underlying cortical responses to tuned holographic optogenetic perturbations

Optogenetics enables causal manipulation of cortical activity. Perturbation responses can be counterintuitive due to network interactions, making theory essential for predicting them. Existing approaches often rely on linear approximations, which fail for many biologically relevant perturbations. Here we develop a nonlinear theory of responses to holographic perturbations in cell-type-specific recurrent networks with structured connectivity. We fit a nonlinear model to mouse V1 data, which shows cotuned-ensemble suppression: perturbing spatially clustered neurons with similar preferred orientations yields markedly stronger short-range suppression than perturbing untuned ensembles. We show that cotuned-ensemble suppression arises from a feature-tuned, nonlinear inhibition pathway implicating somatostatin-positive (SST) interneurons. The theory predicts that cotuned ensembles suppress parvalbumin-positive (PV) neurons but facilitate SST neurons, and links the degree of cotuned-ensemble suppression or facilitation to the variance of the SST response. This framework identifies mechanisms by which nonlinear inhibition sculpts cortical dynamics and establishes a predictive basis for targeted optogenetic interventions.

neuroscience↗

Proteomic signatures of APOE ε4 across human tissues and cell types in Alzheimers disease

The apolipoprotein E {varepsilon}4 (APOE {varepsilon}4) allele is the strongest genetic risk factor for late-onset Alzheimers disease (AD). However, the underlying molecular mechanisms remain unclear. This study included 1691 participants from the Religious Orders Study and Rush Memory and Aging Project (ROSMAP), 1226 participants from the Accelerating Medicines Partnership - Alzheimers Disease (AMP-AD) Diverse Cohorts Study, and 735 participants from the Alzheimers Disease Neuroimaging Initiative (ADNI). To characterise APOE {varepsilon}4 molecular effects, we analysed proteomic data from plasma, cerebrospinal fluid (CSF), and induced pluripotent stem cell (iPSC)-derived astrocytes and neurons, as well as transcriptomic and proteomic data from multiple brain regions. The association of APOE {varepsilon}4 with AD neuropathology was also examined. APOE {varepsilon}4 carriers shared a plasma proteomic signature enriched for immune processes, irrespective of AD diagnosis. A machine learning classifier trained on this signature discriminated APOE {varepsilon}4 carriers from non-carriers in an independent cohort using CSF proteomics. APOE {varepsilon}4 carriage was associated with higher Braak stages and Consortium to Establish a Registry for Alzheimers Disease (CERAD) score. However, only limited APOE {varepsilon}4-associated transcriptomic and proteomic changes were observed in bulk brain tissue, with poor cross-layer concordance. Proteomic analyses of iPSC-derived astrocytes and neurons further revealed cell-type-specific APOE {varepsilon}4-associated changes. APOE {varepsilon}4 is associated with a consistent proteomic signature across plasma and CSF. Its molecular effects in the brain differ across cell types, brain regions and molecular layers. These findings support the need for cell-type-resolved multi-omic studies to elucidate how APOE {varepsilon}4 confers AD risk.

neuroscience↗