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
|
{% extends "index_page.html" %}
{% block title %}Pair Scan{% endblock %}
{% block css %}
<link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='DataTables/css/jquery.dataTables.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='d3-tip/d3-tip.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='d3panels/d3panels.min.css') }} " />
<link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" />
<link rel="stylesheet" type="text/css" href="/static/new/css/pair_scan.css" />
{% endblock %}
{% block content %} <!-- Start of body -->
{{ header("Mapping",
'{}: {}'.format(this_trait.name, this_trait.description_fmt)) }}
<div id="main_div" class="container">
<div>
<h2>
Pair Scan
</h2>
</div>
<div class="qtlcharts" id="chart_container">
<div id="pairscan_chart"></div>
</div>
<div class="pairscan-container">
<h2>
Results
</h2>
<table cellpadding="0" cellspacing="0" border="0" id="pair_scan_results" class="table table-hover table-striped table-bordered">
<thead>
<tr>
<th colspan="3">Interval 1</th>
<th rowspan="3">LOD</th>
<th colspan="3">Interval 2</th>
</tr>
<tr>
<th rowspan="2">Position</th>
<th colspan="2">Flanking Markers</th>
<th rowspan="2">Position</th>
<th colspan="2">Flanking Markers</th>
</tr>
<tr>
<th>Proximal</th>
<th>Distal</th>
<th>Proximal</th>
<th>Distal</th>
</tr>
</thead>
<tbody>
{% for row in table_data %}
<tr>
<td>{{ row.pos1 }}</td>
<td>{{ row.proximal1 }}</td>
<td>{{ row.distal1 }}</td>
<td>{{ row.lod }}</td>
<td>{{ row.pos2 }}</td>
<td>{{ row.proximal2 }}</td>
<td>{{ row.distal2 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
{% block js %}
<script>
var figure_data = {{ figure_data | safe }}
</script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='d3js-7/d3.v7.9.0.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/plugins/sorting/scientific.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='d3panels/d3panels.min.js') }}"></script>
<script type="text/javascript">
var data, mychart;
mychart = d3panels.lod2dheatmap({
equalCells: true
});
mychart(d3.select('div#pairscan_chart'), figure_data);
table_conf = {
"columns":[
{ "width": "165px" },
{ "width": "130px" },
{ "width": "130px" },
{ "width": "50px" },
{ "width": "165px" },
{ "width": "130px" },
{ "width": "130px" },
],
"sDom": "itir",
"autoWidth": false,
"bSortClasses": false,
"order": [[3, "desc" ]],
"scrollY": "100vh",
"scroller": true,
"scrollCollapse": true
}
trait_table = $('#pair_scan_results').DataTable(table_conf);
</script>
{% endblock %}
|