# HG changeset patch # User Jan Kanis # Date 1399908721 -7200 # Node ID 0b33898bba451a80491eecada5ea3c321053e18b # Parent c2d63adb83dbff4ad48bb671271cb3775830b6ac small bugfixes (one for python 3.4) diff -r c2d63adb83db -r 0b33898bba45 blast_html.py --- a/blast_html.py Mon May 12 17:13:49 2014 +0200 +++ b/blast_html.py Mon May 12 17:32:01 2014 +0200 @@ -71,9 +71,9 @@ @filter def alignment_pre(hsp): return ( - "Query {:>7s} {} {}\n".format(hsp['Hsp_query-from'], hsp.Hsp_qseq, hsp['Hsp_query-to']) + + "Query {:>7s} {} {}\n".format(hsp['Hsp_query-from'].text, hsp.Hsp_qseq, hsp['Hsp_query-to'].text) + " {:7s} {}\n".format('', hsp.Hsp_midline) + - "Subject{:>7s} {} {}".format(hsp['Hsp_hit-from'], hsp.Hsp_hseq, hsp['Hsp_hit-to']) + "Subject{:>7s} {} {}".format(hsp['Hsp_hit-from'].text, hsp.Hsp_hseq, hsp['Hsp_hit-to'].text) ) @filter('len') @@ -105,7 +105,7 @@ max_scale_labels = 10 - templatename = 'visualise.html.jinja' + templatename = 'blast_html.html.jinja' def __init__(self, input): self.input = input