User Guide#
Welcome to the eegprep User Guide! This comprehensive guide provides practical documentation for using eegprep in your EEG research and analysis workflows.
Whether you’re just getting started with eegprep or looking to master advanced preprocessing techniques, this guide has you covered. We’ve organized the documentation into logical sections to help you find what you need quickly.
Learning Path#
We recommend following this learning path based on your experience level:
- Beginner
Start with Installation to set up eegprep
Follow the Quick Start guide for a 5-minute introduction
Read Preprocessing Pipeline to understand the preprocessing workflow
- Intermediate
Explore Configuration for parameter tuning
Learn BIDS Workflow for batch processing
Review Preprocessing Pipeline for detailed step-by-step information
- Advanced
Master Advanced Topics for custom pipelines
Explore Configuration for advanced settings
Integrate with Advanced Topics for MNE-Python and parallel processing
Getting Started#
Core Concepts#
Data Workflows#
Advanced Topics#
Quick Reference#
Common Tasks
Installation - Install eegprep
Quick Start - Load, preprocess, and save EEG data
Preprocessing Pipeline - Understand preprocessing steps
BIDS Workflow - Process BIDS datasets
Configuration - Configure preprocessing parameters
Advanced Topics - Create custom pipelines
Key Functions
eegprep.pop_loadset()- Load EEG dataeegprep.pop_saveset()- Save EEG dataeegprep.clean_artifacts()- Comprehensive artifact removaleegprep.iclabel()- Classify ICA componentseegprep.pop_resample()- Resample dataeegprep.pop_eegfiltnew()- Filter dataeegprep.bids_preproc()- Batch process BIDS datasets
Configuration
eegprep.EEG_OPTIONS- Configuration objectPreprocessing parameters
Custom preprocessing chains
Integration
MNE-Python integration
EEGLAB compatibility
BIDS support
Documentation Structure#
- Installation
Complete installation guide covering system requirements, installation methods, optional dependencies, verification, and troubleshooting.
- Quick Start
5-minute introduction to eegprep with practical examples covering loading data, preprocessing, saving results, and visualization.
- Preprocessing Pipeline
Detailed overview of the preprocessing pipeline including all steps, parameter tuning, quality control, and common issues.
- BIDS Workflow
Guide to working with BIDS-formatted datasets including loading, batch processing, output structure, and integration with other tools.
- Configuration
Comprehensive guide to configuring eegprep including EEG_OPTIONS, common parameters, custom preprocessing chains, and advanced settings.
- Advanced Topics
Advanced topics for experienced users including custom pipelines, extending the pipeline, MNE-Python integration, parallel processing, and performance optimization.
Key Concepts#
- EEG Data Structure
eegprep uses the EEGobj class to represent EEG data, which is compatible with EEGLAB format.
- Preprocessing Pipeline
The preprocessing pipeline consists of sequential steps: channel selection, artifact removal, channel interpolation, resampling, filtering, ICA decomposition, and component classification.
- BIDS Format
Brain Imaging Data Structure (BIDS) is a standardized format for organizing neuroimaging data, enabling consistent and reproducible analysis.
- ICA Decomposition
Independent Component Analysis (ICA) decomposes EEG data into independent components, which can be classified as brain activity or artifacts.
- Component Classification
ICLabel automatically classifies ICA components into categories such as brain, muscle, eye, heart, line noise, and channel noise.
Getting Help#
If you need help:
Check the relevant section in this guide
Review the API Reference documentation
Visit the GitHub Issues page
Check the GitHub Discussions page
Contributing#
We welcome contributions! If you find issues or have suggestions for improving the documentation, please:
Open an issue on GitHub
Submit a pull request with improvements
Share your feedback in GitHub Discussions
License#
eegprep is released under the GNU General Public License v3.0. See the LICENSE file for details.
Citation#
If you use eegprep in your research, please cite:
@software{eegprep2024,
title={eegprep: A Python package for EEG preprocessing},
author={SCCN},
year={2024},
url={https://github.com/sccn/eegprep}
}
Acknowledgments#
eegprep is built on the foundations of EEGLAB and incorporates algorithms and methods from the EEG research community. We acknowledge the contributions of all researchers and developers who have contributed to EEG analysis methods.