MHCXGraph.utils.preprocessing.GraphSpec

class MHCXGraph.utils.preprocessing.GraphSpec(orig_path, base_name, graph_config, settings, output_path, selection_params)[source]

A deferred subgraph build.

Carries everything needed to materialize one filtered subgraph, but builds nothing until .build() is called. Exposes .path/.name so callers can identify a protein without paying its construction cost.

Indexing mirrors the old (subgraph, path, base_name) tuple after build, so clean_graph_name(spec) and spec[1] keep working unchanged.

__init__(orig_path, base_name, graph_config, settings, output_path, selection_params)[source]

Methods

__init__(orig_path, base_name, graph_config, ...)

build()