Mercurial > repos > jankanis > blast2html
comparison blast2html.html.jinja @ 95:4378d11f0ed7
implement configurable gene bank links
author | Jan Kanis <jan.code@jankanis.nl> |
---|---|
date | Mon, 30 Jun 2014 16:49:45 +0200 |
parents | 7d0d46168fd5 |
children | 02b795b784e1 |
comparison
equal
deleted
inserted
replaced
94:df9fd5f35967 | 95:4378d11f0ed7 |
---|---|
530 <td>{{hit.maxscore}}</td> | 530 <td>{{hit.maxscore}}</td> |
531 <td>{{hit.totalscore}}</td> | 531 <td>{{hit.totalscore}}</td> |
532 <td>{{hit.cover}}</td> | 532 <td>{{hit.cover}}</td> |
533 <td>{{hit.e_value}}</td> | 533 <td>{{hit.e_value}}</td> |
534 <td>{{hit.ident}}</td> | 534 <td>{{hit.ident}}</td> |
535 <td><a href="{{genelink(hit.hit|hitid)}}">{{hit.accession}}</a></td> | 535 <td>{{hit.hit|genelink(hit.hit.Hit_accession)}}</td> |
536 </tr> | 536 </tr> |
537 {% endfor %} | 537 {% endfor %} |
538 </table> | 538 </table> |
539 | 539 |
540 </div></div> | 540 </div></div> |
549 {% for hit in hits %} | 549 {% for hit in hits %} |
550 <div class=alignment id=hit{{hit|nodeid}}> | 550 <div class=alignment id=hit{{hit|nodeid}}> |
551 | 551 |
552 <div class=linkheader> | 552 <div class=linkheader> |
553 <div class=right><a href="#description{{hit|nodeid}}">Descriptions</a></div> | 553 <div class=right><a href="#description{{hit|nodeid}}">Descriptions</a></div> |
554 <a class=linkheader href="{{genelink(hit|hitid)}}">GenBank</a> | 554 {{ hit|genelink('Gene Bank', clas='linkheader', display_nolink=False) }} |
555 <a class=linkheader href="{{genelink(hit|hitid, 'graph')}}">Graphics</a> | |
556 </div> | 555 </div> |
557 | 556 |
558 <div class=title> | 557 <div class=title> |
559 <p class=hittitle>{{hit|firsttitle}}</p> | 558 <p class=hittitle>{{hit|firsttitle}}</p> |
560 <p class=titleinfo> | 559 <p class=titleinfo> |
561 <span class=b>Sequence ID:</span> <a href="{{genelink(hit|hitid)}}">{{hit|seqid}}</a> | 560 <span class=b>Sequence ID:</span> {{ hit|genelink }} |
562 <span class=b>Length:</span> {{hit.Hit_len}} | 561 <span class=b>Length:</span> {{hit.Hit_len}} |
563 <span class=b>Number of Matches:</span> {{hit.Hit_hsps.Hsp|length}} | 562 <span class=b>Number of Matches:</span> {{hit.Hit_hsps.Hsp|length}} |
564 </p> | 563 </p> |
565 </div> | 564 </div> |
566 | 565 |
572 <div class=moretitles id=moretitles{{hit|nodeid}} style="display: none"> | 571 <div class=moretitles id=moretitles{{hit|nodeid}} style="display: none"> |
573 {% for title in hit|othertitles %} | 572 {% for title in hit|othertitles %} |
574 <div class=title> | 573 <div class=title> |
575 <p class=hittitle>{{title.title}}</p> | 574 <p class=hittitle>{{title.title}}</p> |
576 <p class=titleinfo> | 575 <p class=titleinfo> |
577 <span class=b>Sequence ID:</span> <a href="{{genelink(title.hitid)}}">{{title.id}}</a> | 576 <span class=b>Sequence ID:</span> {{ title|genelink }} |
578 </p> | 577 </p> |
579 </div> | 578 </div> |
580 {% endfor %} | 579 {% endfor %} |
581 </div> | 580 </div> |
582 {% endif %} | 581 {% endif %} |
583 | 582 |
584 {% for hsp in hit.Hit_hsps.Hsp %} | 583 {% for hsp in hit.Hit_hsps.Hsp %} |
585 <div class=hotspot id=hotspot{{hsp|nodeid}}> | 584 <div class=hotspot id=hotspot{{hsp|nodeid}}> |
586 <p class=range> | 585 <p class=range> |
587 <span class=range>Range {{hsp.Hsp_num}}: {{hsp['Hsp_hit-from']}} to {{hsp['Hsp_hit-to']}}</span> | 586 <span class=range>Range {{hsp.Hsp_num}}: {{hsp['Hsp_hit-from']}} to {{hsp['Hsp_hit-to']}}</span> |
588 <a class=range href="{{genelink(hit|hitid, 'genbank', hsp)}}">GenBank</a> | |
589 <a class=range href="{{genelink(hit|hitid, 'graph', hsp)}}">Graphics</a> | |
590 </p> | 587 </p> |
591 | 588 |
592 <table class=hotspotstable> | 589 <table class=hotspotstable> |
593 <tr> | 590 <tr> |
594 <th>Score</th><th>Expect</th><th>Identities</th><th>Gaps</th><th>Strand</th> | 591 <th>Score</th><th>Expect</th><th>Identities</th><th>Gaps</th><th>Strand</th> |