Settings Description (settings.ini)#
MEGqc behavior is controlled through settings.ini. You can use package defaults, a global custom config, or per-dataset config files.
General section#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
string list |
Channel types to process. |
|
|
bool |
Enable standard deviation metric. |
|
|
bool |
Enable power spectral density metric. |
|
|
bool |
Enable manual peak-to-peak metric. |
|
|
bool |
Enable MNE auto peak-to-peak metric. |
|
|
bool |
Enable ECG correlation metric. |
|
|
bool |
Enable EOG correlation metric. |
|
|
bool |
Enable head-movement metric (requires cHPI/head localization info). |
|
|
bool |
Enable muscle-artifact metric. |
|
|
float |
Start crop time in seconds. |
|
blank |
float/blank |
End crop time in seconds; blank uses full recording. |
Filtering section#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
bool |
Enable filtering stage. |
|
|
float/int |
Downsample target frequency. |
|
|
float/int |
High-pass edge (Hz). |
|
|
float/int |
Low-pass edge (Hz). |
|
|
string |
Filter method. |
Epoching section#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
float |
Event duration (s). |
|
|
float |
Epoch start relative to event (s). |
|
|
float |
Epoch end relative to event (s). |
|
blank |
string |
Optional explicit stim channel. |
|
|
string |
Duplicate-event handling ( |
|
|
bool |
Fallback epoching when event structure is unavailable. |
|
|
float |
Fixed-length epoch size (s). |
|
|
float |
Overlap between fixed epochs (s). |
Metric sections#
STD (Standard Deviation)#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
int |
Number of standard deviations from mean for threshold. |
|
|
int |
Max % of epochs a channel can be noisy/flat before marking the channel. |
|
|
float |
Multiplier for noisy channel detection (higher = fewer noisy flags). |
|
|
float |
Multiplier for flat channel detection. |
PSD (Power Spectral Density)#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
float |
Lower frequency for PSD calculation (Hz). |
|
|
float |
Upper frequency for PSD calculation (Hz). |
|
|
float |
Frequency resolution of PSD (Hz). |
PTP_manual (Peak-to-Peak Manual)#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
bool |
Use Numba-accelerated calculation for speed. |
|
|
float |
Maximum pair distance in seconds. |
|
|
int |
Scaling factor for threshold (higher = more peaks detected). |
|
|
int |
Max % of epochs for noisy/flat marking. |
|
|
int |
Standard deviations from mean for threshold. |
|
|
float |
Multiplier for noisy channel detection. |
|
|
float |
Multiplier for flat channel detection. |
|
|
float |
Reserved: absolute upper limit (Tesla). |
|
|
float |
Reserved: absolute lower limit (Tesla). |
PTP_auto (Peak-to-Peak Auto - MNE-based)#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
float |
Min PtP amplitude for magnetometer peaks (T). |
|
|
float |
Min PtP amplitude for gradiometer peaks (T/m). |
|
|
float |
Max PtP amplitude for magnetometer flat detection (T). |
|
|
float |
Max PtP amplitude for gradiometer flat detection (T/m). |
|
|
int |
% of time above threshold to mark as bad. |
|
|
float |
Min duration (s) above threshold to count. |
ECG (Electrocardiogram)#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
bool |
Drop bad ECG channel and reconstruct from magnetometers. |
|
|
int |
Allowed breaks in ECG per 10 minutes. |
|
|
float |
Allowed peak height variation (0-1 scaled). |
|
|
float |
Peak height threshold multiplier. |
|
|
int |
Normalization level for threshold scaling. |
|
|
int |
Gaussian smoothing kernel sigma. |
|
|
int |
Peak finder threshold level. |
|
blank |
string |
Explicit ECG channel names (comma-separated). |
EOG (Electrooculogram)#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
int |
Allowed breaks in EOG per 10 minutes. |
|
|
float |
Allowed peak height variation (0-1 scaled). |
|
|
int |
Normalization level for threshold scaling. |
|
|
int |
Gaussian smoothing kernel sigma (higher for noisier EOG). |
|
|
int |
Peak finder threshold level. |
|
blank |
string |
Explicit EOG channel names (comma-separated). |
Muscle#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
int pair |
Frequency band for muscle detection (Hz). |
|
|
int |
Z-score threshold for muscle artifact detection. |
|
|
float |
Min duration of “good” data between muscle events (s). |
|
|
float |
Min distance between separate muscle events (s). |
Global Quality Index section ([GlobalQualityIndex])#
Variable |
Default |
Type |
Description |
|---|---|---|---|
|
|
bool |
Enable GQI computation. |
|
|
bool |
Include ECG/EOG correlation term in GQI. |
|
|
int |
% bad channels below which no penalty applies. |
|
|
int |
% bad channels at which maximum penalty applies. |
|
|
int |
Contribution weight for channel-variability penalty. |
|
|
int |
% correlated channels below which no penalty applies. |
|
|
int |
% correlated channels at which maximum penalty applies. |
|
|
int |
Contribution weight for ECG/EOG-correlation penalty. |
|
|
float |
Muscle ratio below which no penalty applies. |
|
|
float |
Muscle ratio at which maximum penalty applies. |
|
|
int |
Contribution weight for muscle penalty. |
|
|
int |
% PSD noise below which no penalty applies. |
|
|
int |
% PSD noise at which maximum penalty applies. |
|
|
int |
Contribution weight for PSD-noise penalty. |
Note: Weights are expressed as integers and are automatically normalized so they sum to 100%. See Global Quality Index for detailed interpretation.
Notes#
GUI settings editors prevent many manual formatting errors by using typed controls.
In CLI, keep numeric formatting valid INI syntax (no units in value fields).
Prefer profiles (
analysis_mode=new/reuse/latest) when testing multiple settings variants.
For practical examples, see: