Diff for "PetModelAutomation2" - MRC CBU Imaging Wiki
location: Diff for "PetModelAutomation2"
Differences between revisions 1 and 2
Revision 1 as of 2006-09-05 14:20:17
Size: 1175
Comment:
Revision 2 as of 2006-09-06 12:01:01
Size: 1248
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
SPM2 PET analyses can be automated using the CBU CSV modfications to the standard SPM statistical design. SPM2 PET analyses can be automated using the CBU CSV modfications to the standard interface for setting up the required SPM statistical design.
Line 5: Line 5:
Download this file attachment:cbu_csv2_ui.m, put it somewhere in your Matlab run path, and run it from the Matlab command window: Download the file attachment:cbu_csv2_ui.m, put it somewhere in your Matlab run path, and run it from the Matlab command window:
Line 8: Line 8:
>> cbu_csv2_ui >> my_SPM = cbu_csv2_ui;
Line 11: Line 11:
This utility is a modified version of the SPM2 interface (spm_spm_ui.m) for specifying the design and image file locations in a PET study. This utility is a modified version of the SPM2 PET interface (spm_spm_ui.m) for specifying the design and image file locations in a PET study.
Line 13: Line 13:
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 SPM2 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. The utility automates the stages of specifying group, subject, condition, replicate and covariate information by preparing a text file in advance and then telling SPM2 to read from this file. Alternatively, you can use the utility to create a re-usable text file named ''design.csv'' in the requisite format after you have set up a design in the standard point-click-type interface.

Automating SPM2 Analyses

SPM2 PET analyses can be automated using the CBU CSV modfications to the standard interface for setting up the required SPM statistical design.

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

>> my_SPM = cbu_csv2_ui;

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

The utility automates the stages of specifying group, subject, condition, replicate and covariate information by preparing a text file in advance and then telling SPM2 to read from this file. Alternatively, you can use the utility to create a re-usable text file named design.csv in the requisite format after you have set up a design in the standard point-click-type interface.

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 CbuCsv2Details.

Let me know if you have any problems or comments.

Updated by IanNimmoSmith on 5 September 2006.

CbuImaging: PetModelAutomation2 (last edited 2013-03-07 21:23:59 by localhost)