Summary of what happened:
I am running fmriprep on a dataset within a singularity container on my school’s HPC. Across 110 subjects, 57 subjects ran without fail. 53 subjects all failed with the same pattern of a NodeExecutionError followed by a TraitError followed by a FileNotFoundError in node N4.
My last try was running each subject with 50GB memory with 10 CPU. I read similar errors being thrown; the solution for someone else was to set the fmriprep work directory of each individual to a unique directory, so the code below does that. (My original code sets the work directory to /mnt/fmriprep_work.) Neither worked. I also tried increasing memory to 80GB, still didn’t work.
Thank you!
Command used (and if a helper script was used, a link to the helper script or the command generated):
#!/bin/bash
#SBATCH --job-name=fmriprep_drop_nodeexec
#SBATCH --partition=main
#SBATCH --nodes=2
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=10
#SBATCH --mem=50GB
#SBATCH --time=5:00:00
#SBATCH --output=singularity_images/output_logs/get_fmriprep_drop_%A_%a_o.log
#SBATCH --error=singularity_images/error_logs/get_fmriprep_drop_%A_%a_e.log
#SBATCH --array=1-53%18
#SBATCH --mail-user=ibrayyilmaz@cmc.edu
#SBATCH --mail-type=BEGIN,END,FAIL
# Define paths
SINGULARITY_IMG="/hopper/groups/enkavilab/singularity_images/fmriprep-24.1.1.simg"
DATASET_PATH="/hopper/groups/enkavilab/ds004636"
SUBJECT_LIST=("sub-s586" "sub-s172" "sub-s518" "sub-s587" "sub-s591" "sub-s613" "sub-s640" "sub-s647" "sub-s597" "sub-s648" "sub-s601" "sub-s606" "sub-s608" "sub-s590" "sub-s609" "sub-s631" "sub-s607" "sub-s600" "sub-s585" "sub-s599" "sub-s582" "sub-s549" "sub-s373" "sub-s513" "sub-s548" "sub-s584" "sub-s546" "sub-s579" "sub-s541" "sub-s512" "sub-s558" "sub-s593" "sub-s567" "sub-s594" "sub-s556" "sub-s568" "sub-s557" "sub-s595" "sub-s561" "sub-s643" "sub-s626" "sub-s619" "sub-s617" "sub-s610" "sub-s645" "sub-s616" "sub-s627" "sub-s499" "sub-s635" "sub-s603" "sub-s234" "sub-s519" "sub-s553")
# Get the subject for this job
SUBJECT=${SUBJECT_LIST[$SLURM_ARRAY_TASK_ID - 1]}
PARTICIPANT_WORK_DIR="/hopper/groups/enkavilab/fmriprep_work_sub/$SUBJECT"
cd $DATASET_PATH || { echo "Failed to change directory to $DATASET_PATH"; exit 1; }
mkdir -p $PARTICIPANT_WORK_DIR
# Run fMRIPrep
/usr/bin/time -v singularity run --cleanenv -B /hopper/groups/enkavilab:/mnt \
${SINGULARITY_IMG} \
/mnt/ds004636 /mnt/ds004636/derivatives/fmriprep \
participant \
--participant-label ${SUBJECT} \
--fs-license-file /mnt/freesurfer_license.txt \
--work-dir /mnt/fmriprep_work_sub/$SUBJECT \
--output-spaces MNI152NLin2009cAsym \
--nthreads 10 --mem_mb 50000 \
--omp-nthreads 10 \
--fs-no-reconall \
--stop-on-first-crash \
--skip_bids_validation \
--use-aroma full \
# Check if fMRIPrep ran successfully
if [ $? -eq 0 ]; then
echo "fMRIPrep completed successfully for $SUBJECT."
# Step 3: Log storage usage
du -sh /hopper/groups/enkavilab/ds004636/derivatives/fmriprep > storage_report_${SUBJECT}.txt
# Step 4: Drop data with Datalad
echo "Dropping data for $SUBJECT..."
datalad drop --nocheck $DATASET_PATH/$SUBJECT || { echo "Failed to drop $SUBJECT"; exit 1; }
echo "Data successfully dropped for $SUBJECT."
else
echo "fMRIPrep failed for $SUBJECT. Skipping datalad drop."
exit 1
fi
Version:
Fmriprep version: 24.1.1
singularity version: 4.1.4-1.el9
Environment (Docker, Singularity / Apptainer, custom installation):
Running it in a singularity Container.
Data formatted according to a validatable standard? Please provide the output of the validator:
[WARNING] UNKNOWN_BIDS_VERSION The BIDSVersion field of 'dataset_description.json' does not match a known release.
The BIDS Schema used for validation may be out of date.
/dataset_description.json
Please visit https://neurostars.org/search?q=UNKNOWN_BIDS_VERSION for existing conversations about this issue.
[WARNING] JSON_KEY_RECOMMENDED A JSON file is missing a key listed as recommended.
DatasetType
/dataset_description.json
GeneratedBy
/dataset_description.json
SourceDatasets
/dataset_description.json
Please visit https://neurostars.org/search?q=JSON_KEY_RECOMMENDED for existing conversations about this issue.
[WARNING] GZIP_HEADER_MTIME The gzip header contains a non-zero timestamp.
This may leak sensitive information or indicate a non-reproducible conversion process.
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2843 more files with the same issue
Please visit https://neurostars.org/search?q=GZIP_HEADER_MTIME for existing conversations about this issue.
[WARNING] GZIP_HEADER_FILENAME The gzip header contains a non-empty filename.
This may leak sensitive information or indicate a non-reproducible conversion process.
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2843 more files with the same issue
Please visit https://neurostars.org/search?q=GZIP_HEADER_FILENAME for existing conversations about this issue.
[WARNING] SIDECAR_KEY_RECOMMENDED A data file's JSON sidecar is missing a key listed as recommended.
B0FieldIdentifier
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
649 more files with the same issue
Manufacturer
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
5002 more files with the same issue
ManufacturersModelName
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
5002 more files with the same issue
DeviceSerialNumber
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
5002 more files with the same issue
StationName
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
SoftwareVersions
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
5002 more files with the same issue
MagneticFieldStrength
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ReceiveCoilName
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ReceiveCoilActiveElements
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
GradientSetType
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
MRTransmitCoilSequence
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
MatrixCoilMode
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
CoilCombinationMethod
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
PulseSequenceType
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ScanningSequence
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
SequenceVariant
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ScanOptions
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
SequenceName
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
PulseSequenceDetails
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
MTState
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
SpoilingState
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
NumberShots
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ParallelReductionFactorInPlane
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ParallelReductionFactorOutOfPlane
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
ParallelAcquisitionTechnique
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
PartialFourier
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
PartialFourierDirection
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
EffectiveEchoSpacing
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
756 more files with the same issue
MixingTime
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
PhaseEncodingDirection
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
756 more files with the same issue
TotalReadoutTime
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
756 more files with the same issue
EchoTime
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
756 more files with the same issue
InversionTime
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
DwellTime
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
FlipAngle
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
756 more files with the same issue
MultibandAccelerationFactor
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
InstitutionName
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
InstitutionAddress
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
InstitutionalDepartmentName
/sub-s549/ses-1/fmap/sub-s549_ses-1_magnitude.nii.gz
/sub-s549/ses-1/fmap/sub-s549_ses-1_fieldmap.nii.gz
2480 more files with the same issue
TaskName
/sub-s549/ses-1/func/sub-s549_ses-1_task-discountFix_run-1_recording-cardiac_physio.tsv.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-motorSelectiveStop_run-1_recording-respiratory_physio.tsv.gz
2523 more files with the same issue
StimulusPresentation
/sub-s549/ses-1/func/sub-s549_ses-1_task-surveyMedley_run-1_events.tsv
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_events.tsv
1040 more files with the same issue
NumberOfVolumesDiscardedByScanner
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
NumberOfVolumesDiscardedByUser
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
DelayTime
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
AcquisitionDuration
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
DelayAfterTrigger
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
Instructions
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
TaskDescription
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
CogAtlasID
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
CogPOID
/sub-s549/ses-1/func/sub-s549_ses-1_task-rest_run-1_bold.nii.gz
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_bold.nii.gz
1266 more files with the same issue
Please visit https://neurostars.org/search?q=SIDECAR_KEY_RECOMMENDED for existing conversations about this issue.
[WARNING] TSV_COLUMN_TYPE_REDEFINED A column required in a TSV file has been redefined in a sidecar file. This redefinition is being ignored.
onset
/sub-s549/ses-1/func/sub-s549_ses-1_task-surveyMedley_run-1_events.tsv - defined in /task-surveyMedley_events.json
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_events.tsv - defined in /task-DPX_events.json
1040 more files with the same issue
duration
/sub-s549/ses-1/func/sub-s549_ses-1_task-surveyMedley_run-1_events.tsv - defined in /task-surveyMedley_events.json
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_events.tsv - defined in /task-DPX_events.json
1040 more files with the same issue
response_time
/sub-s549/ses-1/func/sub-s549_ses-1_task-surveyMedley_run-1_events.tsv - defined in /task-surveyMedley_events.json
/sub-s549/ses-1/func/sub-s549_ses-1_task-DPX_run-1_events.tsv - defined in /task-DPX_events.json
1040 more files with the same issue
Please visit https://neurostars.org/search?q=TSV_COLUMN_TYPE_REDEFINED for existing conversations about this issue.
[WARNING] EVENTS_TSV_MISSING Task scans should have a corresponding 'events.tsv' file.
If this is a resting state scan you can ignore this warning or rename the task to include the word "rest".
/sub-s640/ses-2/func/sub-s640_ses-2_task-discountFix_run-1_recording-cardiac_physio.tsv.gz
/sub-s640/ses-2/func/sub-s640_ses-2_task-motorSelectiveStop_run-1_recording-respiratory_physio.tsv.gz
52 more files with the same issue
Please visit https://neurostars.org/search?q=EVENTS_TSV_MISSING for existing conversations about this issue.
[WARNING] EVENT_ONSET_ORDER The onset column in events.tsv files should be sorted.
/sub-s518/ses-2/func/sub-s518_ses-2_task-CCTHot_run-1_events.tsv
/sub-s471/ses-2/func/sub-s471_ses-2_task-motorSelectiveStop_run-1_events.tsv
4 more files with the same issue
Please visit https://neurostars.org/search?q=EVENT_ONSET_ORDER for existing conversations about this issue.
[WARNING] SUSPICIOUSLY_LONG_EVENT_DESIGN The onset of the last event is after the total duration of the corresponding scan.
This design is suspiciously long.
/sub-s601/ses-2/func/sub-s601_ses-2_task-twoByTwo_run-1_bold.nii.gz
/sub-s648/ses-2/func/sub-s648_ses-2_task-CCTHot_run-1_bold.nii.gz
Please visit https://neurostars.org/search?q=SUSPICIOUSLY_LONG_EVENT_DESIGN for existing conversations about this issue.
[WARNING] SUSPICIOUSLY_SHORT_EVENT_DESIGN The onset of the last event is less than half the total duration of the corresponding scan.
This design is suspiciously short.
/sub-s648/ses-2/func/sub-s648_ses-2_task-ANT_run-1_bold.nii.gz
Please visit https://neurostars.org/search?q=SUSPICIOUSLY_SHORT_EVENT_DESIGN for existing conversations about this issue.
[ERROR] NOT_INCLUDED Files with such naming scheme are not part of BIDS specification. This error is most commonly caused by typos in file names that make them not BIDS compatible. Please consult the specification and make sure your files are named correctly. If this is not a file naming issue (for example when including files not yet covered by the BIDS specification) you should include a ".bidsignore" file in your dataset (see https://github.com/bids-standard/bids-validator#bidsignore for details). Please note that derived (processed) data should be placed in /derivatives folder and source data (such as DICOMS or behavioural logs in proprietary formats) should be placed in the /sourcedata folder.
/storage_report_sub-s573.txt
/storage_report_sub-s618.txt
53 more files with the same issue
Please visit https://neurostars.org/search?q=NOT_INCLUDED for existing conversations about this issue.
[ERROR] NIFTI_HEADER_UNREADABLE We were unable to parse header data from this NIfTI file. Please ensure it is not corrupted or mislabeled.
/sub-s637/ses-2/anat/sub-s637_ses-2_T1w.nii.gz
/sub-s637/ses-2/anat/sub-s637_ses-2_T2w.nii.gz
1073 more files with the same issue
Please visit https://neurostars.org/search?q=NIFTI_HEADER_UNREADABLE for existing conversations about this issue.
Summary: Available Tasks: Available Modalities:
6573 Files, 1.37 TB motorSelectiveStop MRI
110 - Subjects 4 - Sessions twoByTwo
DPX
stopSignal
discountFix
ANT
rest
surveyMedley
CCTHot
stroop
WATT3
If you have any questions, please post on https://neurostars.org/tags/bids.
Relevant log outputs (up to 20 lines):
Node n4 failed to run on host gpu01.cluster.
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 n4.
Cmdline:
N4BiasFieldCorrection -d 3 --input-image /mnt/fmriprep_work_sub/sub-s648/fmriprep_24_1_wf/sub_s648_wf/bold_ses_1_task_DPX_run_1_wf/bold_fit_wf/unwarp_wf/brainextraction_wf/clipper_pre/clipped.nii.gz --convergence [ 50x50x50x50x50, 1e-07 ] --output clipped_corrected.nii.gz --shrink-factor 4
Stdout:
Stderr:
Exception caught during reference file reading
itk::ExceptionObject (0x560fcb626200)
Location: "unknown"
File: /home/conda/feedstock_root/build_artifacts/libitk_1717078286681/work/Modules/IO/NIFTI/src/itkNiftiImageIO.cxx
Line: 2124
Description: ITK ERROR: ITK only supports orthonormal direction cosines. No orthonormal definition found!
file /mnt/fmriprep_work_sub/sub-s648/fmriprep_24_1_wf/sub_s648_wf/bold_ses_1_task_DPX_run_1_wf/bold_fit_wf/unwarp_wf/brainextraction_wf/clipper_pre/clipped.nii.gz
Segmentation fault (core dumped)
Traceback:
Traceback (most recent call last):
File "/opt/conda/envs/fmriprep/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 453, in aggregate_outputs
setattr(outputs, key, val)
File "/opt/conda/envs/fmriprep/lib/python3.11/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.11/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.11/site-packages/traits/base_trait_handler.py", line 74, in error
raise TraitError(
traits.trait_errors.TraitError: The 'output_image' trait of a N4BiasFieldCorrectionOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/mnt/fmriprep_work_sub/sub-s648/fmriprep_24_1_wf/sub_s648_wf/bold_ses_1_task_DPX_run_1_wf/bold_fit_wf/unwarp_wf/brainextraction_wf/n4/clipped_corrected.nii.gz' <class 'str'> was specified.
...
FileNotFoundError: No such file or directory '/mnt/fmriprep_work_sub/sub-s648/fmriprep_24_1_wf/sub_s648_wf/bold_ses_1_task_DPX_run_1_wf/bold_fit_wf/unwarp_wf/brainextraction_wf/n4/clipped_corrected.nii.gz' for output 'output_image' of a N4BiasFieldCorrection interface