tedana.selection.selection_utils.get_extend_factor

get_extend_factor(n_vols=None, extend_factor=None)[source]

Get the extend_factor for the kundu decision tree.

Extend_factor is a scaler used to set a threshold for the d_table_score in the kundu decision tree.

It is either defined by the number of volumes in the time series or directly defined by the user. If it is defined by the user, that takes precedence over using the number of volumes in a calculation

Parameters:
  • n_vols (int) – The number of volumes in an fMRI time series. default=None In the MEICA code, extend_factor was hard-coded to 2 for data with more than 100 volumes and 3 for data with less than 100 volumes. Now is linearly ramped from 2-3 for vols between 90 & 110

  • extend_factor (float) – The scaler used to set a threshold for d_table_score. default=None

Returns:

extend_factor (float)

Note

Either n_vols OR extend_factor is a required input