<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>PetModelAutomation2</title><revhistory><revision><revnumber>4</revnumber><date>2013-03-07 21:23:59</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>3</revnumber><date>2006-09-06 12:02:01</date><authorinitials>IanNimmoSmith</authorinitials></revision><revision><revnumber>2</revnumber><date>2006-09-06 12:01:01</date><authorinitials>IanNimmoSmith</authorinitials></revision><revision><revnumber>1</revnumber><date>2006-09-05 14:20:17</date><authorinitials>IanNimmoSmith</authorinitials></revision></revhistory></articleinfo><section><title>Automating SPM2 Analyses</title><para>SPM2 PET analyses can be automated using the CBU CSV modfications to the standard interface for setting up the required SPM statistical design. </para><para>Download the file <ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/imaging/PetModelAutomation2/imaging/PetModelAutomation2?action=AttachFile&amp;do=get&amp;target=cbu_csv2_ui.m">cbu_csv2_ui.m</ulink>, put it somewhere in your Matlab run path, and run it from the Matlab command window: </para><screen><![CDATA[>> cbu_csv2_ui;]]></screen><para>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. </para><para>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 <emphasis>design.csv</emphasis> in the requisite format after you have set up a design in the standard point-click-type interface. </para><para>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. </para><para>Documentation is in <ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/imaging/PetModelAutomation2/imaging/CbuCsv2Details#">CbuCsv2Details</ulink>. </para><para>Let me know if you have any problems or comments. </para><para>Updated by <ulink url="https://lsr-wiki-01.mrc-cbu.cam.ac.uk/imaging/PetModelAutomation2/imaging/IanNimmoSmith#">IanNimmoSmith</ulink> on 5 September 2006. </para></section></article>