Tool for automated MEG data quality control
Project description
MEGqc
MEGqc is an open-source, BIDS-aligned toolbox for automated MEG quality assessment (QA) and explicit quality control (QC) summarization.
It is designed for large cohorts and reproducible workflows, and provides both:
- interactive HTML reports for human inspection, and
- machine-readable derivatives for downstream automation.
What MEGqc Provides
- QA-first quality profiling of raw MEG signal quality before exclusion decisions.
- Multi-metric coverage including:
- standard deviation (STD),
- peak-to-peak amplitude (PtP),
- power spectral density (PSD),
- ECG/EOG-related contamination,
- high-frequency muscle burden,
- optional head-motion summaries.
- Multi-scale reporting across recording, channel, epoch, subject, dataset group, and multi-sample comparisons.
- QC support layer with configurable module-level criteria and a Global Quality Index (GQI).
- Reproducible execution with profile-aware outputs and saved settings provenance.
- Three usage modes: CLI, GUI, and programmatic dispatchers.
Requirements
- Python 3.10
- MEG data organized according to BIDS/MEG-BIDS.
Installation
Option 1: Installer-based (recommended for most users)
Download the installer bundle from the MEGqc releases and follow the platform-specific instructions in the installation guide.
Option 2: CLI-based (Conda + pip)
conda create -n megqc-py310 python=3.10 pip -y
conda activate megqc-py310
pip install meg-qc
For detailed installation instructions, see the CLI installation guide.
Quick Start (CLI)
- Export default config:
get-megqc-config --target_directory ./config
- Run QA/QC calculation:
run-megqc --inputdata /path/to/bids_dataset --config ./config/settings.ini
- Build plotting reports:
run-megqc-plotting --inputdata /path/to/bids_dataset
- Recompute GQI summaries (optional):
globalqualityindex --inputdata /path/to/bids_dataset
- Run full pipeline in one command (calculation + plotting):
run-megqc --inputdata /path/to/bids_dataset --config ./config/settings.ini --run-all
Launch GUI
megqc
The GUI uses the same backend logic as CLI dispatchers and writes the same derivative/report outputs.
Typical Outputs
MEGqc writes outputs under BIDS derivatives (default):
derivatives/Meg_QC/calculation/— metric tables + JSON summariesderivatives/Meg_QC/reports/— interactive HTML reportsderivatives/Meg_QC/summary_reports/— QC summaries including GQI artifacts
Documentation
- Installation (Installer-based): https://ancplaboldenburg.github.io/megqc_documentation/installation/gui.html
- Installation (CLI-based): https://ancplaboldenburg.github.io/megqc_documentation/installation/cli.html
- Tutorial: https://ancplaboldenburg.github.io/megqc_documentation/book/tutorial.html
- HTML Reports guide: https://ancplaboldenburg.github.io/megqc_documentation/book/report.html
- Full documentation: https://ancplaboldenburg.github.io/megqc_documentation/
Source Code
https://github.com/ANCPLabOldenburg/MEGqc
License
MIT License.
Project details
Release history Release notifications | RSS feed
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 meg_qc-0.7.4.tar.gz.
File metadata
- Download URL: meg_qc-0.7.4.tar.gz
- Upload date:
- Size: 497.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a9c96f397e0294b03b0c08a5f03a1e6e16b30167453ba12c325caee22acac64
|
|
| MD5 |
021d34612070a84d7317e44c221ea06b
|
|
| BLAKE2b-256 |
a62b100aa9ac27e83ab746b7a1f03e36aee680f5daadcb64cd65c9c9e4ad25c1
|
File details
Details for the file meg_qc-0.7.4-py3-none-any.whl.
File metadata
- Download URL: meg_qc-0.7.4-py3-none-any.whl
- Upload date:
- Size: 506.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2f87c61b85ea6b9213f880c0269183e1d9aedeab18f9b4f48d46a7ab3deb4e9
|
|
| MD5 |
2e9ee9a8c2f570803062de2c45c5e4e1
|
|
| BLAKE2b-256 |
934cbd94080c153a6ebaf9a140937b59a1c31da3afbd0875b13c33595089c829
|