Hi fMRIPrep experts,
Thank you for your usual support. I recently have encountered the followiing error in preprocessing step of resting-state functional MRI with one T1-weighted MRI image, and fieldmap images, and no T2-weighted MRI image, and fieldmap processing was halted (though other processing steps were goingβ¦). In only a few cases (in other many cases, there were no problems), I encountered such error. As fieldmap images, I used two magnitude images derived from our GE MRI scanner and one phase-difference fieldmap (Hz) from the same scanner. Only a phase-difference image for each subject was made from two magnitude images and two real phase images by myself with SPM12 Fieldmap Toolbox. Would you mind providing me some clues to solve this condition? I appreciate your guidance in advance.
Node: fmriprep_23_1_wf.single_subject_023_wf.fmap_preproc_wf.wf_auto_00000.check_register
Working directory: /scratch/fmriprep_23_1_wf/single_subject_023_wf/fmap_preproc_wf/wf_auto_00000/check_register
Node inputs:
fmap_files = <undefined>
mag_files = ['/data/sub-023/fmap/sub-023_magnitude1.nii', '/data/sub-023/fmap/sub-023_magnitude2.nii']
rot_thresh = 0.02
trans_thresh = 1.0
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
result["result"] = node.run(updatehash=updatehash)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
File "/opt/conda/envs/fmriprep/lib/python3.10/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 check_register.
Traceback:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/sdcflows/interfaces/fmap.py", line 343, in _run_interface
out_fmaps = [_conform_img(fmap, mag_imgs[0], runtime.cwd) for fmap in fmap_imgs]
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/sdcflows/interfaces/fmap.py", line 343, in <listcomp>
out_fmaps = [_conform_img(fmap, mag_imgs[0], runtime.cwd) for fmap in fmap_imgs]
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/sdcflows/interfaces/fmap.py", line 365, in _conform_img
basename = os.basename(img.get_filename())
AttributeError: module 'os' has no attribute 'basename'