-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.html
executable file
·257 lines (225 loc) · 9.79 KB
/
app.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<!-- http://t.co/dKP3o1e -->
<meta http-equiv="X-UA-Compatibile" content="IE-edge, chrome=1/">
<!-- Title -->
<title>Metabarcoding Dashboard</title>
<!-- Loading dependencies -->
<script src="./assets/jquery.js"></script>
<script src="./assets/bootstrap.min.js"></script>
<script src="./assets/d3.v3.min.js"></script>
<script src="lib/utils/colorbrewer.min.js"></script>
<script src="./lib/core/taxonBar.js"></script>
<script src="./lib/core/donutChart.js"></script>
<script src="./lib/core/taxonomyBar.js"></script>
<script src="lib/core/treeViewD3.js"></script>
<!-- Loading stylesheet -->
<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/dashboard.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<!--a id="return-to-top"><i class="icon-chevron-up"></i></a-->
<!-- header -->
<!-- header -->
<header class="navbar navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Metabarcode Viewer</a>
</div>
</div>
<!-- navbar -->
<nav class="nav navbar-collapse" role="navigation">
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><i class="fa fa-question-circle"></i>Home</a></li>
<li><a href="#"><i class="fa fa-question-circle"></i>App</a></li>
</ul>
</nav>
<!-- end of nav-->
</header>
<!-- end of header-->
<!-- footer -->
<footer class="footer">
<div class="container">
<p>Developed By :
<span><a href="http://www.nrm.se/en/forskningochsamlingar/bioinformatikochgenetik.9000580.html" target="_blank">NHM, Sweden</a></span> And
<span><a href="http://big4-project.eu/" target="_blank">Big4 Project</a></span>
<span style="float:right"> Project Funded By: <b>European Union </b><!--img id="footer-logo" height="30" width="40" src="data/images/logoeu.gif"/--></span>
</p>
</div>
</footer>
<!-- end of footer-->
<div class="container-fluid">
<!-- data load container -->
<div id="loadData" class="row">
<div style="font-size: 30px; margin-top:50px; margin-bottom:50px; font-family: 'Muli', Arial, sans-serif">
<center>METABARCODING DATA VISUALIZATION</center>
</div>
<div class="col-md-12 col-sm-12">
<div class="col-md-4 col-sm-6">
<!--div style="font-size: 20px;">
<center>Select Type </center>
</div-->
<div class="caption">
<button class="btn btn-raised btn-block btn-responsive btn-border" onclick="loadData()">Upload File</button>
<br>
<button class="btn btn-raised btn-block btn-responsive btn-border" onclick="pasteUrl()">Paste Url</button>
<br>
<button class="btn btn-raised btn-block btn-responsive btn-border" onclick="tryExample()">Try Example</button>
</div>
</div>
<div class="col-md-6 col-sm-6">
<!--div style="font-size: 20px;">
<center>Select Data </center>
</div-->
<div id="loadFile">
<div class="caption">
<label class="btn btn-block btn-raised btn-responsive btn-border"><i class="fa fa-upload" aria-hidden="true"></i>
<input type="file" id="upload_file" style="display: none;"><span id="treefile"> Choose a file
</span></label>
<br>
<button id="submit_file" class="btn btn-block btn-raised btn-responsive btn-border">Submit</button>
</div>
</div>
<!-- end of load file-->
<div id="pasteUrl">
<div class="caption">
<input type="text" id="treeData" class="btn btn-block btn-raised btn-responsive btn-border" placeholder="Add a csv data url">
<br>
<button class="btn btn-block btn-raised btn-responsive btn-border">Submit</button>
</div>
</div>
<!-- end of load url-->
<div id="exampleData">
<div class="caption">
<button class="btn btn-block btn-raised btn-responsive btn-border" onClick="location.href='data/metagenomics_taxonomy.csv'">
Download Example <i class="fa fa-download" aria-hidden="true"></i> </button>
<br>
<button id="submit_file" class="btn btn-block btn-raised btn-responsive btn-border" onclick="loadExample()">Load Example Data</button>
</div>
</div>
<!-- end of load example-->
</div>
</div>
</div>
<div id="showViz" class="row">
<!--div class="row">
<div class="col-md-12">
<div class="chart-wrapper">
<div class="chart-title">Overall Taxon-wise Abundance
<button type="btn btn-raised" id="overallAbundance" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="pieTaxon" class="chart-area"></div>
</div>
</div>
</div-->
<!--div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">Phylum</div>
<div id="phylumDonut" class="chart-area"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">Phylum
<button type="btn btn-raised" id="savephylumStack" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="phylumStack" class="chart-area"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">Class </div>
<div id="classDonut" class="chart-area"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">Class
<button type="btn btn-raised" id="saveclassStack" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="classStack" class="chart-area"></div>
</div>
</div-->
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">Order</div>
<div id="orderDonut" class="chart-area"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">Order
<button type="btn btn-raised" id="saveorderStack" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="orderStack" class="chart-area"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">Family</div>
<div id="familyDonut" class="chart-area"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">Family
<button type="btn btn-raised" id="saveorderStack" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="familyStack" class="chart-area"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">Genus</div>
<div id="genusDonut" class="chart-area"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">Genus
<button type="btn btn-raised" id="savegenusStack" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="genusStack" class="chart-area"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-4">
<div class="chart-wrapper">
<div class="chart-title">Species</div>
<div id="speciesDonut" class="chart-area"></div>
</div>
</div>
<div class="col-lg-8 col-md-8 col-sm-8">
<div class="chart-wrapper">
<div class="chart-title">Species
<button type="btn icon-btn" id="savespeciesStack" class="btn icon-btn btn-raised btn-responsive pull-right"><b>save</b> <span class="icon-download icon-large"></span></button>
</div>
<div id="speciesStack" class="chart-area"></div>
</div>
</div>
</div>
</div>
</div>
<!--script src="./lib/core/init_taxonBar.js"></script-->
<script src="assets/app.js"></script>
<script src="lib/core/pieChart.js"></script>
</div>
</body>