A Python-based MEEG processing toolkit primarily based on MNE-Python.
Project description
meeg-utils
A Python-based MEG/EEG processing toolkit built on MNE-Python, providing a high-level, user-friendly API for processing MEG/EEG data.
Features
Preprocessing
Epoching In Progress
- High-level
PreprocessingPipelineclass for streamlined MEG/EEG preprocessing.
Feature Extraction
In Progress
- Common MEG/EEG features (e.g., power spectral density, connectivity metrics).
📦 Installation
pip install meeg-utils
🚀 Quick Start
from meeg_utils.preprocessing import PreprocessingPipeline
from mne_bids import BIDSPath
# Create pipeline
pipeline = PreprocessingPipeline(
input_path=BIDSPath(
subject="01", session="01", task="rest",
datatype="eeg", root="/data/bids"
),
output_dir="/data/output"
)
# Run preprocessing
result = pipeline.run(
filter_params={"highpass": 0.1, "lowpass": 100.0, "sfreq": 250.0},
detect_bad_channels=True,
remove_line_noise=True,
apply_ica=True
)
# Save results
pipeline.save()
Batch processing:
from meeg_utils.preprocessing import BatchPreprocessingPipeline
# Process multiple subjects in parallel
batch = BatchPreprocessingPipeline(
input_paths=bids_paths, # List of BIDSPaths
output_dir="/data/output",
n_jobs=4 # Use 4 parallel workers
)
batch.run(detect_bad_channels=True, remove_line_noise=True, apply_ica=True)
📚 Documentation
Full documentation: https://colehank.github.io/meeg-utils/
- Installation Guide
- Quick Start
- Preprocessing Guide
- Batch Processing
- API Reference
- Contributing Guide
🛠️ Development
# Clone and setup
git clone https://github.com/colehank/meeg-utils.git
cd meeg-utils
uv sync --dev
uv run pre-commit install
# Run tests
uv run pytest
# Build docs
cd docs && uv run make html
See the Contributing Guide for detailed development instructions.
📄 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
Built on the excellent MNE-Python ecosystem.
📞 Support
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meeg_utils-0.1.1.tar.gz.
File metadata
- Download URL: meeg_utils-0.1.1.tar.gz
- Upload date:
- Size: 385.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
309efc77e80617329a8bc79fd51a1316cef4e87fe36216587398e4b256a92890
|
|
| MD5 |
87fd38a1e76391bc022725013c04b7ff
|
|
| BLAKE2b-256 |
32175ff11f8579b70abcfe4b8275cd57ab13fa9feda07a67dc39980452451c1a
|
File details
Details for the file meeg_utils-0.1.1-py3-none-any.whl.
File metadata
- Download URL: meeg_utils-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1766e71d23bf07c7fb1939fa224771876f6c8515eeefa1061e34fb7ca3acacdf
|
|
| MD5 |
274b0bb077c86fa4e84329a065ad7283
|
|
| BLAKE2b-256 |
eb85f3ce70a0b502a3d0a130795fcede40617046ffb9103f62b28d2e8b4df892
|