Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This is a required file which is passed to the TRACULA processing steps. Every new analysis requires a new or modified dmrirc file. If more than one person is analyzing the same datasest, best practice is to save each analysis as a unique file. A reasonable place to save this files is LinuxShare\tracula.

Once you have a basic file, the most common change will be the subject name.

  • Example

    A configuration file is used to define subjects and locations.

    The following commands are examples of running the preprocessing steps:

    Background Colortracl-all -c

Run TRACULA preprocessing

There are three commands to the preprocessing. Each command uses the dmrirc file, so in the samples below, you would change the "-c" parameter to the file you created.

trac-all -prep -c /mnt/hgfs/LinuxShare/tracula/dmrirc_VM.txt

trac-all -bedp -c /mnt/hgfs/LinuxShare/tracula/dmrirc_VM.txt

trac-all -path -c /mnt/hgfs/LinuxShare/tracula/dmrirc_VM.txt

 These can be combined into one command, to run all three steps at once, by separating with "&&". (Separating with ";" semicolons will run all three commands indepedently, whereas "&&" will stop if the first command fails, which is what we want.) Thus the most command command will be:

...]$ trac-all -prep -c /mnt/hgfs/LinuxShare/tracula/dmrirc_VM.txt && trac-all -bedp -c /mnt/hgfs/LinuxShare/tracula/dmrirc

...

FreeSurfer Preprocessing

...

_VM.txt && trac-all -path -c /mnt/hgfs/LinuxShare/tracula/dmrirc_VM.txt

Viewing Paths

The TRACULA portion of the wiki has several examples of the commands you will need to type. You need to adjust the location of the files.

Example to view single track:

...]$ freeview -v /usr/local/freesurfer/subjects/CON302/dmri/dtifit_FA.nii.gz /usr/local/freesurfer/subjects/CON302/dpath/lh.ilf_AS_avg33_mni_bbr/path.pd.nii.gz:colormap=jet:isosurface=0,0:color='Red'

Example to view all tracks:

...]$ freeview -v /usr/local/freesurfer/subjects/CON302/dmri/dtifit_FA.nii.gz -tv /usr/local/freesurfer/subjects/CON302/dpath/merged_avg33_mni_bbr.mgz

Saving Outputs

You will want to copy the results back to the LinuxShare. All TRACULA outputs are in the subject "dmri" and "dpath" subfolders:

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

 The results will be available to everyone. Viewing paths and measure stats will require adjusting the file location.

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.

...