Skip to content

XCP 0.14.1 fails with different image orientation #1592

Description

@JohannesWiesner

Summary

Not sure if this is an issue or a feature. One of my resting state runs has different orientations:

Normal run:

  • InPlanePhaseEncodingDirectionDICOM: "COL"
  • PhaseEncodingDirection: "j-"
  • Orientation text: Tra>Cor(...)

Swapped-looking run:

  • InPlanePhaseEncodingDirectionDICOM: "ROW"
  • PhaseEncodingDirection: "i"
  • Orientation text: Cor>Tra(...)

fmirprep 25.2.4 had no trouble preprocessing it, but xcpd 0.14.1 fails with:

260223-11:23:11,474 nipype.workflow WARNING:
	 [Node] Error on "_copy_atlas4" (/zi/home/johannes.wiesner/work/slurm/project_dmn_dispersion_new/workdirs/xcpd/xcp_d_0_14_wf/sub_PIAMJ5O5J_ses_PEZ02_ses_PEZ02_wf/load_atlases_wf/copy_atlas/mapflow/_copy_atlas4)
260223-11:23:11,916 nipype.workflow ERROR:
	 Node _copy_atlas0 failed to run on host zislhcn0111.zi.local.
260223-11:23:11,930 nipype.workflow ERROR:
	 Saving crash info to /zi/flstorage/group_csp/analyses/johannes.wiesner/projects/project_dmn_dispersion/data/pez/xcpd_0.14.1/sub-PIAMJ5O5J/log/20260223-111112_e73cfc75-e81e-470a-8cd9-1039da132690/crash-20260223-112311-johannes.wiesner-_copy_atlas0-c2bbbc04-6c31-418f-83a4-f4d1b0743d52.txt
Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 525, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 643, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 769, in _run_command
    raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node _copy_atlas0.

Traceback:
	Traceback (most recent call last):
	  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 401, in run
	    runtime = self._run_interface(runtime)
	  File "/usr/local/miniconda/lib/python3.10/site-packages/xcp_d/interfaces/bids.py", line 290, in _run_interface
	    raise ValueError(
	ValueError: Existing 'Glasser' atlas affine (/zi/flstorage/group_csp/analyses/johannes.wiesner/projects/project_dmn_dispersion/data/pez/xcpd_0.14.1/atlases/atlas-Glasser/atlas-Glasser_space-MNI152NLin2009cAsym_dseg.nii.gz) is different from the input file affine (/zi/home/johannes.wiesner/work/slurm/project_dmn_dispersion_new/workdirs/xcpd/xcp_d_0_14_wf/sub_PIAMJ5O5J_ses_PEZ02_ses_PEZ02_wf/load_atlases_wf/warp_atlases_to_bold_space/mapflow/_warp_atlases_to_bold_space0/atlas-Glasser_space-MNI152NLin6Asym_res-01_dseg.nii.gz).


260223-11:23:11,948 nipype.workflow ERROR:
	 Node _copy_atlas1 failed to run on host zislhcn0111.zi.local.
260223-11:23:11,953 nipype.workflow ERROR:
	 Saving crash info to /zi/flstorage/group_csp/analyses/johannes.wiesner/projects/project_dmn_dispersion/data/pez/xcpd_0.14.1/sub-PIAMJ5O5J/log/20260223-111112_e73cfc75-e81e-470a-8cd9-1039da132690/crash-20260223-112311-johannes.wiesner-_copy_atlas1-a28a1323-558f-40a2-8974-5f3eb1d1abb9.txt
Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
    result["result"] = node.run(updatehash=updatehash)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 525, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 643, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 769, in _run_command
    raise NodeExecutionError(msg)
nipype.pipeline.engine.nodes.NodeExecutionError: Exception raised while executing Node _copy_atlas1.

Traceback:
	Traceback (most recent call last):
	  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 401, in run
	    runtime = self._run_interface(runtime)
	  File "/usr/local/miniconda/lib/python3.10/site-packages/xcp_d/interfaces/bids.py", line 290, in _run_interface
	    raise ValueError(
	ValueError: Existing 'Gordon' atlas affine (/zi/flstorage/group_csp/analyses/johannes.wiesner/projects/project_dmn_dispersion/data/pez/xcpd_0.14.1/atlases/atlas-Gordon/atlas-Gordon_space-MNI152NLin2009cAsym_dseg.nii.gz) is different from the input file affine (/zi/home/johannes.wiesner/work/slurm/project_dmn_dispersion_new/workdirs/xcpd/xcp_d_0_14_wf/sub_PIAMJ5O5J_ses_PEZ02_ses_PEZ02_wf/load_atlases_wf/warp_atlases_to_bold_space/mapflow/_warp_atlases_to_bold_space1/atlas-Gordon_space-MNI152NLin6Asym_res-01_dseg.nii.gz).

Additional details

  • xcp_d version: 0.14.1
  • Docker version:
  • Apptainer version: singularity-ce version 4.1.4-nobl

Normal run:
Image

Swapped:
Image

Full log file:

xcp_d-0.14.1_sub-PIAMJ5O5J_job-821551.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues noting problems and PRs fixing those problems.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions