MHCXGraph.utils.tools.execute_step¶
- MHCXGraph.utils.tools.execute_step(step_idx: int, graph_collection, max_chunks: int, current_filtered_cross_combos, graphs_data, global_state, residue_tracker)[source]¶
Execute a single hierarchical association step.
- Parameters:
step_idx (int) – Current step index.
graph_collection (dict) – Graph collection produced during preprocessing.
max_chunks (int) – Maximum chunk size used for hierarchical grouping.
current_filtered_cross_combos (list) – Cross-combo results from the previous step.
graphs_data (list) – Graph metadata structures.
global_state (dict) – Shared global state containing matrices, maps, and configuration parameters.
residue_tracker (ResidueTracker, optional) – Tracking object used for debugging and provenance logging.
- Returns:
filtered_cross_combos (list) – Filtered cross combinations for the next step.
step_graphs (list) – Graphs produced during the step.