trac-all

Index

Name

trac-all: White-matter pathway reconstruction from diffusion-weighted MR images using an atlas of the underlying anatomy

Usage

Using a configuration file to set analysis options:

trac-all

-[step] -c <configfile>

Using only mandatory inputs with all default options (no configuration file needed):

trac-all

-[step] -s <subjectname> --i <dicomfile>

In the above -[step] is one or more command-line options that specify which steps of the processing to run (see details below).

For NMR Center users:

For non-MGH acquisitions

Arguments

Required Arguments

-c dmrirc

Configuration File to set analysis options

OR:

-s subjectname

the name of the subject upon which to operate (if not specified via a configuration file)

-i file

the path to the input diffusion-weighted images (if not specified via a configuration file)

In addition to the above, one of the processing step options below must be provided to specify which parts of the analysis to run.

Processing step options

-prep

All preprocessing (steps 1.1-1.6, see below)

-bedp

Bedpost (step 2)

-path

Pathway reconstruction (step 3)

Processing Stages/Stepwise Directives

(Detailed Explanation for each of these steps is given below)

1.1 Image corrections - Eddy current correction with eddy_correct, B0 field map correction with epidewarp.fsl

-corr

to do this step (Default)

-nocorr

to skip this step

This step performs the following sub-steps:

trac-all -<no>corr -c dmrirc

1.2 Intra-Subject Registration - Diffusion-to-T1 registration with flirt and/or bbregister.

-intra

to do this step (Default)

-nointra

to skip this step

This step performs the following sub-steps:

trac-all -<no>intra -c dmrirc

1.3 Inter-Subject Registration - T1-to-template registration using the MNI template

-inter

to do this step (Default)

-nointer

to skip this step

This step performs the following sub-steps:

For MNI template

trac-all -<no>inter -c dmrirc

1.4 White-matter, cortical and whole-brain masks - Generate masks of the white matter and cortex from FreeSurfer outputs, whole-brain masks from T1 and DWIs.

-masks

to do this step (Default)

-nomasks

to skip this step

This step performs the following sub-steps:

trac-all -<no>masks -c dmrirc

1.5 Tensor fit - Tensor model fitting on DWIs.

-tensor

to do this step (Default)

-notensor

to skip this step

This step performs the following sub-steps:

trac-all -<no>tensor -c dmrirc

1.6 Pathway priors from atlas to T1 - Combine training data and subject's own data to generate pathway priors.

-prior

to do this step (Default)

-noprior

to skip this step

trac-all -<no>prior -c dmrirc

2. Stick and ball model fitting with bedpost (Cluster highly recommended for this step)

trac-all -bedp -c dmrirc

3. Pathway reconstruction - Perform tractography for a single subject

trac-all -path -c dmrirc

Optional arguments

Status and log files

-log file

default is $SUBJECTS_DIR/<your_subjectid>/scripts/trac-all.log

-cmd file

default is $SUBJECTS_DIR/<your_subjectid>/scripts/trac-all.cmd

-noappendlog

start new log and status files instead of appending

Other arguments

-no-isrunning

do not check whether subjects are currently being processed

-sd subjectsdir

specify subjects dir

-umask umask

set unix file permission mask (default 002)

-grp groupid

check that current group is alpha groupid

-allowcoredump

set coredump limit to unlimited

-debug

generate much more output

dontrun

do everything but execute each command

-onlyversions

print version of each binary and exit

-version

print version of this script and exit

-help

print full contents of help

Output directories and files

Running trac-all creates a new directory named <subjid> (if subject id is specified through the commandline) or <subjlist(i)> (if a subjectlist is specified through the configuration file, where i is index of the subject that is currently being processed)

Outputs from trac-all -corr

Note: The list below does not include outputs from B0 inhomogenity correction

This creates three directories under the <subjid> directory (i) dlabel/diff (ii) dmri (iii) scripts

Outputs from trac-all -intra

Note: <regtype>: flt (FLIRT) / bbr (BBREGISTER)

This step creates a folder <subjid>/dmri/xfms

Outputs from trac-all -inter

The following outputs get created if registering to an MNI template.

Outputs from trac-all -masks

This step creates the following folders (i) <subjid>/dlabel/anatorig (ii) <subjid>/dlabel/anat (iii) <subjid>/dlabel/diff (iv) <subjid>/dlabel/mni

The images given below are created in all four spaces:

Note: <space> - anatorig, diff, anat, mni

The following are the output files/images created in this step:

Outputs from trac-all -tensor

The following are the scalar outputs that are computed after fitting a tensor model to the Diffusion data (This is done with FSL's dtifit. For more information refer to the FSL's dtifit page here)

Note: The same set of outputs in MNI space is created under the following directory <subjid>/dmri/mni/dtifit_*.nii.gz

Outputs from trac-all -prior