def _assemblyMetricsTable(kind): with h.table(class_="table table-condensed"): with h.tr(): h.th("Metric") with h.th(): h.UNESCAPED("Large " + kind + "s (≥ 500bp)") h.th("All " + kind + 's') for metric, value in sample.metrics(assembler, kind).items(): if len(value) == 1: h.tr(h.td(metric), h.td(value[0], colspan='2')) else: h.tr(h.td(metric), h.td(value[0]), h.td(value[1]))
def _assemblySettingsTable(): with h.table(class_="table table-condensed"): h.tr(h.th("Parameter"), h.th("Value")) for param, value in sample.assemblySettings(assembler).items(): h.tr(h.td(param), h.td(value))