BDP error (badsubscript)

Viewing 3 reply threads
  • Author
    Posts
    • #1583
      balukrishnan
      Participant

      Hi

      I am getting the following error when I run BDP on my data

      Transforming input file to diffusion coordinates: T1.niiSubscript indices must either be real positive integers or logicals.

      Error in check_nifti_file (line 34)

      Error in transfer_T1_to_diffusion (line 52)

      Error in coregister_diffusion_mprage_pipeline (line 333)

      Error in BrainSuite_Diffusion_pipeline (line 26)

      MATLAB:badsubscript

      Can anyone help me with debugging it?

      Balu

    • #3160
      Taylorariko
      Participant

      Hello,

      I am having a similar problem. Any help?

      >>/Applications/BrainSuite21a/bdp/bdp.sh T1.bfc.nii.gz –nii DW.nii –bval bval.bval –bvec bvec.bvec

      BDP Version: 21a (build #0081), released 2021-05-05

      ================================================================================
      Setting up dataset and inputs
      ================================================================================
      Reading input flags…
      Did not detect –FRT/–FRACT/–tensor/–3dshore/–gqi/–erfo. Using default
      setting of estimating tensors.

      Checking input files…
      Array indices must be positive integers or logical values.

      Error in check_nifti_file (line 34)

      Error in bdp_setup (line 894)

      Error in BrainSuite_Diffusion_pipeline (line 13)

      MATLAB:badsubscript

      >>

      Thanks!
      Taylor

    • #3528
      Whiiz
      Participant

      Hey,

      having a similar problem, any solutions yet?

      Error in find_bounding_box (line 16)

      Error in EPI_correct_files_registration_INVERSION>trim_msk_PED (line 513)

      Error in EPI_correct_files_registration_INVERSION (line 271)

      Error in coregister_diffusion_mprage_pipeline (line 219)

      Error in BrainSuite_Diffusion_pipeline (line 26)

      MATLAB:badsubscript

    • #5382
      peolsolutions
      Participant

      The BDP error (BadSubscript) typically occurs in programming languages when an invalid subscript or index is used to access an array, list, or similar data structure. This error happens when an attempt is made to reference an element at an index that doesn’t exist or is out of range. Common causes include using negative indices, exceeding the array’s bounds, or passing non-integer values as subscripts. To resolve this error, verify the array’s size, check the index calculations, and ensure proper bounds checking before accessing array elements.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.