tedana.io.add_decomp_prefix

add_decomp_prefix(comp_num, prefix, max_value)[source]

Create component name with leading zeros matching number of components.

Parameters:
  • comp_num (int) – Component number

  • prefix (str) – A prefix to prepend to the component name. An underscore is automatically added between the prefix and the component number.

  • max_value (int) – The maximum component number in the whole decomposition. Used to determine the appropriate number of leading zeros in the component name.

Returns:

comp_name (str) – Component name in the form <prefix>_<zeros><comp_num>