MHCXGraph.utils.tools.process_chunk¶
- MHCXGraph.utils.tools.process_chunk(step_idx, chunk_idx, chunk_triads, global_state, residue_tracker)[source]¶
Process a chunk of triads during hierarchical association.
- Parameters:
step_idx (int) – Current association step.
chunk_idx (int) – Index of the chunk being processed.
chunk_triads (list) – Triad groups contained within the chunk.
global_state (dict) – Global state containing matrices, maps, and configuration.
residue_tracker (ResidueTracker, optional) – Tracking object used for recording intermediate states.
- Returns:
rebuilt_combos (dict or list or None) – Reconstructed combinations used in the next step.
final_graphs (list) – Graphs generated from the processed chunk.