MHCXGraph.utils.dashboard_writer.DashboardStreamWriter

class MHCXGraph.utils.dashboard_writer.DashboardStreamWriter(assets_dir, log)[source]

Assemble the dashboard HTML with constant memory.

Usage

writer = DashboardStreamWriter(assets_dir, log) writer.write(

output_path=…, file_name=…, header={…}, # top-level scalar/small fields of masterData pair_files=[(key, path)], # each path holds one pair’s JSON object filtered_graphs={…}, # deduped per-protein filtered graphs actual_mode=…,

)

__init__(assets_dir, log)[source]

Methods

__init__(assets_dir, log)

write(output_path, file_name, header, ...[, ...])

Stream the full dashboard to disk with constant memory.