HF-SEF dataset

This example looks at high frequency SEF responses.

# Author: Jussi Nurminen (jnu@iki.fi)
#
# License: BSD (3-clause)


import mne
import os
from mne.datasets import hf_sef

fname_evoked = os.path.join(hf_sef.data_path(),
                            'MEG/subject_b/hf_sef_15min-ave.fif')

print(__doc__)

Read evoked data

evoked = mne.Evoked(fname_evoked)

Out:

Found the data of interest:
        t =     -50.00 ...     250.00 ms (SEF)
        0 CTF compensation matrices available
        nave = 2790 - aspect type = 100
No projector specified for this dataset. Please consider the method self.add_proj.

Create a highpass filtered version

evoked_hp = evoked.copy()
evoked_hp.filter(l_freq=300, h_freq=None, fir_design='firwin')

Out:

Setting up high-pass filter at 3e+02 Hz
l_trans_bandwidth chosen to be 75.0 Hz
Filter length of 133 samples (0.044 sec) selected

Compare high-pass filtered and unfiltered data on a single channel

ch = 'MEG0443'
pick = evoked.ch_names.index(ch)
edi = {'HF': evoked_hp, 'Regular': evoked}
mne.viz.plot_compare_evokeds(edi, picks=pick)
../../_images/sphx_glr_plot_hf_sef_data_001.png

Gallery generated by Sphinx-Gallery