I’ve been running fMRIPrep on some data and it’s running ok for one session, but as soon as I try to run two sessions I get an error message. It seems to be related to the field maps:
- error message is: > nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node calc_phdiff
- if I add the -ignore field maps option then it runs without any issues
I can’t work out what would be causing the problem- any ideas of things to check? I’ve pasted the full output below:
221109-15:01:20,968 nipype.workflow INFO:
[Node] Finished "mcflirt", elapsed time 25.947368s.
221109-15:01:22,947 nipype.workflow WARNING:
Storing result file without outputs
221109-15:01:22,947 nipype.workflow WARNING:
[Node] Error on "fmriprep_22_0_wf.single_subject_003_wf.fmap_preproc_wf.wf_phasediff_fmap0.phdiff_wf.calc_phdiff" (/scratch/fmriprep_22_0_wf/single_subject_003_wf/fmap_preproc_wf/wf_phasediff_fmap0/phdiff_wf/calc_phdiff)
221109-15:01:22,948 nipype.workflow ERROR:
Node calc_phdiff failed to run on host 311f56f406bb.
221109-15:01:22,951 nipype.workflow ERROR:
Saving crash info to /out/sub-003/log/20221109-145824_4b18e9de-0fad-4223-aa4a-576e27092be5/crash-20221109-150122-root-calc_phdiff-c17cf4c1-0e17-4cfc-a0ef-8963da658ad3.txt
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command
raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node calc_phdiff.
Traceback:
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 398, in run
runtime = self._run_interface(runtime)
File "/opt/conda/lib/python3.9/site-packages/sdcflows/interfaces/fmap.py", line 93, in _run_interface
self._results["phase_diff"], self._results["metadata"] = _subtract_phases(
File "/opt/conda/lib/python3.9/site-packages/sdcflows/utils/phasemanip.py", line 56, in subtract_phases
if echo_times[0] > echo_times[1]:
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
221109-15:01:22,968 nipype.workflow CRITICAL:
fMRIPrep failed: Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
self.procs[jobid].run(updatehash=updatehash)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
File "/opt/conda/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 771, in _run_command
raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node calc_phdiff.
Traceback:
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 398, in run
runtime = self._run_interface(runtime)
File "/opt/conda/lib/python3.9/site-packages/sdcflows/interfaces/fmap.py", line 93, in _run_interface
self._results["phase_diff"], self._results["metadata"] = _subtract_phases(
File "/opt/conda/lib/python3.9/site-packages/sdcflows/utils/phasemanip.py", line 56, in subtract_phases
if echo_times[0] > echo_times[1]:
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
221109-15:01:24,172 cli ERROR:
Preprocessing did not finish successfully. Errors occurred while processing data from participants: 003 (1). Check the HTML reports for details.
221109-15:01:24,172 cli ERROR:
Preprocessing did not finish successfully. Errors occurred while processing data from participants: 003 (1). Check the HTML reports for details.
221109-15:01:28,725 nipype.workflow INFO:
[Node] Finished "mcflirt", elapsed time 25.779675s.
221109-15:01:31,991 nipype.workflow INFO:
[Node] Finished "mcflirt", elapsed time 26.98499s.
221109-15:01:35,855 nipype.workflow INFO:
[Node] Finished "mcflirt", elapsed time 28.918328s.
221109-15:01:48,693 nipype.workflow INFO:
[Node] Finished "init_aff", elapsed time 31.484635s.
fMRIPrep: Please report errors to https://github.com/nipreps/fmriprep/issues