8000 Add missing filename patterns by tsalo · Pull Request #131 · PennLINC/qsirecon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing filename patterns #131

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

Merged
merged 9 commits into from
Oct 28, 2024
Merged

Add missing filename patterns #131

merged 9 commits into from
Oct 28, 2024

Conversation

tsalo
Copy link
Member
@tsalo tsalo commented Oct 24, 2024

Closes #122 and closes #128.

Changes proposed in this pull request

  • Add missing patterns based on failed DerivativesDataSinks flagged by @araikes.

@tsalo tsalo added the bug Something isn't working label Oct 24, 2024
@tsalo
Copy link
Member Author
tsalo commented Oct 24, 2024

I took a crack at adding the missing patterns. @araikes any chance you could test this branch out?

As long as you have pennlinc/qsirecon:unstable pulled to your machine, you can mount the forked repository like this:

docker run --rm -ti \
    -v /path/to/qsirecon:/usr/local/miniconda/lib/python3.10/site-packages/qsirecon \
    pennlinc/qsirecon:unstable \
    ...

@araikes
Copy link
Collaborator
araikes commented Oct 24, 2024

@tsalo

I'll grab it and check for some of the lower hanging fruits first.

@codecov-commenter
Copy link
codecov-commenter commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.53%. Comparing base (6393bba) to head (753881c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #131   +/-   ##
=======================================
  Coverage   33.53%   33.53%           
=======================================
  Files          57       57           
  Lines        7114     7114           
  Branches      964      964           
=======================================
  Hits         2386     2386           
  Misses       4626     4626           
  Partials      102      102           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@araikes
Copy link
Collaborator
araikes commented Oct 24, 2024

Did not work. Tested reorient_fslstd

apptainer run --containall --writable-tmpfs -B /groups/adamraikes/templateflow:/opt/templateflow -B $PWD/derivatives/qsiprep_0.22.1:/input -B $PWD/derivatives/qsirecon_unstable:/output -B /tmp:/tmp -B /groups/adamraikes/license.txt:/license.txt -B /groups/adamraikes/git_repos/qsirecon:/usr/local/miniconda/lib/python3.10/site-packages/qsirecon $RECON /input/qsiprep /output participant --participant_label 001 -w /output/scratch  --fs-license-file /license.txt --recon-spec reorient_fslstd --input-type qsiprep --freesurfer_input /input/fastsurfer

Example but all outputs fail:

Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_dwi_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '02', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bvec'}.

@tsalo
Copy link
Member Author
tsalo commented Oct 24, 2024

Thanks! I think that one's a problem with how DerivativesDataSink was called instead of the patterns. I just pushed a fix.

@araikes
Copy link
Collaborator
araikes commented Oct 24, 2024

No joy. Also, qsirecon isn't detecting errors "correctly" as no outputs get written due to the failures for reorient_fslstd and yet it reports 'QSIRecon finished successfully!`.

apptainer run --containall --writable-tmpfs -B /groups/adamraikes/templateflow:/opt/templateflow -B $PWD/derivatives/qsiprep_0.22.1:/input -B $PWD/derivatives/qsirecon_unstable:/output -B /tmp:/tmp -B /groups/adamraikes/license.txt:/license.txt -B /groups/adamraikes/git_repos/qsirecon:/usr/local/miniconda/lib/python3.10/site-packages/qsirecon $RECON /input/qsiprep /output participant --participant_label 001 -w /output/scratch  --fs-license-file /license.txt --recon-spec reorient_fslstd --input-type qsiprep --freesurfer_input /input/fastsurfer


241024-11:49:50,733 nipype.workflow IMPORTANT:
	 Running QSIRecon version 0.23.3.dev0+g7b29424.d20241016

         License NOTICE ##################################################
         QSIRecon 0.23.3.dev0+g7b29424.d20241016
         Copyright The PennLINC Developers.
         
         This product includes software developed by
         the NiPreps Community (https://nipreps.org/).
         
         Portions of this software were developed at the Department of
         Psychology at Stanford University, Stanford, CA, US.
         
         This software is also distributed as a Docker container image.
         The bootstrapping file for the image ("Dockerfile") is licensed
         under the MIT License.
         
         This software may be distributed through an add-on package called
         "Docker Wrapper" that is under the BSD 3-clause License.
         #################################################################
241024-11:49:51,77 nipype.workflow IMPORTANT:
	 Building QSIRecon's workflow:
           * BIDS dataset path: /input/qsiprep.
           * Participant list: ['001'].
           * Run identifier: 20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce.
241024-11:49:57,985 nipype.workflow INFO:
	 found ['/input/qsiprep/sub-001/ses-01/dwi/sub-001_ses-01_dir-AP_run-001_space-T1w_desc-preproc_dwi.nii.gz', '/input/qsiprep/sub-001/ses-02/dwi/sub-001_ses-02_dir-AP_run-001_space-T1w_desc-preproc_dwi.nii.gz'] in /input/qsiprep
241024-11:49:57,986 nipype.workflow INFO:
	 CHECKING /input/qsiprep/sub-001/anat/sub-001_desc-brain_mask.nii.gz: True
241024-11:49:57,987 nipype.workflow WARNING:
	 A Non-gzipped input nifti file was found. Consider gzipping /input/qsiprep/sub-001/anat/sub-001_desc-preproc_T1w.nii
241024-11:49:57,987 nipype.workflow INFO:
	 CHECKING /input/qsiprep/sub-001/anat/sub-001_desc-preproc_T1w.nii.gz: True
241024-11:49:57,987 nipype.workflow INFO:
	 Found usable QSIPrep-preprocessed T1w image and mask.
241024-11:49:57,987 nipype.workflow INFO:
	 CHECKING /input/qsiprep/sub-001/anat/sub-001_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5: True
241024-11:49:57,987 nipype.workflow INFO:
	 CHECKING /input/qsiprep/sub-001/anat/sub-001_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5: True
241024-11:49:57,988 nipype.workflow INFO:
	 Found high-res anatomical data in preprocessed inputs for 001.
241024-11:49:57,988 nipype.workflow INFO:
	 Freesurfer directory /input/fastsurfer/sub-001 exists for 001
241024-11:49:57,989 nipype.workflow INFO:
	 Anatomical (T1w) available for recon: {'has_qsiprep_5tt_hsvs': False, 'has_freesurfer_5tt_hsvs': False, 'has_freesurfer': True, 'has_qsiprep_t1w': True, 'has_qsiprep_t1w_transforms': True}
[{'bids_dwi_file': '/input/qsiprep/sub-001/ses-01/dwi/sub-001_ses-01_dir-AP_run-001_space-T1w_desc-preproc_dwi.nii.gz'}, {'bids_dwi_file': '/input/qsiprep/sub-001/ses-02/dwi/sub-001_ses-02_dir-AP_run-001_space-T1w_desc-preproc_dwi.nii.gz'}]
{'has_qsiprep_5tt_hsvs': False, 'has_freesurfer_5tt_hsvs': False, 'has_freesurfer': True, 'has_qsiprep_t1w': True, 'has_qsiprep_t1w_transforms': True}
241024-11:49:57,996 nipype.workflow INFO:
	 Transforming ODF ROIs into DWI space for visual report.
{'has_qsiprep_5tt_hsvs': False, 'has_freesurfer_5tt_hsvs': False, 'has_freesurfer': True, 'has_qsiprep_t1w': True, 'has_qsiprep_t1w_transforms': True}
241024-11:49:58,45 nipype.workflow INFO:
	 Transforming ODF ROIs into DWI space for visual report.
241024-11:50:02,129 nipype.workflow INFO:
	 QSIRecon workflow graph with 60 nodes built successfully.
241024-11:50:18,320 nipype.workflow IMPORTANT:
	 QSIRecon started!
241024-11:50:23,226 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data".
241024-11:50:23,247 nipype.workflow INFO:
	 [Node] Executing "sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data" <qsirecon.interfaces.ingress.QSIPrepDWIIngress>
241024-11:50:23,252 nipype.workflow INFO:
	 [Node] Finished "sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data", elapsed time 0.002751s.
241024-11:50:23,320 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data".
241024-11:50:23,342 nipype.workflow INFO:
	 [Node] Executing "sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data" <qsirecon.interfaces.ingress.QSIPrepDWIIngress>
241024-11:50:23,348 nipype.workflow INFO:
	 [Node] Finished "sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_ingressed_dwi_data", elapsed time 0.003146s.
241024-11:50:23,416 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.recon_anatomical_wf.qsiprep_anat_ingress" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/recon_anatomical_wf/qsiprep_anat_ingress".
241024-11:50:23,437 nipype.workflow INFO:
	 [Node] Executing "qsiprep_anat_ingress" <qsirecon.interfaces.anatomical.QSIPrepAnatomicalIngress>
241024-11:50:23,442 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.get_template" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/get_template".
241024-11:50:23,445 nipype.workflow INFO:
	 [Node] Finished "qsiprep_anat_ingress", elapsed time 0.005077s.
241024-11:50:23,472 nipype.workflow INFO:
	 [Node] Executing "get_template" <qsirecon.interfaces.anatomical.GetTemplate>
241024-11:50:23,476 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.get_template" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/get_template".
241024-11:50:23,499 nipype.workflow INFO:
	 [Node] Executing "get_template" <qsirecon.interfaces.anatomical.GetTemplate>
241024-11:50:23,657 nipype.workflow INFO:
	 [Node] Finished "get_template", elapsed time 0.181756s.
241024-11:50:23,679 nipype.workflow INFO:
	 [Node] Finished "get_template", elapsed time 0.178013s.
241024-11:50:24,583 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.aggregate_anatomical_nodes" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/aggregate_anatomical_nodes".
241024-11:50:24,584 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.voxel_size_chooser" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/voxel_size_chooser".
241024-11:50:24,584 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.voxel_size_chooser" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/voxel_size_chooser".
241024-11:50:24,619 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.resample_mask" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/resample_mask".
241024-11:50:24,619 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.odf_rois" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/odf_rois".
241024-11:50:24,626 nipype.workflow INFO:
	 [Node] Executing "voxel_size_chooser" <qsirecon.interfaces.anatomical.VoxelSizeChooser>
241024-11:50:24,627 nipype.workflow INFO:
	 [Node] Executing "aggregate_anatomical_nodes" <nipype.interfaces.utility.base.Merge>
241024-11:50:24,627 nipype.workflow INFO:
	 [Node] Executing "voxel_size_chooser" <qsirecon.interfaces.anatomical.VoxelSizeChooser>
241024-11:50:24,627 nipype.workflow INFO:
	 [Node] Finished "aggregate_anatomical_nodes", elapsed time 0.000167s.
241024-11:50:24,651 nipype.workflow INFO:
	 [Node] Executing "odf_rois" <nipype.interfaces.ants.resampling.ApplyTransforms>
241024-11:50:24,653 nipype.workflow INFO:
	 [Node] Finished "voxel_size_chooser", elapsed time 0.025858s.
241024-11:50:24,655 nipype.workflow INFO:
	 [Node] Finished "voxel_size_chooser", elapsed time 0.027523s.
241024-11:50:24,657 nipype.workflow INFO:
	 [Node] Executing "resample_mask" <nipype.interfaces.ants.resampling.ApplyTransforms>
241024-11:50:24,848 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.resample_mask" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/resample_mask".
241024-11:50:24,873 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.odf_rois" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/odf_rois".
241024-11:50:24,884 nipype.workflow INFO:
	 [Node] Executing "resample_mask" <nipype.interfaces.ants.resampling.ApplyTransforms>
241024-11:50:24,884 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.mask_template" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/mask_template".
241024-11:50:24,911 nipype.workflow INFO:
	 [Node] Executing "odf_rois" <nipype.interfaces.ants.resampling.ApplyTransforms>
241024-11:50:24,912 nipype.workflow INFO:
	 [Node] Executing "mask_template" <nipype.interfaces.afni.utils.Calc>
241024-11:50:25,746 nipype.workflow INFO:
	 [Node] Finished "resample_mask", elapsed time 0.443538s.
241024-11:50:25,752 nipype.workflow INFO:
	 [Node] Finished "resample_mask", elapsed time 0.395241s.
241024-11:50:25,794 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.mask_template" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/mask_template".
241024-11:50:25,818 nipype.workflow INFO:
	 [Node] Executing "mask_template" <nipype.interfaces.afni.utils.Calc>
241024-11:50:26,388 nipype.workflow INFO:
	 [Node] Finished "mask_template", elapsed time 1.476046s.
241024-11:50:26,585 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.reorient_to_lps" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/reorient_to_lps".
241024-11:50:26,591 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.reduce_t1_preproc" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/reduce_t1_preproc".
241024-11:50:26,613 nipype.workflow INFO:
	 [Node] Executing "reorient_to_lps" <nipype.interfaces.afni.utils.Resample>
241024-11:50:26,614 nipype.workflow INFO:
	 [Node] Executing "reduce_t1_preproc" <qsirecon.interfaces.utils.GetUnique>
241024-11:50:26,615 nipype.workflow INFO:
	 [Node] Finished "reduce_t1_preproc", elapsed time 0.000124s.
241024-11:50:27,31 nipype.workflow INFO:
	 [Node] Finished "mask_template", elapsed time 1.2120980000000001s.
241024-11:50:27,34 nipype.workflow INFO:
	 [Node] Finished "reorient_to_lps", elapsed time 0.420493s.
241024-11:50:28,614 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.reorient_to_lps" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/reorient_to_lps".
241024-11:50:28,640 nipype.workflow INFO:
	 [Node] Executing "reorient_to_lps" <nipype.interfaces.afni.utils.Resample>
241024-11:50:28,734 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.autobox_template" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/autobox_template".
241024-11:50:28,763 nipype.workflow INFO:
	 [Node] Executing "autobox_template" <nipype.interfaces.afni.utils.Autobox>
241024-11:50:29,36 nipype.workflow INFO:
	 [Node] Finished "reorient_to_lps", elapsed time 0.394798s.
241024-11:50:29,351 nipype.workflow INFO:
	 [Node] Finished "autobox_template", elapsed time 0.587712s.
241024-11:50:30,586 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.autobox_template" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/autobox_template".
241024-11:50:30,610 nipype.workflow INFO:
	 [Node] Executing "autobox_template" <nipype.interfaces.afni.utils.Autobox>
241024-11:50:30,829 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.deoblique_autobox" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/deoblique_autobox".
241024-11:50:30,857 nipype.workflow INFO:
	 [Node] Executing "deoblique_autobox" <nipype.interfaces.afni.preprocess.Warp>
241024-11:50:31,228 nipype.workflow INFO:
	 [Node] Finished "autobox_template", elapsed time 0.616545s.
241024-11:50:31,453 nipype.workflow INFO:
	 [Node] Finished "deoblique_autobox", elapsed time 0.592779s.
241024-11:50:32,624 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.resample_to_voxel_size" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/resample_to_voxel_size".
241024-11:50:32,624 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.deoblique_autobox" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/deoblique_autobox".
241024-11:50:32,655 nipype.workflow INFO:
	 [Node] Executing "deoblique_autobox" <nipype.interfaces.afni.preprocess.Warp>
241024-11:50:33,239 nipype.workflow INFO:
	 [Node] Finished "deoblique_autobox", elapsed time 0.580722s.
241024-11:50:34,76 nipype.workflow INFO:
	 [Node] Executing "resample_to_voxel_size" <nipype.interfaces.afni.utils.Resample>
241024-11:50:34,488 nipype.workflow INFO:
	 [Node] Finished "resample_to_voxel_size", elapsed time 0.408522s.
241024-11:50:34,614 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf.output_grid_wf.resample_to_voxel_size" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_dwi_specific_anat_wf/output_grid_wf/resample_to_voxel_size".
241024-11:50:36,50 nipype.workflow INFO:
	 [Node] Executing "resample_to_voxel_size" <nipype.interfaces.afni.utils.Resample>
241024-11:50:36,436 nipype.workflow INFO:
	 [Node] Finished "resample_to_voxel_size", elapsed time 0.382431s.
241024-11:51:12,625 nipype.workflow INFO:
	 [Node] Finished "odf_rois", elapsed time 47.329377s.
241024-11:51:12,667 nipype.workflow INFO:
	 [Node] Finished "odf_rois", elapsed time 47.360537s.
241024-11:51:14,628 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs".
241024-11:51:14,628 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs".
241024-11:51:14,679 nipype.workflow INFO:
	 [Node] Executing "sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs" <qsirecon.interfaces.interchange.ReconWorkflowInputs>
241024-11:51:14,680 nipype.workflow INFO:
	 [Node] Finished "sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs", elapsed time 0.000332s.
241024-11:51:14,681 nipype.workflow INFO:
	 [Node] Executing "sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs" <qsirecon.interfaces.interchange.ReconWorkflowInputs>
241024-11:51:14,683 nipype.workflow INFO:
	 [Node] Finished "sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_inputs", elapsed time 0.00037s.
241024-11:51:16,634 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.convert_to_fsl" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/convert_to_fsl".
241024-11:51:16,635 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.convert_mask_to_fsl" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/convert_mask_to_fsl".
241024-11:51:16,667 nipype.workflow INFO:
	 [Node] Executing "convert_to_fsl" <qsirecon.interfaces.images.ConformDwi>
241024-11:51:16,669 nipype.workflow INFO:
	 [Node] Executing "convert_mask_to_fsl" <qsirecon.interfaces.images.ConformDwi>
241024-11:51:16,732 nipype.interface INFO:
	 Re-orienting /input/qsiprep/sub-001/ses-01/dwi/sub-001_ses-01_dir-AP_run-001_space-T1w_desc-preproc_dwi.nii.gz to LAS
241024-11:51:16,732 nipype.interface INFO:
	 Re-orienting /input/qsiprep/sub-001/ses-02/dwi/sub-001_ses-02_dir-AP_run-001_space-T1w_desc-brain_mask.nii.gz to LAS
241024-11:51:16,940 nipype.workflow INFO:
	 [Node] Finished "convert_mask_to_fsl", elapsed time 0.270312s.
241024-11:51:17,965 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.convert_mask_to_fsl" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/convert_mask_to_fsl".
241024-11:51:17,990 nipype.workflow INFO:
	 [Node] Executing "convert_mask_to_fsl" <qsirecon.interfaces.images.ConformDwi>
241024-11:51:18,16 nipype.workflow INFO:
	 [Node] Setting-up "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.convert_to_fsl" in "/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/convert_to_fsl".
241024-11:51:18,43 nipype.workflow INFO:
	 [Node] Executing "convert_to_fsl" <qsirecon.interfaces.images.ConformDwi>
241024-11:51:18,43 nipype.interface INFO:
	 Re-orienting /input/qsiprep/sub-001/ses-01/dwi/sub-001_ses-01_dir-AP_run-001_space-T1w_desc-brain_mask.nii.gz to LAS
241024-11:51:18,108 nipype.interface INFO:
	 Re-orienting /input/qsiprep/sub-001/ses-02/dwi/sub-001_ses-02_dir-AP_run-001_space-T1w_desc-preproc_dwi.nii.gz to LAS
241024-11:51:18,244 nipype.workflow INFO:
	 [Node] Finished "convert_mask_to_fsl", elapsed time 0.253217s.
241024-11:51:18,684 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:51:18,694 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_mask_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_mask_to_fslstd)
241024-11:51:18,700 nipype.workflow ERROR:
	 Node ds_mask_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:51:18,708 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115118-adamraikes-ds_mask_to_fslstd-d34fcd85-f980-4abe-ac8b-32686ed63b0f.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_mask_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '01', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'mask', 'datatype': 'dwi', 'extension': 'nii'}.


241024-11:51:18,885 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:51:18,902 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_mask_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_mask_to_fslstd)
241024-11:51:18,907 nipype.workflow ERROR:
	 Node ds_mask_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:51:18,911 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115118-adamraikes-ds_mask_to_fslstd-ff899e90-0743-4d07-8c70-94370b964253.txt
Traceback (mo
8000
st recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_mask_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '02', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'mask', 'datatype': 'dwi', 'extension': 'nii'}.


241024-11:52:57,830 nipype.interface INFO:
	 Reorienting /input/qsiprep/sub-001/ses-01/dwi/sub-001_ses-01_dir-AP_run-001_space-T1w_desc-preproc_dwi.bvec to LAS
241024-11:52:57,844 nipype.workflow INFO:
	 [Node] Finished "convert_to_fsl", elapsed time 101.17691s.
241024-11:52:58,768 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:52:58,773 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_bval_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_bval_to_fslstd)
241024-11:52:58,777 nipype.workflow ERROR:
	 Node ds_bval_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:52:58,781 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115258-adamraikes-ds_bval_to_fslstd-b1349058-d4f3-4dd3-8892-a01e866b2015.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_bval_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '01', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bval'}.


241024-11:52:58,927 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:52:58,933 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_bvec_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_bvec_to_fslstd)
241024-11:52:58,937 nipype.workflow ERROR:
	 Node ds_bvec_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:52:58,941 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115258-adamraikes-ds_bvec_to_fslstd-fc04a500-9c9d-46b5-befe-f6bec3873dbb.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_bvec_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '01', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bvec'}.


241024-11:52:59,89 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:52:59,95 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_dwi_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_01_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_dwi_to_fslstd)
241024-11:52:59,99 nipype.workflow ERROR:
	 Node ds_dwi_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:52:59,104 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115259-adamraikes-ds_dwi_to_fslstd-363fc16b-12b8-4514-843d-be183aaff83b.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_dwi_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '01', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bvec'}.


241024-11:53:00,9 nipype.interface INFO:
	 Reorienting /input/qsiprep/sub-001/ses-02/dwi/sub-001_ses-02_dir-AP_run-001_space-T1w_desc-preproc_dwi.bvec to LAS
241024-11:53:00,22 nipype.workflow INFO:
	 [Node] Finished "convert_to_fsl", elapsed time 101.978258s.
241024-11:53:00,763 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:53:00,779 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_bval_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_bval_to_fslstd)
241024-11:53:00,784 nipype.workflow ERROR:
	 Node ds_bval_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:53:00,788 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115300-adamraikes-ds_bval_to_fslstd-61778dfe-b4d6-460e-8427-9109684f4775.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_bval_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '02', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bval'}.


241024-11:53:00,937 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:53:00,942 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_bvec_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_bvec_to_fslstd)
241024-11:53:00,946 nipype.workflow ERROR:
	 Node ds_bvec_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:53:00,951 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115300-adamraikes-ds_bvec_to_fslstd-60ae8b95-4867-41a8-a114-940e095b1166.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_bvec_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '02', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bvec'}.


241024-11:53:01,96 nipype.workflow WARNING:
	 Storing result file without outputs
241024-11:53:01,101 nipype.workflow WARNING:
	 [Node] Error on "qsirecon_0_23_wf.sub-001_reorient2fslstd.sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf.to_fslstd.ds_dwi_to_fslstd" (/output/scratch/qsirecon_0_23_wf/sub-001_reorient2fslstd/sub_001_ses_02_dir_AP_run_001_space_T1w_desc_preproc_recon_wf/to_fslstd/ds_dwi_to_fslstd)
241024-11:53:01,105 nipype.workflow ERROR:
	 Node ds_dwi_to_fslstd failed to run on host r1u29n2.puma.hpc.arizona.edu.
241024-11:53:01,110 nipype.workflow ERROR:
	 Saving crash info to /output/sub-001/log/20241024-114937_4adae958-2826-41c7-96b4-b96393add4ce/crash-20241024-115301-adamraikes-ds_dwi_to_fslstd-b68035d7-5b85-4b7d-83cc-9c4f2d738fd7.txt
Traceback (most recent call last):
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/plugins/multiproc.py", line 344, in _send_procs_to_workers
    self.procs[jobid].run(updatehash=updatehash)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 527, in run
    result = self._run_interface(execute=True)
  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/pipeline/engine/nodes.py", line 645, in _run_interface
    return self._run_command(execute)
  File "/opt/conda/envs/qsiprep/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 ds_dwi_to_fslstd.

Traceback:
	Traceback (most recent call last):
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/nipype/interfaces/base/core.py", line 397, in run
	    runtime = self._run_interface(runtime)
	  File "/opt/conda/envs/qsiprep/lib/python3.10/site-packages/niworkflows/interfaces/bids.py", line 632, in _run_interface
	    raise ValueError(f"Could not build path with entities {out_entities}.")
	ValueError: Could not build path with entities {'subject': '001', 'session': '02', 'direction': 'AP', 'run': '001', 'space': 'T1w', 'suffix': 'dwi', 'datatype': 'dwi', 'extension': 'bvec'}.


241024-11:53:02,659 nipype.workflow IMPORTANT:
	 QSIRecon finished successfully!
241024-11:53:02,664 nipype.workflow IMPORTANT:
	 Works derived from this QSIRecon execution should include the boilerplate text found in <OUTPUT_PATH>/logs/CITATION.md.
241024-11:53:03,132 nipype.utils WARNING:
	 DatasetType key not in /input/qsiprep/dataset_description.json. Assuming 'derivative'.
241024-11:53:03,132 nipype.utils WARNING:
	 'preprocessed' is already a dataset link. Overwriting.
241024-11:53:03,599 nipype.utils WARNING:
	 DatasetType key not in /input/qsiprep/dataset_description.json. Assuming 'derivative'.
241024-11:53:03,599 nipype.utils WARNING:
	 'preprocessed' is already a dataset link. Overwriting.

@tsalo
Copy link
Member Author
tsalo commented Oct 24, 2024

I changed the extension from bvec to .bvec in 74787a9, so something weird is happening here.

@araikes
Copy link
Collaborator
araikes commented Oct 24, 2024

Dumb question... Is that the right bind point? If I shell into image without binding that branch , that path (/usr/local/miniconda/lib/python3.10/site-packages/qsirecon) doesn't exist, so it's not like I'm replacing the existing with the new.

[adamraikes@r1u29n2 PD_allo]$ apptainer shell --containall --writable-tmpfs -B /groups/adamraikes/templateflow:/opt/templateflow -B $PWD/derivatives/qsiprep_0.22.1:/input -B $PWD/derivatives/qsirecon_unstable:/output -B /tmp:/tmp -B /groups/adamraikes/license.txt:/license.txt $RECON /input/qsiprep /output participant --participant_label 001 -w /output/scratch  --fs-license-file /license.txt --recon-spec reorient_fslstd --input-type qsiprep --freesurfer_input /input/fastsurfer
WARNING: Parameters to shell command are ignored
Apptainer> ls /usr/local
bin  boost176  cuda  cuda-11.1	etc  games  include  lib  man  sbin  share  src

@tsalo
Copy link
Member Author
tsalo commented Oct 24, 2024

You're right, sorry about that. The correct path is /opt/conda/envs/qsiprep/lib/python3.10/site-packages/qsirecon.

@araikes
Copy link
Collaborator
araikes commented Oct 24, 2024

Ok... That runs for reorient_fslstd with the following concerns:

  1. The mask is .nii. Any particular reason for not .nii.gz?
  2. The bval file is correct, the mask is correct, the dwi NIFTI has extension .bvec, and there is no actual bvec file.

Testing multishell_scalarfest for issues.

@araikes
Copy link
Collaborator
araikes commented Oct 24, 2024

Aside from the issue in #130, multishell_scalarfest ran to completion.

@tsalo
Copy link
Member Author
tsalo commented Oct 25, 2024

@araikes I just tried to fix the problems in reorient_fslstd.

@araikes
Copy link
Collaborator
araikes commented Oct 25, 2024

@tsalo works as expected. Just gonna a quick test on the hsvs outputs.

@araikes
Copy link
Collaborator
araikes commented Oct 25, 2024

Updates write sub-xxx_space-T1w_atlas-hsvs_dseg.nii and sub-xxx_space-fsnative_desc-hsvs_dseg.mif.gz for mrtrix_multishell_msmt_ACT-hsvs to /output/sub-xxx/anat.

Questions:

  1. Why is the NIFTI an "atlas" and the MIF a "desc"?
  2. These are probabilistic tissue segmentations. Why dseg and not probseg?
  3. As with other things, any specific reason not to gzip the NIFTI?

Appears to address #112, barring the questions here.

@tsalo
Copy link
Member Author
tsalo commented Oct 25, 2024

I think the atlas/desc discrepancy is just a bug. Any cases where we have .nii instead of .nii.gz are mistakes as well, where we're just using the default extension.

I didn't realize the hsvs files were probsegs instead of dsegs, but I can change that.

@araikes
Copy link
Collaborator
araikes commented Oct 25, 2024

Ok. Last two things and then I think everything related to expected file writing is addressed (AFAIK):

  1. What constitutes an "atlas"? I don't necessarily consider a 5 tissue type segmentation for an individual to be an atlas (in the same way that e.g. the Schaefer atlas is an atlas).
  2. No JSONs are written for the anatomical HSVS outputs, but that's probably a separate issue.

@tsalo
Copy link
Member Author
tsalo commented Oct 25, 2024

Technically the "atlas" entity in those files needs to be changed to "seg", but I have that change in #123. With BIDS-Atlas, any standard-space atlases or segmentations get called atlas-X_space-Y_<probseg|dseg>.nii.gz and get organized in atlas-format datasets. Any subject-specific atlases or segmentations get a seg entity instead.

@araikes
Copy link
Collaborator
araikes commented Oct 25, 2024

Ok. That works for me.

Also, I'm testing @mattcieslak's comment in #128 that this will address the matrix plot issue in the reports.

@araikes
Copy link
Collaborator
araikes commented Oct 25, 2024

Connectivity plots work, addressing #128.

@araikes araikes mentioned this pull request Oct 25, 2024
@@ -154,6 +155,7 @@ def init_qsirecon_to_fsl_wf(
DerivativesDataSink(
dismiss_entities=("desc",),
suffix="mask",
extension=".nii.gz",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need compress=True? Or does the extension take care of that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either works. compress=True is probably more flexible if we ever support non-NIfTI outputs here.

@tsalo tsalo merged commit cdd083f into main Oct 28, 2024
18 checks passed
@tsalo tsalo deleted the add-missing-patterns branch October 28, 2024 15:31
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

Successfully merging this pull request may close these issues.

Connectivity matrix plots in reports are broken Datasinks don't work for all of the expected files
4 participants
0