bids_bep16_conv.processing.mrtrix_dti

bids_bep16_conv.processing.mrtrix_dti(input_files, bval, bvec, mask, outdir)[source]

Setup a succession of MRTRIX dwi2tensor & tensor2metric command.

Parameters:
  • input_files (str) – Path to dwi image.

  • bval (str) – Path to bval image.

  • bvec (str) – Path to bvec image.

  • mask (str) – Path to mask image.

  • outdir (str) – Output path.

Return type:

Output files generated by dwi2tensor & tensor2metric in specified output directory .

Examples

Run dwi2tensor & tensor2metric on local data and save it to the Desktop.

>>> mrtrix_dti('sub-01_desc-preproc_dwi.nii.gz',
               'sub-01_desc-preproc_dwi.bval',
               'sub-01_desc-preproc_dwi.bvec',
               'sub-01_desc-brain_mask.nii.gz',
               '/home/user/Desktop)