dki-questions > RE: Assistance needed with DKI pre-processing using MRtrix/FSL
Apr 10, 2024  07:04 AM | Abhishek Patil - Vellore Institute of Technology
RE: Assistance needed with DKI pre-processing using MRtrix/FSL

Thank you for your reply. I think the video tutorial is very helpful.

I tried running the tool on my data. The dataset does not have encoding direction. I have 4 files:
1. Image file .nii, 2. .bval file, 3. bvec file and 4. *.json file.

I installed Pydesigner but I ran in the following error:

pydesigner --standard -o /mnt/hgfs/try/DKI/HC1/ /mnt/hgfs/try/DKI/HC1/T20160603170653_NTang^jia-yu_S19.nii



mrconvert -quiet /mnt/hgfs/try/DKI/HC1/dwi0.mif /mnt/hgfs/try/DKI/HC1/working.mif
[WARNING] Given DWI is partial fourier, overriding --degibbs; no unringing correction will be done to avoid artifacts.Use the "--adv" flag to run forced corrections.
Traceback (most recent call last):
  File "/home/abhishek/mrtrix3/bin/dwifslpreproc", line 1327, in
    import mrtrix3
  File "/home/abhishek/mrtrix3/bin/mrtrix3.py", line 84, in
    if not imported (os.path.join (os.path.dirname (build_path), 'lib')):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/abhishek/mrtrix3/bin/mrtrix3.py", line 33, in imported
    spec.loader.exec_module (module)
  File "", line 936, in exec_module
  File "", line 1073, in get_code
  File "", line 1130, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/hgfs/try/DKI/HC1/lib/mrtrix3/__init__.py'
Traceback (most recent call last):
  File "/home/abhishek/anaconda3/envs/mri/bin/pydesigner", line 8, in
    sys.exit(main())
             ^^^^^^
  File "/home/abhishek/anaconda3/envs/mri/lib/python3.11/site-packages/designer/pydesigner.py", line 646, in main
    mrpreproc.undistort(input=working_path,
  File "/home/abhishek/anaconda3/envs/mri/lib/python3.11/site-packages/designer/preprocessing/mrpreproc.py", line 469, in undistort
    raise Exception('dwifslpreproc failed, please look above for '
Exception: dwifslpreproc failed, please look above for error sources.

Does anyone know what this error represents ? 
Thank you in advance.

Regards,


Abhishek

Threaded View

TitleAuthorDate
Abhishek Patil Mar 28, 2024
Hunter Moss Mar 28, 2024
RE: Assistance needed with DKI pre-processing using MRtrix/FSL
Abhishek Patil Apr 10, 2024