Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

TRACULA is a fiber tracking and white matter segmentation tool within FreeSurfer.

Running TRACULA

Required data

T1 with FreeSurfer processing

Each subject needs T1 anatomicals that have been processing with the usual FreeSurfer analysis. Typically, these are under the SUBJECTS_DIR LinuxShare\subjects4freesurfer. I'm not sure if the FreeSurfer processing needs to be successful (sometimes it fails).

DTI and bvecs/bvals

The DTI data need to be in the format of DICOM or custom nifti files. However, the DICOM files may be unreliable, as in practice, 64-direction Siemens DTI files with extra b0's caused errors. (It is possible this was because they were on the SUBJECTS_DIR on Windows network share.) The alternative is to use the FSL-ready DTI data in LinuxShare\subjects4fsl.

The bvals and bvecs files that TRACULA needs are slightly different to those used by FSL, so new files need to be created. The difference is that FSL has data across columns/volume, whereas TRACULA requires rows/volume, so they simply need to be flipped. Here is an example of how to do that.

Copy to local SUBJECTS_DIR

1) In Linux, check that you have a folder

/usr/local/freesurfer/subjects

If not, create it. This will also need the bert and fsaverage folders copied to it.

2) copy the T1 FreeSurfer subject to this folder. An example of a command (from a terminal in Linux):

...]$ cp -rv /mnt/hgfs/LinuxShare/subjects4freesurfer/CON302 /usr/local/freesurfer/subjects

Note the format of specifying the folder to copy, and the folder to copy into (as opposed to the destination folder); thus in the above example, the destination does not include "CON302".

3) Copy the DTI data to the same subjects folder:

Create the folder if it does not already exist:

...]$ mkdir /usr/local/freesurfer/subjects/CON302/DTI_b0corr

Copy the main data file:

...]$ cp /mnt/hgfs/LinuxShare/subjects4FSL/CON302/DTI_b0corr/data.ni* /usr/local/freesurfer/subjects/CON302/DTI_b0corr

Copy bvals4tracula.txt and bvecs4tracula.txt (see above to create them):

...]$ cp /mnt/hgfs/LinuxShare/subjects4FSL/CON302/DTI_b0corr/*4tracula.txt /usr/local/freesurfer/subjects/CON302/DTI_b0corr

Configuration File (dmrirc)

This is a required file which is passed to the TRACULA processing steps. A reasonable place to save this is LinuxShare\tracula.

  • Example
  • A configuration file is used to define subjects and locations.

    The following commands are examples of running the preprocessing steps:

    1. tracl-all -c /mnt/hgfs/LinuxShare/tracula/dmrirc -prep

FreeSurfer Preprocessing

Make sure each subject has a successfully completed FreeSurfer preprocessing set of files.

DTI Data

Probably easiest to use an outside folder; if DICOM files are available, these will work (at least for Siemens scanners). Otherwise, the format is akin to FSL.

  • Note that for Linux, spaces are a problem, so the file names must have spaces removed.

Technical Note: Issues running in a VM*

The scripts rely on symbolic links, which cannot be created on Windows shared folders. Thus, the SUBJECTS_DIR must be local, and under the usual VM setup we use, the files need to be copied locally, and the local SUBJECTS_DIR set.

An alternative that does not work is to run with the SUBJECTS_DIR on the shared folder. I did test by editing the file "track-preproc" (trac-preproc as of 2013-08-20) to change all the symbolic link creations to file-copy instead. Although the initial preprocessing step worked with this edited file, it crashed later on. Even had this worked, it may cause a problem if the "linked" files are changed.

*VM = Virtual Machine

  • No labels