Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Though seemingly affected only by its immediate surrounding, the sphere of external influence extends to infinite distance. Nikola Tesla

Table of Contents

Prerequisite

...

This tutorial teaches how to use the Maxfilter command line tool to remove artifacts on MEG signals coming from outside of the sphere of all MEG channels. This tool was build by Elekta, the vendor of our MEG.

It is also at this step that bad channels are marked and discarded (interpolated).

Step-by-step guide

  1. Choose a reference head position 
  2. Run Maxfilter on the raw data
  3. Check correction with Muse
  4. Iterate to fine tune correction parameters

...

Code Block
maxfilter_cenir -f run01.fif -st 20000 -corr 0.98 -bad 0221 0332 -trans meanmeanhp.fif -o run01_tsss.fif

Brief description of the options (the user is referred to the pdf manual for more information):

  • -f: the input file
  • -o: the output file
  • -tsss: perform temporal source space separation (the standard at CENIR). The option is followed by a buffer length (in seconds), which should always be larger than your individual recordings.
  • -corr: amount of correlation between data and noise that should be rejected (see manual for more explanation). Lowering the value below the default 0.98 may sometimes help getting rid of artifacts but can also lead to removing interesting signal from the data. Careful inspection is recommended (see below).
  • -bad: which channels should be considered bad, i.e. removed prior to correction and later reinterpolated. The -autobad command is not recommended because it leaves no trace of which channels are considered bad. Rather use xscan (see below).
  • -trans: transforms the MEG data into the sensor array defined by the channel info in a specified file (here mean.fif).

...


Warning
titleuse maxfilter_cenir

Be sure to use the maxfilter_cenir command and NOT maxfilter. This will ensure that correct tuning parameters found in the sss_config directory next to your data are applied during the computation. The full script below spells out the full command for each file it runs on.

...

After Maxfilter has finished, it is important to check signal quality visually. We use Muse to do this.

Code Block
muse run01_tsss.fif

...