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=…,
)
Methods