Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
brainprep.interfaces.fsl.dti_fit¶
- brainprep.interfaces.fsl.dti_fit(dwi_file, mask_file, workspace_dir, output_dir, entities)[source]¶
DTI model fitting.
This function prepares the command-line required to compute diffusion tensor imaging (DTI) metrics using FSL dtifit for a single subject.
DTI estimation is performed using the diffusion tensor model and weighted least square fitting to derive scalar measures such as fractional anisotropy (FA), mean diffusivity (MD), and radial diffusivity (RD).
- Parameters:
- dwi_fileFile
Path to the preprocessed diffusion weighted image file of one subject.
- mask_fileFile
Path to the associated brain image file.
- workspace_dir: Directory
Working directory with the workspace of the current processing.
- output_dirDirectory
Directory where the reoriented image will be saved.
- entitiesdict
A dictionary of parsed BIDS entities including modality.
- Returns:
- commandlist[str]
DTI scalar maps computation command-line.
- outputstuple[File]
fa_file : File - The DTI fractional anisotropy image file.
md_file : File - The DTI mean diffusivity image file.