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

Only T2w image #411

Open
seonjoo opened this issue Nov 18, 2024 · 1 comment
Open

Only T2w image #411

seonjoo opened this issue Nov 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@seonjoo
Copy link

seonjoo commented Nov 18, 2024

What happened?

I have only T2w and BOLD images. But it keeps givine me errors: "FileNotFoundError: No T1w images found for subject". The current implementation of NiBabies do not handle the cases without T1 image? Or is it a bug?

What command did you use?

docker run --rm -e -it -v ${datadir}:/data:ro -v ${outputdir}:/out -v license.txt:/opt/freesurfer/license.txt:ro nipreps/nibabies:24.1.0 /data /out participant --participant-label ${subID} --output-spaces T2w fsaverage --anat-only --reference-anat T2w --bold2anat-init t2w --ignore fieldmaps t1w

What version of NiBabies are you using?

24.1.0

Relevant log output

File "/opt/conda/envs/nibabies/lib/python3.11/site-packages/nibabies/cli/run.py", line 104, in main
    nibabies_wf.run(**_plugin)
  File "/opt/conda/envs/nibabies/lib/python3.11/site-packages/nipype/pipeline/engine/workflows.py", line 638, in run
    runner.run(execgraph, updatehash=updatehash, config=self.config)
  File "/opt/conda/envs/nibabies/lib/python3.11/site-packages/nipype/pipeline/plugins/base.py", line 224, in run
    raise error from cause
RuntimeError: Traceback (most recent call last):
  File "/opt/conda/envs/nibabies/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/nibabies/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/lib/python3.11/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/nibabies/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 bidssrc.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/nibabies/lib/python3.11/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "/opt/conda/envs/nibabies/lib/python3.11/site-packages/niworkflows/interfaces/bids.py", line 282, in _run_interface
	    raise FileNotFoundError(
	FileNotFoundError: No T1w images found for subject sub-XXX

Add any additional information or context about the problem here.

No response

@seonjoo seonjoo added the bug Something isn't working label Nov 18, 2024
@mgxd
Copy link
Collaborator

mgxd commented Dec 6, 2024

Good catch, I see the problem - it is a bug, the bidssrc node conditionally allows no T1w https://github.com/nipreps/niworkflows/blob/7bd6a53e313843dbaccd2d9d21c438ccd1642489/niworkflows/interfaces/bids.py#L273

We haven't hit this as we've only tried running T2w-only with precomputed derivatives (mask, segmentation) since MCRIBS is quite fickle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants