comparison 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
comparison
equal deleted inserted replaced
72:6ecbfebb9dd9 81:40ce2043006a
1 {# -*- coding: utf-8 -*- #}
1 <!DOCTYPE html> 2 <!DOCTYPE html>
2 <html> 3 <html>
3 <head> 4 <head>
4 <meta charset="UTF-8"> 5 <meta charset="UTF-8">
5 <meta name=generator content="blast2html; see https://github.com/thehyve/blast2html/"> 6 <meta name=generator content="blast2html; see https://github.com/thehyve/blast2html/">
464 <div class=scale> 465 <div class=scale>
465 <div>query:</div> 466 <div>query:</div>
466 <div class=graphicrow> 467 <div class=graphicrow>
467 <div> 468 <div>
468 {% for s in result|queryscale %} 469 {% for s in result|queryscale %}
469 <div class=graphicitem style="width: {{s.width}}%"> 470 <div class=graphicitem style="width: {{s.width|numfmt}}%">
470 {% if s.width > 3.0 %} 471 {% if s.width > 3.0 %}
471 <div>{{s.label}}</div> 472 <div>{{s.label}}</div>
472 {% else %} 473 {% else %}
473 <div>&nbsp;</div> 474 <div>&nbsp;</div>
474 <div class=lastlabel>{{s.label}}</div> 475 <div class=lastlabel>{{s.label}}</div>
487 onmouseout='document.getElementById("defline{{result|nodeid}}").innerHTML="Mouse-over to show defline and scores, click to show alignments"' 488 onmouseout='document.getElementById("defline{{result|nodeid}}").innerHTML="Mouse-over to show defline and scores, click to show alignments"'
488 title="{{line.defline}}"> 489 title="{{line.defline}}">
489 <div class="matchrow graphicrow"> 490 <div class="matchrow graphicrow">
490 {% for hit in line.colors %} 491 {% for hit in line.colors %}
491 <div class="matchitem graphicitem" 492 <div class="matchitem graphicitem"
492 style="background-color: {{hit[1]}}; width: {{hit[0]}}%"></div> 493 style="background-color: {{hit[1]}}; width: {{hit[0]|numfmt}}%"></div>
493 {% endfor %} 494 {% endfor %}
494 </div> 495 </div>
495 </a> 496 </a>
496 497
497 {% endfor %} 498 {% endfor %}
594 </tr> 595 </tr>
595 <tr> 596 <tr>
596 <td>{{hsp['Hsp_bit-score']|fmt('.1f')}} bits({{hsp.Hsp_score}})</td> 597 <td>{{hsp['Hsp_bit-score']|fmt('.1f')}} bits({{hsp.Hsp_score}})</td>
597 <td>{{hsp.Hsp_evalue|fmt('.1f')}}</td> 598 <td>{{hsp.Hsp_evalue|fmt('.1f')}}</td>
598 <td>{{ hsp.Hsp_identity }}/{{ hsp|len }}({{ 599 <td>{{ hsp.Hsp_identity }}/{{ hsp|len }}({{
599 (hsp.Hsp_identity/hsp|len) |fmt('.0%') }})</td> 600 ((hsp.Hsp_identity|float)/hsp|len) | fmt('.0%') }})</td>
600 <td>{{ hsp.Hsp_gaps }}/{{ hsp|len 601 <td>{{ hsp.Hsp_gaps }}/{{ hsp|len
601 }}({{ (hsp.Hsp_gaps / hsp|len) | fmt('.0%') }})</td> 602 }}({{ ((hsp.Hsp_gaps|float) / hsp|len) | fmt('.0%') }})</td>
602 <td>{{ hsp['Hsp_query-frame']|asframe }}/{{ hsp['Hsp_hit-frame']|asframe }}</td> 603 <td>{{ hsp['Hsp_query-frame']|asframe }}/{{ hsp['Hsp_hit-frame']|asframe }}</td>
603 </tr> 604 </tr>
604 </table> 605 </table>
605 606
606 {% for alignment_line in hsp|alignment_pre %} 607 {% for alignment_line in hsp|alignment_pre %}