tedana.selection.component_selector.ComponentSelector
- class ComponentSelector(tree)[source]
Load and classify components based on a specified
tree
.- __init__(tree)[source]
Initialize the class using the info specified in the json file
tree
.- Parameters:
tree (
str
) – The named tree or path to a JSON file that defines one.
Notes
Initializing the
ComponentSelector
confirms tree is valid and loads all information in the tree json file intoComponentSelector
.
Methods
add_manual
(indices, classification)Add nodes that will manually classify components.
Check if all component classifications are either "accepted" or "rejected".
Check if all metrics that are declared as necessary are actually used.
check_null
(params, fcn)Check that required parameters for selection node functions are attributes in the class.
select
(component_table[, ...])Apply the decision tree to data.
to_files
(io_generator)Convert this selector into component files.
Attributes
A boolean
pandas.Series
of components that are accepted.A boolean
pandas.Series
of components that are tagged "Likely BOLD".The number of components that are accepted.
The number of components in the component table.
The number of components that are tagged "Likely BOLD".
A boolean
pandas.Series
of components that are rejected.