Hello
I am trying to analyse dwi data with version 24.0.0 but I am encountering an error.
I am running this inside a singularity container on a HPC cluster with 1 P4 GPU, 6 CPUs and 55 GB RAM.
I get the following crash report:
Node: mriqc_wf.dwiMRIQC.drift
Working directory: /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-04004..ses-01..dwi..sub-04004_ses-01_dir-PA_dwi.nii.gz/drift
Node inputs:
b0_ixs = [0, 1, 5, 18, 31, 46, 59, 72, 85, 98, 110, 119, 124]
bias_file = <undefined>
brainmask_file = /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/synthstrip_wf/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-04004..ses-01..dwi..sub-04004_ses-01_dir-PA_dwi.nii.gz/synthstrip/clipped_corrected_desc-brain_mask.nii.gz
bval_file = /fs03/wr47/cmar0007/FreeWater/SEL003_bids/sub-04004/ses-01/dwi/sub-04004_ses-01_dir-PA_dwi.bval
full_epi = /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-04004..ses-01..dwi..sub-04004_ses-01_dir-PA_dwi.nii.gz/sanitize/sub-04004_ses-01_dir-PA_dwi_valid.nii.gz
in_file = /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-04004..ses-01..dwi..sub-04004_ses-01_dir-PA_dwi.nii.gz/hmc_b0/sub-04004_ses-01_dir-PA_dwi_valid_subset_volreg.nii.gz
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/mriqc/engine/plugin.py", line 64, in run_node
result['result'] = node.run(updatehash=updatehash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/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 drift.
Traceback:
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/mriqc/interfaces/diffusion.py", line 597, in _run_interface
data = img.get_fdata()
^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/dataobj_images.py", line 373, in get_fdata
data = np.asanyarray(self._dataobj, dtype=dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/arrayproxy.py", line 457, in __array__
arr = self._get_scaled(dtype=dtype, slicer=())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/arrayproxy.py", line 424, in _get_scaled
scaled = apply_read_scaling(self._get_unscaled(slicer=slicer), scl_slope, scl_inter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/arrayproxy.py", line 394, in _get_unscaled
return array_from_file(
^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/volumeutils.py", line 472, in array_from_file
raise OSError(
OSError: Expected 28338336 bytes, got 6539616 bytes from object
- could the file be damaged?
I then tried increasing the memory to 100GB and got a similar error (although different file size) for a different subject:
Node: mriqc_wf.dwiMRIQC.drift
Working directory: /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-01006..ses-01..dwi..sub-01006_ses-01_dir-PA_dwi.nii.gz/drift
Node inputs:
b0_ixs = [0, 1, 5, 18, 31, 46, 59, 72, 85, 98, 110, 119, 124]
bias_file = <undefined>
brainmask_file = /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/synthstrip_wf/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-01006..ses-01..dwi..sub-01006_ses-01_dir-PA_dwi.nii.gz/synthstrip/clipped_corrected_desc-brain_mask.nii.gz
bval_file = /fs03/wr47/cmar0007/FreeWater/SEL003_bids/sub-01006/ses-01/dwi/sub-01006_ses-01_dir-PA_dwi.bval
full_epi = /fs03/wr47/cmar0007/FreeWater/SEL003_bids/sub-01006/ses-01/dwi/sub-01006_ses-01_dir-PA_dwi.nii.gz
in_file = /fs03/wr47/cmar0007/work/mriqc_wf/dwiMRIQC/_in_file_..fs03..wr47..cmar0007..FreeWater..SEL003_bids..sub-01006..ses-01..dwi..sub-01006_ses-01_dir-PA_dwi.nii.gz/hmc_b0/sub-01006_ses-01_dir-PA_dwi_subset_volreg.nii.gz
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/mriqc/engine/plugin.py", line 64, in run_node
result['result'] = node.run(updatehash=updatehash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/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 drift.
Traceback:
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/mriqc/interfaces/diffusion.py", line 597, in _run_interface
data = img.get_fdata()
^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/dataobj_images.py", line 373, in get_fdata
data = np.asanyarray(self._dataobj, dtype=dtype)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/arrayproxy.py", line 457, in __array__
arr = self._get_scaled(dtype=dtype, slicer=())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/arrayproxy.py", line 424, in _get_scaled
scaled = apply_read_scaling(self._get_unscaled(slicer=slicer), scl_slope, scl_inter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/arrayproxy.py", line 394, in _get_unscaled
return array_from_file(
^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/nibabel/volumeutils.py", line 472, in array_from_file
raise OSError(
OSError: Expected 28338336 bytes, got 10899360 bytes from object
- could the file be damaged?
Could someone please assist with how I can resolve this?
Thank you