Diff for "AnalyzingData/MNE_MRI_preprocessing" - Meg Wiki
location: Diff for "AnalyzingData/MNE_MRI_preprocessing"
Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2010-06-09 09:19:50
Size: 23
Editor: YaaraErez
Comment:
Revision 4 as of 2010-06-09 11:01:57
Size: 1531
Editor: YaaraErez
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

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>

You should specify one *.dcm-file for an MPRAGE MRI, which is usually located in a directory of the form /mridata/cbu/CBU123456_MR123456/123456_123456/Series_002_CBU_MPRAGE/1.2.3.4.1107.5.2.32.35119.123456123456.dcm. For example, choose the first or last dcm-file in the corresponding directory, the program will do the rest. The output directory .../mri/orig was created previously (remember, you've checked whether it worked...).






 

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>

You should specify one *.dcm-file for an MPRAGE MRI, which is usually located in a directory of the form /mridata/cbu/CBU123456_MR123456/123456_123456/Series_002_CBU_MPRAGE/1.2.3.4.1107.5.2.32.35119.123456123456.dcm. For example, choose the first or last dcm-file in the corresponding directory, the program will do the rest. The output directory .../mri/orig was created previously (remember, you've checked whether it worked...).

CbuMeg: AnalyzingData/MNE_MRI_preprocessing (last edited 2019-11-28 13:59:44 by OlafHauk)