Data formatted according to a validatable standard? Please provide the output of the validator:
Number of participants to run in parallel: 1
Input directory: /vf/users/NNU_NDData_Projs/ASD_Targeting/MRI_Raw/ABIDE_2/ABIDE_2_BIDS/GU_28830
Output directory: /vf/users/NNU_NDData_Projs/ASD_Targeting/MRI_Raw/ABIDE_2/ABIDE_2_BIDS/ABIDE_2_OUTPUT/output
Working directory: /vf/users/NNU_NDData_Projs/ASD_Targeting/MRI_Raw/ABIDE_2/ABIDE_2_BIDS/ABIDE_2_OUTPUT/working
Log directory: /vf/users/NNU_NDData_Projs/ASD_Targeting/MRI_Raw/ABIDE_2/ABIDE_2_BIDS/ABIDE_2_OUTPUT/log
Remove working directory: True
Available memory: 51200.0 (GB)
Available threads: 56
Number of threads for ANTs: 10
Parsing /vf/users/NNU_NDData_Projs/ASD_Targeting/MRI_Raw/ABIDE_2/ABIDE_2_BIDS/GU_28830..
Starting participant level processing
Run called with config file /vf/users/NNU_NDData_Projs/ASD_Targeting/MRI_Raw/ABIDE_2/ABIDE_2_BIDS/ABIDE_2_OUTPUT/log/pipeline_cpac-default-pipeline/sub-GU28830_ses-1/cpac_pipeline_config_9c8e9d7f_2024-01-22T09-37-19Z.yml
Relevant log outputs (up to 20 lines):
Traceback:
Traceback (most recent call last):
File "/usr/share/fsl/6.0/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
File "/code/CPAC/utils/interfaces/function/function.py", line 216, in _run_interface
out = function_handle(**args)
File "<string>", line 267, in get_scan_params
UnboundLocalError: local variable 'template' referenced before assignment
Screenshots / relevant information:
Utilizing Biowulf (NIH supercomputer) to run this analysis.
The only way I see only place I see where template could become undefined in get_scan_params in 1.8.6 is if this block fails with something other than a TypeError:
I actually re-ran the cpac command with a different output directory and replicated the error with additional traceback this time:
Traceback (most recent call last):
File "/code/CPAC/pipeline/cpac_pipeline.py", line 575, in run_workflow
workflow_result = workflow.run(plugin=plugin,
File "/usr/share/fsl/6.0/lib/python3.10/site-packages/nipype/pipeline/engine/workflows.py", line 638, in run
runner.run(execgraph, updatehash=updatehash, config=self.config)
File "/usr/share/fsl/6.0/lib/python3.10/site-packages/nipype/pipeline/plugins/base.py", line 224, in run
raise error from cause
RuntimeError: Traceback (most recent call last):
File "/usr/share/fsl/6.0/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 67, in run_node
result["result"] = node.run(updatehash=updatehash)
File "/code/CPAC/pipeline/nipype_pipeline_engine/engine.py", line 428, in run
return super().run(updatehash)
File "/usr/share/fsl/6.0/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
result = self._run_interface(execute=True)
File "/usr/share/fsl/6.0/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
return self._run_command(execute)
File "/usr/share/fsl/6.0/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 bold_scan_params_sub-GU28830_ses-1.
The sidecars follow BIDS inheritance and are available on S3 at the same level as the sub-.* directories (e.g., in s3://fcp-indi/data/Projects/ABIDE2/RawData/ABIDEII-GU_1/ you can find the files dataset_description.json, participants.tsv, task-rest_bold.json, and T1w.json which apply to all subdirectories of ABIDEII-GU_1, including sub-28830).
(That might not be relevant to this issue ― I was able to run this node locally with and without the metadata sidecar, but in case you need or want them later, they are available)