<?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>PetModelAutomation99</title><revhistory><revision><revnumber>6</revnumber><date>2013-03-07 21:22:56</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>5</revnumber><date>2006-09-06 11:56:17</date><authorinitials>IanNimmoSmith</authorinitials></revision><revision><revnumber>4</revnumber><date>2006-09-05 17:03:27</date><authorinitials>IanNimmoSmith</authorinitials></revision><revision><revnumber>3</revnumber><date>2006-09-05 17:02:10</date><authorinitials>IanNimmoSmith</authorinitials></revision><revision><revnumber>2</revnumber><date>2006-09-05 17:01:14</date><authorinitials>IanNimmoSmith</authorinitials></revision><revision><revnumber>1</revnumber><date>2006-09-05 14:16:12</date><authorinitials>IanNimmoSmith</authorinitials></revision></revhistory></articleinfo><section><title>Automating SPM99 Analyses</title><para>SPM99 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://imaging.mrc-cbu.cam.ac.uk/imaging/PetModelAutomation99/imaging/PetModelAutomation99?action=AttachFile&amp;do=get&amp;target=cbu_csv99_ui.m">cbu_csv99_ui.m</ulink>, put it somewhere in your Matlab run path, and run it from the Matlab command window: </para><screen><![CDATA[>> cbu_csv99_ui]]></screen><para>This utility is a modified version of the SPM99 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 SPM99 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 if you use it create 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://imaging.mrc-cbu.cam.ac.uk/imaging/PetModelAutomation99/imaging/CbuCsv99Details#">CbuCsv99Details</ulink>. </para><para>Let me know if you have any problems or comments. </para><para>Updated by <ulink url="https://imaging.mrc-cbu.cam.ac.uk/imaging/PetModelAutomation99/imaging/IanNimmoSmith#">IanNimmoSmith</ulink> on 5 September 2006. </para></section></article>