|Deletions are marked like this.||Additions are marked like this.|
|Line 7:||Line 7:|
|* fMRI 1st-level statistics: [[attachment:batch_spm5_1stlevel.m]]||* fMRI 1st-level statistics: [[attachment:batch_spm5_1stlevel.m||&mimetype=text]]|
Batch for SPM5
Actually, batch for SPM5 is very similar to SpmBatch2, with the big exception that you can now save analyses in the GUI to a batch definition file, that can repeat the analysis, and be edited to adapt to another subject or slightly different parameters.
Nonetheless, if you want to continue working directly with Matlab scripts of calls to spm functions, here are some examples (NB we will not be held responsible for any errors!):
fMRI preprocessing: batch_spm5_preproc.m
fMRI 1st-level statistics: batch_spm5_1stlevel.m
fMRI 2nd-level statistics (within-subject ANOVA): batch_spm5_stats_2ndlevel_within_ANOVA.m
fMRI 2nd-level statistics (mixed, ie within and between-subject ANOVA) (a bit hacky!): batch_spm5_stats_2ndlevel_mixed_ANOVA.m
EEG preprocessing: batch_spm5_eeg_preproc.m
More scripts for EEG/MEG preprocessing and source localisation (particularly for the CBU EEG/MEG machines) can be found here: http://imaging.mrc-cbu.cam.ac.uk/meg/SpmAnalysis
Some others example SPM5 batch scripts.
[Some of these scripts are .tar.tar, so from the unix shell you need to rename the file .tar.gz, unzip with gunzip (gunzip [file]), then extract them (tar -xf [file]).]