Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New format for Nibabies anat-to-MNI transforms does not work with surface-warping workflow #1348

Open
tsalo opened this issue Jan 2, 2025 · 0 comments
Labels
bug Issues noting problems and PRs fixing those problems. nipreps Issues/PRs related to keeping XCP-D in line with the NiPreps ecosystem.

Comments

@tsalo
Copy link
Member

tsalo commented Jan 2, 2025

Summary

@erikglee came across this bug before the break. It looks like the new anat-to-MNI transforms being generated by Nibabies (as of nipreps/nibabies#424) are not composite transforms that the surface-warping workflow can use.

Additional details

  • xcp_d version: 0.10.1
  • Docker version:
  • Apptainer version:

What were you trying to do?

Process recently-processed Nibabies derivatives using XCP-D with --warp-surfaces-native2std y enabled.

What did you expect to happen?

XCP-D should be able to use the transforms generated by Nibabies to warp meshes to fsLR (aligned to MNI152NLin6Asym).

What actually happened?

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 527, in run
    result = self._run_interface(execute=True)
  File "/usr/local/miniconda/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/usr/local/miniconda/lib/python3.10/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 disassemble_h5.

Cmdline:
	CompositeTransformUtil --disassemble /data/sub-X/ses-Y/anat/sub-X_ses-Y_run-1_from-T2w_to-MNI152NLin6Asym_mode-image_xfm.h5 T1w_to_MNI152NLin6Asym
Stdout:
	Transform File /data/sub-X/ses-Y/anat/sub-X_ses-Y_run-1_from-T2w_to-MNI152NLin6Asym_mode-image_xfm.h5 is not a Composite Transform.
Stderr:

Traceback:
	RuntimeError: subprocess exited with code 1.

Reproducing the bug

Preprocess fMRI data with Nibabies after nipreps/nibabies#424 was merged with --cifti-output and Freesurfer, then run XCP-D with --file-format cifti and --warp-surfaces-native2std y.

@tsalo tsalo added bug Issues noting problems and PRs fixing those problems. nipreps Issues/PRs related to keeping XCP-D in line with the NiPreps ecosystem. labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues noting problems and PRs fixing those problems. nipreps Issues/PRs related to keeping XCP-D in line with the NiPreps ecosystem.
Projects
None yet
Development

No branches or pull requests

1 participant