Skip to content

neurofractal/MEG_preprocessing

Repository files navigation

Rob's Lair of Preprocessing Scripts

alt tag

Maxfilter

Maxfilter is a licenced software from Elekta (Finland), primarily used to clean MEG data using spatio-temporal signal separation methods. It can also apply motion correction, transform to a default headspace & much more.

I generally run Maxfilter through the Matlab command line using the function maxfilter_all.m . Currently this is set up to Maxfilter your data tSSS with a .9 correlation (but could be easily changed). For head movement visualisation the above function requires check check_movecomp.m to be in your Matlab path.

General Stages to Processing:

This is run using the script preprocessing_elektra_FT_MASTER.m . This IS NOT a function. I find it better to run preprocessing as script (section by section) for more control. How to use the script is expained in the document Preprocessing rs_script_runthrough.docx.

  1. Maxfilter (tSSS with .9 correlation) + movement visualisation (see above)
  2. Load data into Fieldtrip & apply filters
  3. Epoch the data
  4. Visually inspect the data + reject artefactual trials
  5. FASTICA to identify & remove eye and heart artefacts
  6. Save to disk
  7. Have tea

About

RS MEG Preprocessing Scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages