Mercurial > repos > jankanis > blast2html
changeset 14:0b33898bba45
small bugfixes (one for python 3.4)
author | Jan Kanis <jan.code@jankanis.nl> |
---|---|
date | Mon, 12 May 2014 17:32:01 +0200 |
parents | c2d63adb83db |
children | 648b3b7437da |
files | blast_html.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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