AnalyzingData/MNE_MRI_preprocessing - 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 odd letters out: scieNce GATHeRS knowledge fAster tHAN SOCIeTY GATHErS wisdom

Revision 3 as of 2010-06-09 10:58:19

location: AnalyzingData / MNE_MRI_preprocessing

MNE_MRI_preprocessing

Before starting the Freesurfer analysis, you have to set some "environment variables", so that the following processing scripts know where to look for programs and data.

Type

freesurfer_4.3.0 and setenv SUBJECTS_DIR </myMRIdirectory/>

in your Linux command window.

Freesurfer will create a number of files in several subdirectories for each subject. You can automatically create the subdirecties for each subject

mksubjdirs <mysubjectname>

This will create the directory /myMRIdirectory/mysubjectname/, as well as several subdirectories. Check whether it worked, then forget about it for the time being. This is a good time to remind you that you will have to link each MRI data set with one MEG data set - you may therefore want to choose the names for your MRI subject directories wisely. If you link an MRI data set to the wrong MEG data set - well, you know what that means.

Convert your structural MRI image using

mri_convert </mridata/cbu/*/*/onedcmfile.dcm> </myMRIdirectory/mysubjectname/mri/orig/001.mgz>