maxpreproc - Meg Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Type the missing letters from: He's no ded, he's jus resing hs eys

Revision 6 as of 2008-11-11 13:41:55

location: maxpreproc

A practical guide to using maxfilter for meg data pre-processing. Typically pre-processing requires three steps:

  1. finding bad channels,
  2. applying sss to remove noise,
  3. transforming the data to a different co-ordinate frame.

Each step is detailed below along with code that you can use. NB you need to input your file names in the appropriate places.

Step 1. Identifying Bad Channels with Maxfilter

In the first step, we call maxfilter to establish which channels in the data set are bad by using the -autobad option. Maxfilter scans the first 20 seconds of your recording (or however long you waited before turing on cHPI) and returns the output to a log file. To save time we tell maxfilter to skip the remainder of the file. The -ctc and -cal options refer to the fine calibration and cross talk correction data specific to our MEG system. Inputting them to maxfilter will produce a better result.

  1. maxfilter -f <rawdata_file> -o <output_file> -ctc /neuro/databases/ctc/ct_sparse.fif -cal /neuro/databases/sss/sss_cal.dat -autobad 20 -skip 21 999999 -v | tee <log_file>