Mercurial > repos > jankanis > blast2html
diff blast2html.html.jinja @ 81:40ce2043006a
merge py2.6 branch
author | Jan Kanis <jan.code@jankanis.nl> |
---|---|
date | Thu, 19 Jun 2014 17:00:29 +0200 |
parents | 7d0d46168fd5 |
children | 4378d11f0ed7 |
line wrap: on
line diff
--- a/blast2html.html.jinja Wed Jun 18 14:33:12 2014 +0200 +++ b/blast2html.html.jinja Thu Jun 19 17:00:29 2014 +0200 @@ -1,3 +1,4 @@ +{# -*- coding: utf-8 -*- #} <!DOCTYPE html> <html> <head> @@ -466,7 +467,7 @@ <div class=graphicrow> <div> {% for s in result|queryscale %} - <div class=graphicitem style="width: {{s.width}}%"> + <div class=graphicitem style="width: {{s.width|numfmt}}%"> {% if s.width > 3.0 %} <div>{{s.label}}</div> {% else %} @@ -489,7 +490,7 @@ <div class="matchrow graphicrow"> {% for hit in line.colors %} <div class="matchitem graphicitem" - style="background-color: {{hit[1]}}; width: {{hit[0]}}%"></div> + style="background-color: {{hit[1]}}; width: {{hit[0]|numfmt}}%"></div> {% endfor %} </div> </a> @@ -596,9 +597,9 @@ <td>{{hsp['Hsp_bit-score']|fmt('.1f')}} bits({{hsp.Hsp_score}})</td> <td>{{hsp.Hsp_evalue|fmt('.1f')}}</td> <td>{{ hsp.Hsp_identity }}/{{ hsp|len }}({{ - (hsp.Hsp_identity/hsp|len) |fmt('.0%') }})</td> + ((hsp.Hsp_identity|float)/hsp|len) | fmt('.0%') }})</td> <td>{{ hsp.Hsp_gaps }}/{{ hsp|len - }}({{ (hsp.Hsp_gaps / hsp|len) | fmt('.0%') }})</td> + }}({{ ((hsp.Hsp_gaps|float) / hsp|len) | fmt('.0%') }})</td> <td>{{ hsp['Hsp_query-frame']|asframe }}/{{ hsp['Hsp_hit-frame']|asframe }}</td> </tr> </table>