-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Description
I have a Philips DWI scan (nothing fancy, standard clinical protocol). heudiconv fails like this:
File "/usr/lib/python2.7/dist-packages/nipype/interfaces/base.py", line 1128, in aggregate_outputs
raise FileNotFoundError(msg)
nipype.utils.filemanip.FileNotFoundError: File/Directory '['/tmp/heudiconvtmpm4a6EF/convert/20130717_141500DTIhigh2isoSENSEs701a1007.bvec']' not found for Dcm2nii output 'bvecs'.
Interface Dcm2nii failed to run.
That is, because the file it is looking for carries an x
prefix -- which is strange, as dcm2nii was executed with this command:
Running: dcm2nii -a y -c y -b config.ini -v y -d y -e y -g y -i n -n y -o /tmp/heudiconvtmpm4a6EF/convert -p y -x n -f n
This could be considered a bug in nipype, dcm2nii, or heudiconv. It would be relatively simple to work around in heudiconv: Check if res.outputs.bvecs is present and a corresponding file exists. If it is present, but the file doesn't exist, look for the same file with a x
prefix.
What approach would you suggest?
Metadata
Metadata
Assignees
Labels
No labels