Summary of what happened:
Hi,
I have tried my luck using fmriprep with a custom template but unfortunately get an error relatively late in the processing pipeline, thrown by the “load_ants_h5” function (see below). In our case, we chose to create a group template from mean functional EPIs of our subjects.
Setting up the template worked ok with a little nasty workaround, which was to add the suffix _T1w.nii.gz to the template, instead of _bold.nii.gz (or similar), since fmriprep wouldn’t find the template otherwise.
The pipeline runs normally for quite a while until I get the error pasted below, together with the message that the preprocessing steps couldn’t be finished. I really don’t know how to interpret / where the issue lies, so I’d appreciate any input
Command used (and if a helper script was used, a link to the helper script or the command generated):
snipped from bash script:
singularity run --cleanenv --bind /home $FMRIPREP_SING_DIR \
$BIDS_DIR $DERIVATIVES_DIR \
participant \
-w $WORKING_DIR \
--participant-label $SUBJECTS \
--ignore slicetiming \
--omp-nthreads 8 \
--nthreads 12 \
--mem-mb 30000 \
--output-spaces CUSTOMTGA:res-150 \
--fs-license-file $LICENSE_FILE \
--fs-no-reconall \
--longitudinal \
--skip-bids-validation \
--write-graph \
--stop-on-first-crash
Version:
- fMRIPrep version: 23.2.1
Environment (Docker, Singularity / Apptainer, custom installation):
Singularity, executed by bash script
Data formatted according to a validatable standard? Please provide the output of the validator:
Data according to BIDS standard, no errors
Relevant log outputs (up to 20 lines):
Node Name: fmriprep_23_2_wf.sub_13_wf.bold_ses_A_task_sequenceviolation_dir_ap_run_01_wf.bold_std_wf.fmap_recon
File: /home/work/luisa/TGA/BIDS_FUNC_SPACE/derivatives_custom/sub-13/log/20240518-161413_a2582651-f4e3-4484-84fd-8503b4113039/crash-20240518-210625-fmriprep-fmap_recon.a0-81dbd89a-a636-420d-a34c-bb253a75c22e.txt
Working Directory: /home/work/luisa/TGA/tmp/fmriprep_tmp/fmriprep_23_2_wf/sub_13_wf/bold_ses_A_task_sequenceviolation_dir_ap_run_01_wf/bold_std_wf/_in_tuple_CUSTOMTGA.res150/fmap_recon
Inputs:
fmap_ref_file:
in_coeffs:
inverse: [False]
target_ref_file:
transforms:
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 fmap_recon.
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/fmriprep/interfaces/resampling.py", line 169, in _run_interface
transforms = load_transforms(self.inputs.transforms, self.inputs.inverse)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/utils/transforms.py", line 26, in load_transforms
xfm = load_ants_h5(path)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/fmriprep/utils/transforms.py", line 85, in load_ants_h5
raise ValueError(msg)
ValueError: Unexpected fixed parameters
Expected: [193. 229. 193. 96. 132. -78. 1. 1. 1. -1. 0. 0. 0. -1.
0. 0. 0. 1.]
Found: [ 1.60000000e+02 1.60000000e+02 9.00000000e+01 -1.01934868e+02
9.70576706e+01 -9.59674072e+00 1.24999988e+00 1.25000012e+00
1.25000000e+00 9.96969665e-01 -1.56333234e-08 7.77913035e-02
2.38553837e-02 -9.51819457e-01 -3.05729676e-01 -7.40432784e-02
-3.06658965e-01 9.48935129e-01]