mne-python-guide

Guide EEG, MEG, and iEEG analysis workflows using the MNE-Python library.

269|20|Updated Jun 13, 2026
One-click install
npx skills add https://github.com/NeuroAIHub/BrainPilot --skill mne-python-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mne-python-guide
Source: https://github.com/NeuroAIHub/BrainPilot/tree/main/packages/skills/skills/05_EEG_ERP/mne-python-guide
Command: npx skills add https://github.com/NeuroAIHub/BrainPilot --skill mne-python-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires research-literacy, and includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of neurophysiological data analysis by providing a structured, domain-validated pipeline for MNE-Python, reducing the risk of methodological errors in EEG/MEG research.

Core Features & Use Cases

  • End-to-End Pipeline: Covers everything from raw data loading and preprocessing (ICA, filtering) to advanced source localization and statistical testing.
  • Methodological Guardrails: Provides expert-recommended parameters and warns against common pitfalls like incorrect filtering sequences or data leakage in decoding.
  • Use Case: A researcher needs to perform a cluster-based permutation test on ERP data; this skill provides the exact sequence for adjacency matrix construction and statistical execution.

Quick Start

Use the mne-python-guide skill to walk me through the standard preprocessing steps for my raw EEG data file.

Frequently Asked Questions about mne-python-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preprocess raw EEG data using MNE-Python?

Preprocessing raw EEG data using MNE-Python involves loading raw files, applying ICA for artifact removal, and filtering. This skill provides the exact methodological sequence and expert-recommended parameters to avoid common errors like incorrect filtering orders.

What is the best way to perform cluster-based permutation tests on ERP data?

Cluster-based permutation tests on ERP data require constructing an adjacency matrix and executing the statistical test. This skill provides the exact sequence for adjacency matrix construction and statistical execution to ensure academic standards are met.

Can I use MNE-Python for source localization and time-frequency decomposition?

MNE-Python supports source localization and time-frequency decomposition for EEG and MEG data. This skill facilitates these complex workflows by providing domain-validated pipelines and methodological guardrails for accurate neurophysiological analysis.

Do I need research literacy to analyze electrophysiology data with this skill?

Research literacy is required to use this skill effectively. It ensures you understand the methodological foundations for data preprocessing, statistical testing, and visualization required to analyze electrophysiology data accurately.

Why does my multivariate pattern analysis suffer from data leakage in MNE-Python?

Data leakage in multivariate pattern analysis occurs due to incorrect cross-validation sequences. This skill provides methodological guardrails that warn against common pitfalls like data leakage in decoding, ensuring valid statistical results.

Does this MNE-Python guide support intracranial EEG data analysis?

This MNE-Python guide supports intracranial EEG (iEEG) data analysis alongside standard EEG and MEG. It provides structured pipelines covering everything from raw data loading to advanced source localization and statistical testing.