comparison blast2html.html.jinja @ 118:7f3f8c10f44b

fix for Rikilt issues 8, 11, 12, 14
author Jan Kanis <jan.code@jankanis.nl>
date Thu, 31 Jul 2014 13:09:30 +0200
parents 0c2a03f9740b
children 6719353162b0
comparison
equal deleted inserted replaced
117:8ae714069687 118:7f3f8c10f44b
420 <section class=index> 420 <section class=index>
421 <h2>Queries</h2> 421 <h2>Queries</h2>
422 422
423 {% for result in blast.BlastOutput_iterations.Iteration %} 423 {% for result in blast.BlastOutput_iterations.Iteration %}
424 <div class=indexentry><a href="#match{{result|nodeid}}"> 424 <div class=indexentry><a href="#match{{result|nodeid}}">
425 {% set hits = result|hits %}
426 {{result['Iteration_query-ID']}}: {{result['Iteration_query-def']}} 425 {{result['Iteration_query-ID']}}: {{result['Iteration_query-def']}}
427 ({{result|len}} letters, {{hits|length}} hits) 426 ({{result|len}} letters, {{result|hits|length}} hits)
428 </a></div> 427 </a></div>
429 {% endfor %} 428 {% endfor %}
430 429
431 </section> 430 </section>
432 {% endif %} 431 {% endif %}
474 <div class=legend><div class=graphicrow> 473 <div class=legend><div class=graphicrow>
475 <div class=graphicitem style="background-color: {{colors[0]}}">&lt;40</div> 474 <div class=graphicitem style="background-color: {{colors[0]}}">&lt;40</div>
476 <div class=graphicitem style="background-color: {{colors[1]}}">40–50</div> 475 <div class=graphicitem style="background-color: {{colors[1]}}">40–50</div>
477 <div class=graphicitem style="background-color: {{colors[2]}}">50–80</div> 476 <div class=graphicitem style="background-color: {{colors[2]}}">50–80</div>
478 <div class=graphicitem style="background-color: {{colors[3]}}">80–200</div> 477 <div class=graphicitem style="background-color: {{colors[3]}}">80–200</div>
479 <div class=graphicitem style="background-color: {{colors[4]}}">200≤</div> 478 <div class=graphicitem style="background-color: {{colors[4]}}">≥200</div>
480 </div></div> 479 </div></div>
481 <div style="clear: left"></div> 480 <div style="clear: left"></div>
482 481
483 <div class=tablewrapper> 482 <div class=tablewrapper>
484 483
609 <table class=hotspotstable> 608 <table class=hotspotstable>
610 <tr> 609 <tr>
611 <th>Score</th><th>Expect</th><th>Identities</th><th>Gaps</th><th>Strand</th> 610 <th>Score</th><th>Expect</th><th>Identities</th><th>Gaps</th><th>Strand</th>
612 </tr> 611 </tr>
613 <tr> 612 <tr>
614 <td>{{hsp['Hsp_bit-score']|fmt('.1f')}} bits({{hsp.Hsp_score}})</td> 613 <td>{{hsp['Hsp_bit-score']}} bits ({{hsp.Hsp_score}})</td>
615 <td>{{hsp.Hsp_evalue|fmt('.1f')}}</td> 614 <td>{{hsp.Hsp_evalue}}</td>
616 <td>{{ hsp.Hsp_identity }}/{{ hsp|len }}({{ 615 <td>{{ hsp.Hsp_identity }}/{{ hsp|len }} ({{
617 ((hsp.Hsp_identity|float)/hsp|len) | fmt('.0%') }})</td> 616 ((hsp.Hsp_identity|float)/hsp|len) | fmt('.0%') }})</td>
618 <td>{{ hsp.Hsp_gaps }}/{{ hsp|len 617 <td>{{ hsp.Hsp_gaps }}/{{ hsp|len
619 }}({{ ((hsp.Hsp_gaps|float) / hsp|len) | fmt('.0%') }})</td> 618 }} ({{ ((hsp.Hsp_gaps|float) / hsp|len) | fmt('.0%') }})</td>
620 <td>{{ hsp['Hsp_query-frame']|asframe }}/{{ hsp['Hsp_hit-frame']|asframe }}</td> 619 <td>{{ hsp['Hsp_query-frame']|asframe }}/{{ hsp['Hsp_hit-frame']|asframe }}</td>
621 </tr> 620 </tr>
622 </table> 621 </table>
623 622
624 {% for alignment_line in hsp|alignment_pre %} 623 {% for alignment_line in hsp|alignment_pre %}