示例#1
0
html_string += Graphs.CreateHtmlPlotString(html_heatmap_orf2b5a,
                                           width='50%',
                                           padding_top='50%',
                                           min_width=size,
                                           height=size)
html_string += Graphs.CreateHtmlPlotString(html_recombination,
                                           width=800,
                                           height=recomb_height,
                                           min_width=800)
html_string += Graphs.CreateImageHtmlString(
    OutputFolder + "\PhyloGeneticTrees\Wholegenome_tree.png",
    width=600,
    height='auto',
    title='Whole Genome Phylogenetic Tree',
    min_width=600)
html_string += Graphs.EndHtmlString()

f = open(OutputFolder + "/Report.html", 'w')
f.write(html_string)
f.close()

webbrowser.open('file://' + os.path.realpath(OutputFolder + "/Report.html"))

# Mobile Report
'''html_string = Graphs.InitalizeHtmlString()
#html_string += Graphs.CreateHtmlPlotString(html_orfDropdown, width='100%', height=bar_height)
    for str in html_vaccinePlots:
        html_string += Graphs.CreateHtmlPlotString(str, width='100%', height=bar_height)
    html_string += Graphs.CreateHtmlPlotString(html_heatmap_wholegenome, width='100%', height=size, min_width=size)
    html_string += Graphs.CreateHtmlPlotString(html_heatmap_orf2b5a, width='100%', height=size, min_width=size)
    html_string += Graphs.CreateHtmlPlotString(html_recombination, width='100%', height=recomb_height, min_width=200)