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_filestring (nifti file)
Path to input functional run
- stop_idxint
Last volume to be considered, specified by user in the configuration file
- stop_idxint
First volume to be considered, specified by user in the configuration file
- Returns:
- stop_idxint
Value of first slice to consider for the functional run
- start_idxint
Value of last slice to consider for the functional run