blast_report_alignment_row.tpl.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * This Template generates the HTML for a single Alignment row in a BLAST report
  4. */
  5. ?>
  6. <div class="title">Alignment</div>
  7. <?php
  8. foreach($HSPs as $hsp) {
  9. ?>
  10. <div class="hsp-title">HSP <?php print $hsp['Hsp_num']?></div>
  11. <div class="alignment-metrics">
  12. <span class="identity">
  13. Identity=&nbsp;
  14. <?php print $hsp['Hsp_identity']; ?>/<?php print $hsp['Hsp_align-len']; ?> (<?php print $hsp['Hsp_identity']/$hsp['Hsp_align-len']*100;?>%)
  15. </span>,&nbsp;
  16. <span class="positive">
  17. Positive=&nbsp;
  18. <?php print $hsp['Hsp_positive']; ?>/<?php print $hsp['Hsp_align-len']; ?> (<?php print $hsp['Hsp_positive']/$hsp['Hsp_align-len']*100;?>%)
  19. </span>
  20. </div>
  21. <div class="alignment">
  22. <div class="alignment-row">
  23. <div class="query">
  24. <span class="alignment-title">Query:</span>&nbsp;&nbsp;&nbsp;
  25. <span class="alignment-residues"><?php print $hsp['Hsp_qseq']; ?></span>
  26. </div>
  27. <div class="matches">
  28. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  29. <span class="alignment-residues"><?php print $hsp['Hsp_midline']; ?></span>
  30. </div>
  31. <div class="subject">
  32. <span class="alignment-title">Subject:</span>&nbsp;
  33. <span class="alignment-residues"><?php print $hsp['Hsp_hseq']; ?></span>
  34. </div>
  35. </div>
  36. </div>
  37. <?php
  38. }
  39. ?>