Diff for "PetModelAutomation" - MRC CBU Imaging Wiki
location: Diff for "PetModelAutomation"
Differences between revisions 1 and 11 (spanning 10 versions)
Revision 1 as of 2006-07-04 15:00:12
Size: 1883
Editor: Scripting Subsystem
Comment:
Revision 11 as of 2006-09-05 13:47:11
Size: 1192
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Automating spm99 Analyses =
SPM 99b PET analyses can be automated using my CSV edits to the standard SPM PET statistical analysis file.This facility has already been set up at the CBU. To use it, start spm 99b with the command line:
= Automating SPM99 Analyses =

SPM 99 PET analyses can be automated using the CBU CSV modfications to the standard SPM statistical design.

Download this file attachment:cbu_csv99_ui.m, put it somewhere in your Matlab run path, and run it from the Matlab command window:
Line 5: Line 8:
spm 99be >> cbu_csv99_ui
Line 7: Line 10:
for our version of spm 99b with local edits. This means that matlab will find my edited version of the file [http://imaging.mrc-cbu.cam.ac.uk/downloads/Csv/spm_spm_ui.m spm_spm_ui.m]. To install this feature outside the CBU, merely download the spm_spm_ui.m file from the link above, and save it into some directory on your matlab path that is in front of the SPM 99b distribution, and start SPM.The facility is a modified version of the SPM99b interface (spm_spm_ui.m) for specifying the design and image file locations in a PET study.
Line 9: Line 11:
This automates the stages, after design type selection, of specifying group, subject, condition, replicate and covariate information by preparing a text file in advance and then telling SPM99b to read from this file. If you create a design in the standard point-click-type interface, a re-usable text file is created in the requisite format. This utility is a modified version of the SPM99 interface (spm_spm_ui.m) for specifying the design and image file locations in a PET study.

This automates the stages, after design type selection, of specifying group, subject, condition, replicate and covariate information by preparing a text file in advance and then telling SPM99 to read from this file. If you create a design in the standard point-click-type interface, a re-usable text file named ''design.csv'' is created in the requisite format.
Line 13: Line 17:
An equivalent version for the SPM99b interface (spm_spm_fmri_ui.m) for fMRI time series studies is under development.

With luck the planned upgrade to SPM99 will incorporate equivalent features. However, in the mean time, you may find this a useful time saving and accuracy enhancing addition.

Documentation is in

http://imaging.mrc-cbu.cam.ac.uk/downloads/Csv/details.txt
Documentation is in attachment:details99.txt.
Line 23: Line 21:
[mailto:ian.nimmo-smith@mrc-cbu.cam.ac.uk Ian Nimmo-Smith] 12/10/99

Updated by IanNimmoSmith on 5 September 2006.

Automating SPM99 Analyses

SPM 99 PET analyses can be automated using the CBU CSV modfications to the standard SPM statistical design.

Download this file attachment:cbu_csv99_ui.m, put it somewhere in your Matlab run path, and run it from the Matlab command window:

>> cbu_csv99_ui

This utility is a modified version of the SPM99 interface (spm_spm_ui.m) for specifying the design and image file locations in a PET study.

This automates the stages, after design type selection, of specifying group, subject, condition, replicate and covariate information by preparing a text file in advance and then telling SPM99 to read from this file. If you create a design in the standard point-click-type interface, a re-usable text file named design.csv is created in the requisite format.

I have found this facility useful for running multiple 'what if' analyses - seeing what the effect is of dropping a subject, or a condition, or adding an extra covariate, etc. etc., at the cost of a few edits to a text file.

Documentation is in attachment:details99.txt.

Let me know if you have any problems or comments.

Updated by IanNimmoSmith on 5 September 2006.

CbuImaging: PetModelAutomation (last edited 2013-03-07 21:24:03 by localhost)