Diff for "maxpreproc" - Meg Wiki
location: Diff for "maxpreproc"
Differences between revisions 4 and 5
Revision 4 as of 2008-11-11 13:35:30
Size: 936
Editor: MarieSmith
Comment:
Revision 5 as of 2008-11-11 13:38:18
Size: 933
Editor: MarieSmith
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
 1. maxfilter -f <raw_data_file> -o <output_file> -autobad 20 -skip 21 9999999 -ctc /neuro/databases/ctc/ct_sparse.fif -cal /neuro/databases/sss/sss_cal.dat -v | tee <log_file>   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>

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.

  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>

CbuMeg: maxpreproc (last edited 2024-02-22 12:12:36 by RikHenson)