Dear fMRIprep-experts,
I’m struggeling with the following error message and I do not understand why this error message is thrown in some sessions of some participants while fmriprep seems to be running fine for the same subjects in other sessions. Does anyone have a clue what is going here? I have compared the meta-information of the BIDS files with those sessions that works fine and I cold not spot any differences. I have also tried attributing more memory to fmriprep but this also did not help (also subjects were processed fine that had a bigger nifti file that there ones where the error was thrown). Here is the error output, any ideas are highly appreciated:
Node: fmriprep_wf.single_subject_481_wf.func_preproc_task_fMRIPA1_run_1_echo_1_wf.bold_hmc_wf.mcflirt
Working directory: /scratch/fmriprep_wf/single_subject_481_wf/func_preproc_task_fMRIPA1_run_1_echo_1_wf/bold_hmc_wf/mcflirt
Node inputs:
args =
bins =
cost =
dof =
environ = {‘FSLOUTPUTTYPE’: ‘NIFTI_GZ’}
in_file =
init =
interpolation =
mean_vol =
out_file =
output_type = NIFTI_GZ
ref_file =
ref_vol =
rotation =
save_mats = True
save_plots = True
save_rms = True
scaling =
smooth =
stages =
stats_imgs =
use_contour =
use_gradient =
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/plugins/multiproc.py”, line 67, in run_node
result[“result”] = node.run(updatehash=updatehash)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py”, line 521, in run
result = self._run_interface(execute=True)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py”, line 639, in _run_interface
return self._run_command(execute)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py”, line 751, in _run_command
f"Exception raised while executing Node {self.name}.\n\n{result.runtime.traceback}"
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node mcflirt.
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py”, line 454, in aggregate_outputs
setattr(outputs, key, val)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/traits_extension.py”, line 330, in validate
value = super(File, self).validate(objekt, name, value, return_pathlike=True)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/traits_extension.py”, line 135, in validate
self.error(objekt, name, str(value))
File “/usr/local/miniconda/lib/python3.7/site-packages/traits/trait_handlers.py”, line 172, in error
value )
traits.trait_errors.TraitError: The ‘out_file’ trait of a MCFLIRTOutputSpec instance must be a pathlike object or string representing an existing file, but a value of ‘/scratch/fmriprep_wf/single_subject_481_wf/func_preproc_task_fMRIPA1_run_1_echo_1_wf/bold_hmc_wf/mcflirt/sub-481_task-fMRIPA1_run-1_echo-1_bold_mcf.nii.gz’ <class ‘str’> was specified.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py”, line 401, in run
outputs = self.aggregate_outputs(runtime)
File “/usr/local/miniconda/lib/python3.7/site-packages/nipype/interfaces/base/core.py”, line 461, in aggregate_outputs
raise FileNotFoundError(msg)
FileNotFoundError: No such file or directory ‘/scratch/fmriprep_wf/single_subject_481_wf/func_preproc_task_fMRIPA1_run_1_echo_1_wf/bold_hmc_wf/mcflirt/sub-481_task-fMRIPA1_run-1_echo-1_bold_mcf.nii.gz’ for output ‘out_file’ of a MCFLIRT interface