Summary of what happened:
Hi all, I have been testing versions 21.0.1 and 23.1.3 with multi-echo data to determine the optimal combination of versions and options for my project. While using slightly different versions of fmriprep, I encountered a couple of issues regarding the t2smap_node
and duecredit
for (I guess) the tedana process. The following example is a significant instance, but there were also occurrences of out-of-memory errors during the same process.
I’m curious whether this issue is primarily due to a memory shortage or if there are specific adjustments I need to make. I’m considering utilizing the –low-mem option or switching the –me-t2s-fit-method to loglin
. Any insights on this matter would be greatly appreciated!
Command used (and if a helper script was used, a link to the helper script or the command generated):
singularity exec \
--cleanenv --bind ${BIDS_DIR},${WORK_DIR},${FREESURFER_DIR} \
$FMRIPREP_IMG fmriprep \
$BIDS_DIR $OUTPUT_DIR participant --participant_label $PARTICIPANT_LABEL -w $WORK_DIR \
--nprocs ${SLURM_CPUS_PER_TASK} \
--nthreads ${SLURM_CPUS_PER_TASK} \
--mem_mb 240000 \
--write-graph \
--dummy-scans 10 \
--fd-spike-threshold 0.9 \
--fs-no-reconall \
--fs-license-file /optnfs/freesurfer/6.0.0/license.txt \
--skip-bids-validation \
--random-seed 42 \
--skull-strip-fixed-seed \
--me-output-echos \
--resource-monitor \
--bold2t1w-dof 9
Version:
23.1.3
Environment (Docker, Singularity, custom installation):
Singularity
Data formatted according to a validatable standard? Please provide the output of the validator:
Yes, BIDS-formatted
Relevant log outputs (up to 20 lines):
Cmdline:
t2smap -d /dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/unwarp_wf/_echoidx_0/merge/vol0000_unwarped_merged.nii.gz /dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/unwarp_wf/_echoidx_1/merge/vol0000_unwarped_merged.nii.gz /dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/unwarp_wf/_echoidx_2/merge/vol0000_unwarped_merged.nii.gz -e 13.2 31.45 49.7 --mask /dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/bold_t2smap_wf/dilate_mask/dilated_mask.nii.gz --fittype curvefit
Stdout:
Stderr:
**Failed to import duecredit due to No module named 'duecredit'**
INFO t2smap:t2smap_workflow:234 Using output directory: /dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/bold_t2smap_wf/t2smap_node
INFO t2smap:t2smap_workflow:244 Loading input data: ['/dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/unwarp_wf/_echoidx_0/merge/vol0000_unwarped_merged.nii.gz', '/dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/unwarp_wf/_echoidx_1/merge/vol0000_unwarped_merged.nii.gz', '/dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/unwarp_wf/_echoidx_2/merge/vol0000_unwarped_merged.nii.gz']
INFO t2smap:t2smap_workflow:260 Using user-defined mask
INFO t2smap:t2smap_workflow:263 Computing adaptive T2* map
Killed
Traceback:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 453, in aggregate_outputs
setattr(outputs, key, val)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/traits_extension.py", line 330, in validate
value = super(File, self).validate(objekt, name, value, return_pathlike=True)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/traits_extension.py", line 135, in validate
self.error(objekt, name, str(value))
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/traits/base_trait_handler.py", line 74, in error
raise TraitError(
traits.trait_errors.TraitError: The 't2star_map' trait of a T2SMapOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/bold_t2smap_wf/t2smap_node/T2starmap.nii.gz' <class 'str'> was specified.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 400, in run
outputs = self.aggregate_outputs(runtime)
File "/opt/conda/envs/fmriprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 460, in aggregate_outputs
raise FileNotFoundError(msg)
FileNotFoundError: No such file or directory '/dartfs-hpc/scratch/f005bpz/fmriprepwork/fmriprep_23_1_wf/single_subject_11_wf/func_preproc_ses_2_task_movie_run_01_echo_1_wf/bold_t2smap_wf/t2smap_node/T2starmap.nii.gz' for output 't2star_map' of a T2SMap interface