Summary of what happened:
Dear NeuroStars community,
I am using fMRIPrep (version 24.1.0) to preprocess a dataset that includes both adult and pediatric participants. After running all subjects at least once, approximately 30% of them fail — predominantly pediatric, though some adult subjects are also affected. The children range in aged from 6 to 17 years and failures occur across various age groups, although some participants in almost every group process successfully.
The failures appear to occur during the autorecon1
step of FreeSurfer, specifically due to Talairach alignment issues in almost all cases. Based on visual inspection, the overall data quality does not appear to be the primary cause.
When I run some of these problematic participants through FreeSurfer independently, outside of fMRIPrep, they complete successfully.
Is there a recommended way to handle such Talairach alignment failures within fMRIPrep or is there any other workaround?
Thank you very much in advance!
Best
Dustin
Command used (and if a helper script was used, a link to the helper script or the command generated):
for sub in sub-134; do
fmriprep /home/jovyan/data/data/Niftis_for_processing /home/jovyan/data/data/Preprocessing_output_latest participant \
--skip-bids-validation \
--participant-label $sub \
--fs-license-file /home/jovyan/license.txt \
--output-spaces MNI152NLin2009cAsym T1w fsaverage \
--cifti-output 91k \
--nprocs 7 \
--mem 52000 \
--work-dir /home/jovyan/data/work
done
Version:
24.1.0
Environment (Docker, Singularity / Apptainer, custom installation):
Docker
Relevant log outputs (up to 20 lines):
Node: fmriprep_24_1_wf.sub_134_wf.anat_fit_wf.surface_recon_wf.autorecon1
Working directory: /work/fmriprep_24_1_wf/sub_134_wf/anat_fit_wf/surface_recon_wf/autorecon1
Command:
recon-all -autorecon1 -i sub-134_ses-01_T1w_noise_corrected.nii.gz -noskullstrip -noT2pial -noFLAIRpial -openmp 8 -subjid sub-134 -sd /out/sourcedata/freesurfer
# Talairach alignment: Attempt 1
ERROR: talairach_afd: Talairach Transform: transforms/talairach.xfm ***FAILED*** (p=0.0731, pval=0.0034 < threshold=0.0050)
# Talairach alignment: Attempt 2 using 3T atlas
ERROR: talairach_afd: Talairach Transform: transforms/talairach.xfm ***FAILED*** (p=0.0000, pval=0.0000 < threshold=0.0050)
# Talairach alignment: Attempt 3 using MINC (mritotal)
spawn: exec of minc_modify_header failed: No such file or directory
mritotal: crashed while running autocrop (termination status=65280)
ERROR: mritotal failed, see transforms/talairach.log
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node autorecon1.
RuntimeError: subprocess exited with code 1.