|
Size: 936
Comment:
|
Size: 933
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:
- finding bad channels,
- applying sss to remove noise,
- 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.
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>
