-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
76 lines (73 loc) · 3.5 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/ico" href="./images/favicon.ico">
<title>MCF10A | CycIF Browser</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body class="bg-light" style="background-image: url('images/background.png');">
<nav class="navbar navbar-dark bg-dark">
<div class="container" style="width: 900px">
<div class="row" style="width: 100%;">
<div class="col-6">
<a class="navbar-brand" href="#">MCF10A | CycIF Browser</a>
</div>
<div class="col-6 text-right" style="margin: auto;">
<span style="color: white; margin-right: 5px;">Select gene:</span>
<select id="gene-select" style="height: 30px;">
</select>
</div>
</div>
</div>
</nav>
<div class="container" style="background-color: white;border:1px solid #c2c2c2;-webkit-box-shadow: 10px 10px 21px -9px rgba(194,194,194,1);-moz-box-shadow: 10px 10px 21px -9px rgba(194,194,194,1);box-shadow: 10px 10px 21px -9px rgba(194,194,194,1);height: 850px;margin-bottom: 350px;">
<div class="row">
<div class="col-12 text-center" style="padding-top: 20px;">
<span id="selected-gene" style="font-size: 27pt; font-weight: 500;">ERK-1</span>
<hr width="50%" class="my-3">
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<div id="heatmapChart" style="margin-top:-50px"></div>
</div>
</div>
</div>
<footer>
<div id="js">
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/4.5.0/d3.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3-queue/3.0.3/d3-queue.js'></script>
<script src="js/circos.min.js"></script>
<script src="js/cycif-heatmap.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<script type="text/javascript">
$.getJSON("./data/genes.json", function(data) {
$.each(data, function(i, elem) {
$('#gene-select').append($('<option>').html(elem));
})
});
$('#gene-select').change(function(evt) {
var gene = $('#gene-select').val();
$('#selected-gene').html(gene);
$('#heatmapChart').empty();
d3.queue()
.defer(d3.json, './data/drugs.json')
.defer(d3.csv, './data/differential_expression/'+gene+'-differential_expression_cytosolic.txt')
.defer(d3.csv, './data/differential_expression/'+gene+'-differential_expression_cytosolic.txt')
.defer(d3.csv, './data/differential_expression/'+gene+'-differential_expression_nuclear.txt')
.await(drawCircos);
});
var gene = $('#selected-gene').html();
d3.queue()
.defer(d3.json, './data/drugs.json')
.defer(d3.csv, './data/differential_expression/'+gene+'-differential_expression_cytosolic.txt')
.defer(d3.csv, './data/differential_expression/'+gene+'-differential_expression_cytosolic.txt')
.defer(d3.csv, './data/differential_expression/'+gene+'-differential_expression_nuclear.txt')
.await(drawCircos);
</script>
</div>
</footer>
</body>
</html>