Dear Slicer team,
I am trying to run the module GradQC to check the quality of my diffusion data and it’s supposed to be a simple process which should work by giving input as my dwi.nii.gz file and run it but it throws an error as follow. Your support will be highly appreciated.
Thank you.
Nabin
Error:
diffusionQC standard error:
Traceback (most recent call last):
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/Slicer-4.10/cli-modules/diffusionQC.py”, line 57, in
QC.run()
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/python2.7/site-packages/plumbum/cli/application.py”, line 572, in run
retcode = inst.main(*tailargs)
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/Slicer-4.10/cli-modules/diffusionQC.py”, line 53, in main
process(self.dwi, self.mask, self.out, self.autoMode)
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/python2.7/site-packages/diffusionqclib/gradient_process.py”, line 197, in process
hdr, mri, grad_axis, slice_axis, b_value, gradients = dwi_attributes(dwiPath)
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/python2.7/site-packages/diffusionqclib/dwi_attributes.py”, line 8, in dwi_attributes
dwi= nrrd.read(file_name)
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/python2.7/site-packages/nrrd/reader.py”, line 503, in read
header = read_header(fh, custom_field_map)
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/python2.7/site-packages/nrrd/reader.py”, line 247, in read_header
header_size += _validate_magic_line(magic_line)
File “/Applications/Slicer.app/Contents/Extensions-28257/DiffusionQC/lib/python2.7/site-packages/nrrd/reader.py”, line 183, in _validate_magic_line
raise NRRDError(‘Invalid NRRD magic line. Is this an NRRD file?’)
nrrd.errors.NRRDError: Invalid NRRD magic line. Is this an NRRD file?