-
Notifications
You must be signed in to change notification settings - Fork 0
/
block_template.html
124 lines (122 loc) · 4.78 KB
/
block_template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<html lang="en">
<head>
<base target="_parent"/>
<link rel="stylesheet" media="all" href="/site_media/resources/bootstrap/css/bootstrap.min.css">
<link href="/site_media/resources/kendo/styles/kendo.common.min.css" rel="stylesheet">
<link href="/site_media/resources/less/kendo.tb.min.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="/site_media/resources/styles/tb-styles.min.css">
<script type="text/javascript" src="/site_media/jquery/js/jquery-1.7.2.min.js"></script>
<style type="text/css">
p, ul{font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;}
.zebra { background-color: #E1EFFA;}
.table_hover {color: #009;background-color: #6DBCEE;}
.k-grid td {text-align: center;}
.green {color:#39B54A;}
.orange {color:#F7941D;}
.red {color:#ED1C24;}
</style>
</head>
<body style="background:white">
<script>
$( document ).ready(function() {
$('.zscore').each(function() {
var zscore =parseFloat($(this).text()) ;
console.debug(zscore);
if (zscore < -1.96)
$(this).addClass('green');
if (zscore >= -1.96 && zscore <= 0)
$(this).addClass('orange');
if (zscore > 0)
$(this).addClass('red');
});
});
</script>
<table>
<tr>
<td>Reference genome :</td>
<td>hg19</td>
</tr>
<tr>
<td>Coverage threshold:</td>
<td>5000</td>
</tr>
<tr>
<td>Minimum allelic ratio:</td>
<td>0.005</td>
</tr>
</table>
<div class="k-widget k-grid">
<table class="table-striped">
<thead class="k-grid-header">
<tr>
<th><span class="help" title="Barcode name">Barcode Name</span></th>
<th><span class="help" title="Sample name">Sample Name</span></th>
<th><span class="help" title="Download links">Download Links</span></th>
</tr>
</thead>
{% for i in files %}
<tr>
<td style="text-align:left">{{i.barcode}}</td>
<td>{{i.sample}}</td>
<td style="text-align:center"><a class="btn btn-primary " href="{{ i.excel }}">DOWNLOAD XLSX</a></td>
</tr>
{% endfor %}
</table>
</div>
<br></br>
<div class="k-widget k-grid">
<table class="table-striped">
<thead class="k-grid-header">
<tr>
<th><span class="help" title="Gene name">Gene Name</span></th>
<th><span class="help" title="Chromosome">Chrom</span></th>
<th><span class="help" title="Position">Position</span></th>
<th><span class="help" title="Reference ">Reference base</span></th>
{% for i in files %}
<th><span class="help" title="Sample">{{i.sample}}</span></th>
{% endfor %}
</tr>
</thead>
<tbody>
<!-- Create lines for uniq position -->
{% for chr, values in summary_nucl.items %}
{% for pos, values2 in values.items %}
<tr>
<td>{{values2.0}}</td>
<td>{{chr}}</td>
<td>{{pos}}</td>
{%for i in values2|slice:"1:"%}
<td class="zscore">{{i}}</td>
{% endfor %}
</tr>
{% endfor %}
{% endfor %}
<!-- Create lines for deletions -->
{% for chr, values in summary_indels.items %}
{% for pos, values2 in values.items %}
<tr>
<td>{{values2.0}}</td>
<td>{{chr}}</td>
<td>{{pos}}</td>
{%for i in values2|slice:"1:"%}
<td>{{i}}</td>
{% endfor %}
</tr>
{% endfor %}
{% endfor %}
</tbody>
<tfoot class="k-grid-header">
<tr>
<td></td>
<td></td>
<td></td>
<th>Min. cov. obs. (reads) <font size="5pt"> → </font></th>
{% for cov in summary_cov %}
<th>{{cov}}</th>
{% endfor %}
</tr>
</tfoot>
</table>
</div>
</body>
</html>