Is there a direct equivalent of eeglab's eegfilt() function (see below) in
mne? I think that mne.filter.filter_data(data, srate, l_freq, h_freq) does
something similar when phase='zero-double'. Could you confirm?
Best,
Mat
% eegfilt() - (high|low|band)-pass filter data using two-way
least-squares % FIR filtering. Optionally uses the window
method instead of % least-squares. Multiple data channels
and epochs supported.% Requires the MATLAB Signal
Processing Toolbox.% Usage:% >> [smoothdata] =
eegfilt(data,srate,locutoff,hicutoff);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180117/e5d0760a/attachment.html
It is worth mentioning that pop_eegfilt (and the related eegfilt) is deprecated and not recommended anymore. It has been replaced with pop_eegfiltnew, which implements Hamming windowed sinc FIR filters. This is also available in MNE, and in fact the default filter settings in the latest MNE release are in line with the recommended EEGLAB settings. The only thing you should manually change in 0.15 is fir_design='firwin' - 0.16 will use this as default. This settings produces much steeper filters than 'firwin2' (default in 0.15) or the MATLAB 'firls' method.
Note that phase='zero' only filters once, but compensates the FIR delay by shifting the output back, so you will have a zero-phase filter. This is also the default setting in EEGLAB's pop_eegfiltnew, and I don't recommend 'zero-double', because this applies the filter twice, so the specs you define with the arguments are actually doubled.