[docs]classFailedGalaxyHTMLBuilder:""" Constructs the HTML file to display for failed Galaxy runs """CSS_PATH=EnvironmentSettings.html_templates_path/"css/custom.css"
[docs]@staticmethoddefbuild(result_path,traceback_str)->Path:logfile=result_path/"log.txt"html_map={"css_style":Util.get_css_content(FailedGalaxyHTMLBuilder.CSS_PATH),"logfile_content":open(logfile,'r').read()ifos.path.isfile(logfile)else"Log file not found","exception":traceback_str,'immuneML_version':MLUtil.get_immuneML_version()}result_file=result_path/f"index.html"TemplateParser.parse(template_path=EnvironmentSettings.html_templates_path/"FailedGalaxy.html",template_map=html_map,result_path=result_file)returnresult_file