Functional Preprocessing#

CPAC.func_preproc.get_idx(in_files, stop_idx=None, start_idx=None)[source]#

Method to get the first and the last slice for the functional run. It verifies the user specified first and last slice. If the values are not valid, it calculates and returns the very first and the last slice

Parameters
  • in_file (string (nifti file)) – Path to input functional run

  • stop_idx (int) – Last volume to be considered, specified by user in the configuration file

  • stop_idx – First volume to be considered, specified by user in the configuration file

Returns

  • stop_idx (int) – Value of first slice to consider for the functional run

  • start_idx (int) – Value of last slice to consider for the functional run