tedana.selection.selection_utils.selectcomps2use
- selectcomps2use(component_table, decide_comps)[source]
Get a list of component numbers that fit the classification types in
decide_comps
.- Parameters:
component_table (
DataFrame
) – The component_table with metrics and labels for each ICA componentdecide_comps (
str
orlist[str]
orlist[int]
) – This is string or a list of strings describing what classifications of components to operate on, using default or intermediate_classification labels. For example: decide_comps=’unclassified’ means to operate only on unclassified components. The label ‘all’ will operate on all components regardess of classification. This can also be used to pass through a list of component indices to comps2use
- Returns:
comps2use (
list[int]
) – A list of component indices with classifications included in decide_comps