Skip to content

Conventions

Alessandro Daducci edited this page Oct 19, 2020 · 3 revisions

DWI data

The diffusion MRI signal is stored as a 4D NIFTI file, where:

  • the first three dimensions define the spatial locations of voxels, ie x, y and z;
  • the fourth dimension contains the diffusion signal for each voxel (x,y,z).

A companion scheme file defines all the information about the diffusion acquisition protocol. The scheme is a text file and can be specified in two formats:

  • as an Nx4 matrix, where the first three columns are the gradient directions and the fourth contains their b-value (s/mm^2).
  • as an Nx7 matrix, where the first three columns are the gradient directions and the remaining four define the gradient strength (T/m), big delta (s), small delta (s) and echo time (s), respectively.

The scheme files follow the Camino file structure; here, the header line (eg. VERSION: BVECTOR) can be omitted. The gradient directions are assumed to be in voxel-coordinates and the affine transformation of the DWI data will not be taken into account.

Peak orientations

If an extra-cellular compartment is used in the forward model, a NIFTI file has to be provided containing the orientations of the additional compartment in every voxel. By default, the vectors will be interpreted in voxel-coordinate system. However, if the peak orientations were stored in world-coordinate system (e.g. using sh2peaks in MRtrix), an additional flag (peaks_use_affine = True) in trk2dictionary in order to apply the affine transformation from the header of the peak file. The correct orientation of the peaks can be determined in the COMMIT_debugger switching between the two possibilities pressing A.

Acquisition protocol

At the moment, COMMIT assumes that the data is acquired with a multi-shell acquisition protocol (in addition to an arbitrary number of b0 images). The reason for this is that COMMIT creates internal lookup-tables (LUT) for efficiently computing the matrix-vector multiplications with the linear operator A. These LUT are created by performing the rotations in spherical harmonics (SH) space, as this procedure is much faster than generating the single response-functions in all possible orientations. As a consequence, the current version of COMMIT works only with data acquired on (multiple) shells.

For other non-shell-like acquisition schemes, e.g. DSI, this procedure is not possible. At the moment, the software threats all the diffusion gradients as belonging to distinct shells (very inefficient).

Folder structure

Usually, all subjects belonging to the same study are acquired with the same acquisition scheme. For this reason, the software implicitly assumes a folder structure as follows:

    ├── data
        ├── Study_01    --> subjects acquired with protocol "Study_01"
            ├── Subject_01
            ├── Subject_02
            ├── ...
        ├── Study_02    --> subjects acquired with protocol "Study_02"
            ├── Subject_01
            ├── Subject_02
            ├── ...
        ├── ...

For data following this convention, the internal LUT is generated only once for the acquisition scheme of the study and then, for each subject, they are simply projected back very efficiently from the SH space to the specific subject space. In all other cases, the LUT must be regenerated each time.