<?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>SpmDtiToolbox</title><revhistory><revision><revnumber>6</revnumber><date>2013-03-08 10:28:27</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>5</revnumber><date>2008-06-05 16:40:16</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>4</revnumber><date>2008-06-05 16:35:58</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>3</revnumber><date>2008-06-05 16:35:12</date><authorinitials>devel03.mrc-cbu.cam.ac.uk</authorinitials></revision><revision><revnumber>2</revnumber><date>2007-09-16 18:26:18</date><authorinitials>c-69-181-164-38.hsd1.ca.comcast.net</authorinitials></revision><revision><revnumber>1</revnumber><date>2007-09-16 18:26:09</date><authorinitials>c-69-181-164-38.hsd1.ca.comcast.net</authorinitials></revision></revhistory></articleinfo><section><title>SPM DTI toolbox</title><para>This is a toolbox for playing with DTI data, including data import and export in DICOM, SPM and FSL format, creating mask images, and diagnosing slice artfacts, such as the <ulink url="https://imaging.mrc-cbu.cam.ac.uk/methods/SpmDtiToolbox/methods/DtiSpikingArtefact#">DtiSpikingArtefact</ulink>. It automates many of the preprocessing steps in [<ulink url="http://wiki.mrc-cbu.cam.ac.uk/imaging/DiffusionFdtNotes#">DiffusionFdtNotes</ulink>] </para><section><title>In use</title><para>First, get a version of the code - for now use the development versions - as below. </para><para>Then, to convert some DICOM FSL data to FSL format, try this: </para><screen><![CDATA[dt_dicom_to_fsl]]></screen><para>You should find, after following a few prompts, that you have, in your selected output directory, two new directories: </para><itemizedlist><listitem><para>spm_dti (containing the DICOM-NIFTI converted SPM files and diffusion directions) </para></listitem><listitem><para>fdt (containing data ready for input into the FSL fdt tool) </para></listitem></itemizedlist><para>Let me know of any problems, it's in early testing. </para></section><section><title>To install a development code copy on your system</title><para>You will need subversion, and three repositories, like this: </para><screen><![CDATA[cd my_directory
svn co http://imaging.mrc-cbu.cam.ac.uk/svn/cbudti/devel cbudti
svn co http://imaging.mrc-cbu.cam.ac.uk/svn/utilities/devel utilities
# And for testing
svn co http://imaging.mrc-cbu.cam.ac.uk/svn/testing/devel testing]]></screen><para>Put all three of cbudti, utilities and (optionally) testing on your matlab path </para></section><section><title>Subversion repository</title><para>At: <ulink url="http://imaging.mrc-cbu.cam.ac.uk/svn/cbudti/devel"/> </para><para>For example, to get a copy of the current state of the development code: </para><para><code>svn export http://imaging.mrc-cbu.cam.ac.uk/svn/cbudti/devel cbudti</code> </para><para>(this results in a new <code>cbudti</code> directory containing the code.  To use it, put it on your matlab path (<code>addpath /your/directory/cbudti</code>). </para><para>To check out a versioned copy for editing or reviewing changes: </para><para><code>svn co http://imaging.mrc-cbu.cam.ac.uk/svn/cbudti/devel cbudti</code> </para><para>Then (if you have permission) edit some file. </para><para>Then: </para><para><code>svn commit -m 'A comment'</code> </para><para>And: </para><para><code>cd cbudti; svn update</code> </para><para>to get the latest repository data into your working copy in the <code>cbudti</code> subdirectory. </para><para><ulink url="https://imaging.mrc-cbu.cam.ac.uk/methods/SpmDtiToolbox/methods/MatthewBrett#">MatthewBrett</ulink> </para></section></section></article>