Before starting this analysis, make sure you have these two softwares available.
Here is the abstract from the very good paper published by Zhang et al. in the Proceedings of the 4th International Conference on Biomedical Image registration in 2010 (see the paper here)
Voxel-based analysis, either whole-brain or tract-specific, is a widely used approach for localizing white matter (WM) differences across populations using diffusion tensor imaging (DTI). A prerequisite to this approach is to spatially normalize all the subjects to a common template. The accuracy of spatial normalization can be improved by using a population-specific template that is, morphologically, most similar to the subjects in the population of interest. Here, we report the development of a population specific DTI template for the elderly using the publicly available IXI brain database [...]. The present template captures the average shape and diffusion properties of a population and contains segmentations of major WM fasciculi parcellated via fiber tractography. Furthermore, the segmentations are modeled using surface-based representation to support the tract-specific analysis recently proposed by Yushkevich et al. The template can be used to examine WM changes in neurodegenerative diseases and conditions.
This abstract explains the core of the method and reflects upon another paper, by Yushkevich et al. which was published two years earlier (see here). In this paper, the author built a children template. From the two papers, you can easily guess the pipeline of the TSA technique. Here is in a simplified version: 1. Obtain an existing DTI template by visiting DTI-TK NITRC Page. Each template consists of a diffusion tensor atlas as well as medial representations of 11 tracts: the corpus callosum (CC), the corticospinal tracts (CST), inferior fronto-occipital tracts (IFO), inferior longitudinal tracts (ILF), superior longitudinal tracts (SLF), and uncinates (UNC).
Two templates have been built from the IXI dataset that is freely available:
2. Register all the population diffusion tensor images to this template (rigid, affine and nonlinear registration) 3. Sample the Fractional Anisotropy (or Apparent Diffusion Coefficient values) over all the registered subjects, compute the mean of this value at each point and project this value on the medial representation 4. Perform a permutation-based non-parametric suprathreshold cluster analysis, to determine the WM clusters that are significantly different between your two populations.
Before any statistical analysis, or registration, you must have built your Diffusion Tensor images. For them to work seamlessly with DTI-TK, there are a few things you might want to check.
Here are the DTI and TSA representation of the atlas.
Left: Principal diffusion direction map of the DTI template visualized with itk-snap. Blue represents the fibers that are going from inferior to superior regions, green posterior anterior and red from left to right. Right: Medial representation of the 11 tracts: the cc (red), the CSTs (blue), the IFOs (yellow), the ILFs (green) the SLFs (purple) and UNCs (light blue, visualized with http://www.paraview.org/paraview).
This is the point, where we are going to use DTI-TK to register all the images to the common template. For this, you can refer to this tutorial, which walks you through the successive types registration: rigid, affine and nonlinear. It also gives you three distinct commands depending on if you want to build a template while registering your data. In our case, we already have the template, so the relevant commands to use are
dti_rigid_sn template.nii.gz subjs.txt EDS
dti_affine_sn template.nii.gz subjs.txt EDS 1
dti_diffeomorphic_sn template.nii.gz subjs_aff.txt mask.nii.gz 6 0.002
dti_warp_to_template_group subjs.txt template.nii.gz 2 2 2
After going through this section, all your subjects will be in a common space. Here again, there's no harm in checking the registered images to make sure everything is ok!
The script tsa_sampling, located in the dtitk/scripts directory of the DTI-TK package samples white matter and tract-specific attributes across the whole population. These white matter attributes are values, such as FA, RD, AD, ADC.... For each one of these values, the mean or the max are computed locally and projected onto the medial model of the tracts. A medial model or mesh is a sheet-like structure that represents a 3D tract (there are 11 of them in our atlases). More precisely, for each subject, these values are sampled along the spokes corresponding to each vertex of the mesh and projected on the mesh.
You can run it as follows:
tsa_sampling dti_volume_list.txt tsa_model_path [maxFA or mean]
where
Non-parametric permutation-based supratheshold statistical analysis follows. In this last computation, we use a script from dti-tk that completely relies on the function mesh_glm, which is part of cmrep. For this, use the script called tsa_stats_glm. For this script to work, you must first generate contrast and design matrices to identify which subjects belong to which group. You can find a simple explanation and example of the general linear model, as well as the associated design and contrast matrix on the freesurfer website. Very simply, if you had such a dti_volume_list.txt and wanted to perform group comparison without any covariation, the design matrix should be as followed (design.txt) and the contrast matrix should be as followed (contrast.txt). As you can notice, there are two groups in this data set, one group of patients and one group of controls. The design matrix has two columns (one per group) and as many lines as the number of subjects. 1 indicates that the subject belongs to a group.
An applet was created to automate this process and can be found here.
Once this is done, simply run the script in the given directory. Example:
tsa_stats_glm mesh_in.txt design.txt contrast.txt [feature] [p threshold] [statistic type] [number of permutation]
where: