Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / mason / tools / motifs_finder / motif_output.mas
blob44ae85e7cef8e116e93c9b9e5afe842320ac71ce
1 <%args>
2 $parameters => ""
3 $res => ""
4 $outfile => ""
5 $weblogo_output => ""
6 @logo => ""
7 @logoID => ""
8 $tfile => ""
9 @logowidth => ""
10 @motif_tab => ""
11 @freq_tab => ""
12 @prob_tab => ""
13 @BGPM_tab => ""
14 @sum_indv_tab => ""
15 $sum => ""
16 </%args>
18 <center>
20         <%perl>
22                 for (my $i = 0; $i < scalar(@logo); $i++){
23                         #print "my index = $i <br\>";
24                         print "<div class='well' style=\"width:90%\">";
25                         #print "<b>Motif Sequence logo $logoID[$i], for Length $logowidth[$i]</b>\n <br/>";
26                         print "<b>Motif Sequence logo $logoID[$i]</b>\n <br/>";
27                         #print "<img src= \"/export/prod/tmp/motifs_finder/$logo[$i]\"><br/><br/><br/>";
28                         print "<img src= \"/static/documents/tempfiles/motifs_finder/$logo[$i]\" ><br/><br/><br/>";
29                         print "<b>Motif Table </b><br/>$motif_tab[$i]\n <br/><br/>" ;
30                         print "<b>Motif Model (residue frequence x 100)</b><br\>$freq_tab[$i]\n <br\> ";
31                         print "<b>Motif Probabilty Model </b><br\>$prob_tab[$i]\n <br/>" ;
32                         print "<b>Background Probabilty Model </b> <br\>$BGPM_tab[$i]\n <br/>" ;
33                         print "<b>Motif $logoID[$i] Log MAP Value</b><br\>$sum_indv_tab[$i]\n <br/>" ;
34                         print "</div>";
35                 }
37         </%perl>
39         <hr style="\&quot;color:" #006699;="" margin:="" 50px="" 20px;="" \"="">
40         <h ><b>Motif Finder Result Summary</h></b><br/><br/><%  $sum %> <br/><br/><br/>
42 </center>
44 <style>
46         p.f1 {
47         font: 15px courier, sans-serif;
48         }
50 </style>
52 <center>
53         <form action="/result", method="POST" >
55                 <input name="file_name" value="<% $outfile %>" style="display:none;">
56                 <input name="output_file" value="<% $res %>" style="display:none;">
57                 <button class="btn btn-primary"  id="button"  value="Download Result">Download Result</button>
58         </form>
60                 <p><br/>
61                 <a href="#top"  >Back to top</a> &nbsp &nbsp <!--<a href="javascript:javascript:history.go(-1)">Back to previous page</a> --> &nbsp &nbsp
62                 <a id="back_to_input" href="/tools/motifs_finder">Go back to input page</a>
63                 </p>
64 </center>