Skip to content

Check if BOLD has enough time points for selected nuisance regression strategy and fail early if not #326

@nx10

Description

@nx10
  • while non-trivial we should be able to estimate and catch this early:
[...] ran for about 2.5 hours before exiting with this code:
styxsingularity.StyxSingularityError: Command failed with return code 1.
 - Command args: 3dTproject -bandpass 0.01 0.1 -input /styx_input/0/bold_to_template_resampled.nii.gz -mask /styx_input/1/ants_beBrainExtractionMask_template.nii.gz -ort /styx_input/2/regressors.1D -polort 0 -prefix cleaned_bold.nii.gz
 - Singularity args: apptainer exec --no-mount hostfs --bind /local/tmpogudhq_e/a0118257419b4dc9_204_antsApplyTransforms/bold_to_template_resampled.nii.gz:/styx_input/0/bold_to_template_resampled.nii.gz:ro --bind /local/tmpogudhq_e/a0118257419b4dc9_337_antsApplyTransforms/ants_beBrainExtractionMask_template.nii.gz:/styx_input/1/ants_beBrainExtractionMask_template.nii.gz:ro --bind /local/tmpogudhq_e/a0118257419b4dc9_200_compute_regressors/regressors.1D:/styx_input/2/regressors.1D:ro --bind /local/tmpogudhq_e/a0118257419b4dc9_339_3dTproject:/styx_output --env ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=4,ANTS_RANDOM_SEED=77742777 docker://afni/afni_make_build:AFNI_24.2.06 /bin/bash /styx_output/run.sh
 - Last 14 stderr line(s):
     INFO:    Using cached SIF image
     ++ 3dTproject: AFNI version=AFNI_24.2.06 (Sep 12 2024) [64-bit]
     ++ Authored by: Cox the Algebraic (Linear)
     ** AFNI converts NIFTI_datatype=64 (FLOAT64) in file /styx_input/1/ants_beBrainExtractionMask_template.nii.gz to FLOAT32
          Warnings of this type will be muted for this session.
          Set AFNI_NIFTI_TYPE_WARN to YES to see them all, NO to see none.
     ++ Setting up regressors
     ++ setting up stopband frequency mask
      + Block #0: 133 time points -- 114 stopband regressors
     ++ 1 Blocks * 1 polynomials -- 1 polort regressors
      + -- 36 other fixed ort regressors
     [7m** ERROR:[0m total number of fixed regressors (151) is too many for 133 retained time points!
     [7m** FATAL ERROR:[0m Cannot continue after above errors :-( :-( :-( !!
     ** Program compile date = Sep 12 2024

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions