tedana.selection.selection_utils

Utility functions for tedana.selection

Functions

change_comptable_classifications(selector, ...)

Given information on whether a decision critereon is true or false for each component, change or don't change the component classification

clean_dataframe(component_table)

Reorder columns in component table so that "classification" and "classification_tags" are last.

comptable_classification_changer(selector, ...)

Implement the component classification changes from change_comptable_classifications.

confirm_metrics_exist(component_table, ...)

Confirm that all metrics declared in necessary_metrics are already included in comptable.

get_extend_factor([n_vols, extend_factor])

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

getelbow(arr[, return_val])

Get elbow using linear projection method - moderate.

getelbow_cons(arr[, return_val])

Elbow using mean/variance method - conservative

kappa_elbow_kundu(component_table, n_echos)

Calculate an elbow for kappa using the approach originally in Prantik Kundu's MEICA v2.5 code

log_classification_counts(decision_node_idx, ...)

Log the total counts for each component classification in component_table.

log_decision_tree_step(function_name_idx, ...)

Logging text to add after every decision tree calculation

rho_elbow_kundu_liberal(component_table, n_echos)

Calculate an elbow for rho using the approach originally in Prantik Kundu's MEICA v2.5 code and with a slightly more liberal threshold

selectcomps2use(selector, decide_comps)

Get a list of component numbers that fit the classification types in decide_comps.