Filtering
It is typically better to set your filtering properties on the raw data so as to avoid what we call border (or edge) effects.
If you use this pipeline for evoked responses, you could consider a low-pass filter cut-off of h_freq = 40 Hz and possibly a high-pass filter cut-off of l_freq = 1 Hz so you would preserve only the power in the 1Hz to 40 Hz band. Note that highpass filtering is not necessarily recommended as it can distort waveforms of evoked components, or simply wash out any low frequency that can may contain brain signal. It can also act as a replacement for baseline correction in Epochs. See below.
If you use this pipeline for time-frequency analysis, a default filtering could be a high-pass filter cut-off of l_freq = 1 Hz a low-pass filter cut-off of h_freq = 120 Hz so you would preserve only the power in the 1Hz to 120 Hz band.
If you need more fancy analysis, you are already likely past this kind of tips! 😇
l_freq
module-attribute
¶
l_freq = None
The low-frequency cut-off in the highpass filtering step.
Keep it None
if no highpass filtering should be applied.
h_freq
module-attribute
¶
h_freq = 40.0
The high-frequency cut-off in the lowpass filtering step.
Keep it None
if no lowpass filtering should be applied.
l_trans_bandwidth
module-attribute
¶
l_trans_bandwidth = 'auto'
Specifies the transition bandwidth of the
highpass filter. By default it's 'auto'
and uses default MNE
parameters.
h_trans_bandwidth
module-attribute
¶
h_trans_bandwidth = 'auto'
Specifies the transition bandwidth of the
lowpass filter. By default it's 'auto'
and uses default MNE
parameters.
notch_freq
module-attribute
¶
notch_freq = None
Notch filter frequency. More than one frequency can be supplied, e.g. to remove
harmonics. Keep it None
if no notch filter should be applied.
Info
The notch filter will be applied before high- and lowpass filtering.
Example
Remove line noise at 50 Hz:
notch_freq = 50
notch_freq = [25, 50, 100, 150]
notch_trans_bandwidth
module-attribute
¶
notch_trans_bandwidth = 1.0
Specifies the transition bandwidth of the notch filter. The default is 1.
.
notch_widths
module-attribute
¶
notch_widths = None
Specifies the width of each stop band. None
uses the MNE default.