MHCXGraph.utils.tools.rebuild_cross_combos

MHCXGraph.utils.tools.rebuild_cross_combos(cross_combos: dict[dict, list[tuple[tuple, ...]]], graph_nodes)[source]

Reconstruct cross-combo structures after graph pruning.

Parameters:
  • cross_combos (dict) – Original cross-combination dictionary.

  • graph_nodes (iterable) – Nodes currently present in the graph.

Returns:

new_combos – Filtered cross-combination dictionary containing only combinations consistent with the remaining graph nodes.

Return type:

dict