Diff for "AnalyzingData/MNE_prepare" - Meg Wiki
location: Diff for "AnalyzingData/MNE_prepare"
Differences between revisions 1 and 10 (spanning 9 versions)
Revision 1 as of 2010-06-30 16:52:00
Size: 1227
Editor: YaaraErez
Comment:
Revision 10 as of 2014-07-02 11:07:53
Size: 1683
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Preparing an MNE Analysis =
Line 4: Line 5:
mne_setup_2.6.0}}}
for Version 2.6, or
mne_setup_2.6.0, mne_setup_2.7.1_32bit, or mne_setup_2.7.3_32bit}}}
for Versions 2.6, 2.7.1. or 2.7.3, respectively.

You can also use the 64 bit equivalents:
Line 7: Line 10:
mne_setup_2.7.0_32bit
}}}
for Version 2.7.
mne_setup_2.7.0_64bit, or mne_setup_2.7.3_64bit}}}
for Versions 2.7.0 or 2.7.3. The 64 bit versions still have limited functionality compared to the 32 bit equivalents.
Line 22: Line 25:
You shouldn't mix MNE versions (unless you know what you are doing, but who does?). If you are starting an MNE analysis now, the latest version is 2.7.3 (and Freesurfer 5.1.0).
Line 34: Line 37:
= MNE Version 2.7 = = MNE Version 2.7.x =
Line 48: Line 51:
If you run mne_setup_2.7.0_32bit before starting Matlab, it will automatically add the paths to the MNE tools. If you run the MNE setup script before starting Matlab, it will automatically add the paths to the MNE tools.

Preparing an MNE Analysis

In order to use MNE, you have to run the setup command:

mne_setup_2.6.0, mne_setup_2.7.1_32bit, or mne_setup_2.7.3_32bit

for Versions 2.6, 2.7.1. or 2.7.3, respectively.

You can also use the 64 bit equivalents:

mne_setup_2.7.0_64bit, or mne_setup_2.7.3_64bit

for Versions 2.7.0 or 2.7.3. The 64 bit versions still have limited functionality compared to the 32 bit equivalents.

For most operations, MNE expects that the environment variable SUBJECTS_DIR is set, e.g.

setenv SUBJECTS_DIR /mydatadirectory/MRIs

and in some cases also the SUBJECT variable:

setenv SUBJECT /mydatadirectory/Subject1

You shouldn't mix MNE versions (unless you know what you are doing, but who does?). If you are starting an MNE analysis now, the latest version is 2.7.3 (and Freesurfer 5.1.0).

MNE Version 2.6

If you want to use the MNE Matlab toolbox on a regular basis, you should add the line

  • run /imaging/local/linux/mne_2.6.0/mne/matlab/toolbox/mne_setup_toolbox.m

to your startup.m file.

If you run mne_setup_2.6.0 before starting Matlab, it will automatically add the paths to the MNE tools.

MNE Version 2.7.x

Add the following to your Matlab startup.m file:

%---------------------- MNE --------------------------%
mnehome = getenv('MNE_ROOT');
mnematlab = sprintf('%s/share/matlab',mnehome);
if (exist(mnematlab) == 7)
    path(path,mnematlab);
end
clear mnehome mnematlab;
%-----------------------------------------------------%

If you run the MNE setup script before starting Matlab, it will automatically add the paths to the MNE tools.

CbuMeg: AnalyzingData/MNE_prepare (last edited 2014-07-02 11:12:32 by MaartenVanCasteren)