fMRIprep was successfully done when I set the output-space as either “T1w” or “MNI152NLin2009cAsym”. However, it gets error when I set the output-space as both of them like this:
fmriprep-docker /Volumes/CSNL_new/Server/project/7T_magnitude/MRI/nii/prepexcercise /Volumes/CSNL_new/Server/project/7T_magnitude/MRI/nii/prepexcercise/derivatives \
participant \
--participant-label 01 \
--skip-bids-validation \
--md-only-boilerplate \
--fs-license-file /Volumes/CSNL_new/Server/project/7T_magnitude/code/fmriprep/license.txt \
--fs-no-reconall \
--output-spaces T1w MNI152NLin2009cAsym \
--stop-on-first-crash
Error message from this code is as follows:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.11/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.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/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 ds_bold.
Traceback:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/niworkflows/interfaces/bids.py", line 742, in _run_interface
unsafe_write_nifti_header_and_data(
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/niworkflows/utils/images.py", line 66, in unsafe_write_nifti_header_and_data
nb.volumeutils.array_to_file(data, fobj, offset=header.get_data_offset())
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nibabel/volumeutils.py", line 605, in array_to_file
return _write_data(data, fileobj, out_dtype, order, pre_clips=pre_clips)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nibabel/volumeutils.py", line 784, in _write_data
fileobj.write(dslice.tobytes())
File "/opt/conda/envs/fmriprep/lib/python3.11/gzip.py", line 289, in write
self.fileobj.write(self.compress.compress(data))
OSError: [Errno 5] Input/output error
Is there any advice to implement fMRIprep with multiple output spaces?
Thanks very much in advance!