index.html 19.6 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>

<!-- 
  This file is part of "Vidjil" <http://bioinfo.lifl.fr/vidjil>, V(D)J repertoire browsing and analysis
  Copyright (C) 2013, 2014 by Marc Duez <marc.duez@lifl.fr> and the Vidjil Team
  Bonsai bioinformatics at LIFL (UMR CNRS 8022, Université Lille) and Inria Lille

  "Vidjil" is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  "Vidjil" is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with "Vidjil". If not, see <http://www.gnu.org/licenses/>
-->

<html>
23
24
25
    <head>
        <meta charset="utf-8">
        <title>Vidjil</title>
Marc Duez's avatar
Marc Duez committed
26

Mathieu Giraud's avatar
Mathieu Giraud committed
27
28
        <link rel="shortcut icon" href="./images/favicon-v.ico" type="image/x-icon">
        <link rel="icon" href="./images/favicon-v.ico" type="image/x-icon">
Marc Duez's avatar
Marc Duez committed
29
30
        <link rel="stylesheet" type="text/css" href="css/fonts/ubuntu/stylesheet.css" /> 
        <link rel="stylesheet" type="text/css" href="css/fonts/ubuntu-mono/stylesheet.css" /> 
31
        <link id="palette" rel="stylesheet" type="text/css" href="css/light.css" /> 
32
33
34
35
        <!--[if lte IE 8]><script src="js/r2d3.js" charset="utf-8"></script><![endif]-->
        <!--[if gte IE 9]><!-->
        <script type="text/javascript" src='js/lib/d3.v3.js'></script>
        <!--<![endif]-->
Marc's avatar
Marc committed
36
        <script type="text/javascript" src="js/lib/jquery-2.1.1.min.js"></script>
37
        <script type="text/javascript" src="js/lib/jquery.form.js"></script>
38
39
40
41
42
43
44
45
46
47
        <script type="text/javascript" src='js/lib/StackBlur.js'></script>
        <script type="text/javascript" src='js/lib/jspdf.js'></script>
        <script type="text/javascript" src='js/lib/jspdf.plugin.addimage.js'></script>
        <script type="text/javascript" src='js/lib/jspdf.plugin.svgToPdf.js'></script>
        <script type="text/javascript" src='js/lib/jspdf.plugin.split_text_to_size.js'></script>
        <script type="text/javascript" src='js/lib/jspdf.plugin.standard_fonts_metrics.js'></script>
        <script type="text/javascript" src='js/lib/underscore.js'></script>
        <script type="text/javascript" src='js/lib/rgbcolor.js'></script>
        <script type="text/javascript" src='js/lib/file.js'></script>
        <script type="text/javascript" src='js/lib/jquery.zclip.js'></script>
48

49

WebTogz's avatar
WebTogz committed
50
	    <script type="text/javascript" src='js/compare.js'></script>
51
        <script type="text/javascript" src='js/menu.js'></script>
WebTogz's avatar
WebTogz committed
52
        <script type="text/javascript" src='js/dbscan.js'></script>
53
        <script type="text/javascript" src='js/germline.js'></script>
54
        <script type="text/javascript" src='js/germline_builder.js'></script>
55
        <script type="text/javascript" src='js/segmenter.js'></script>
WebTogz's avatar
WebTogz committed
56
        <script type="text/javascript" src='js/model.js'></script>
57
        <script type="text/javascript" src='js/clone.js'></script>
58
        <script type="text/javascript" src='js/list.js'></script>
59
        <script type="text/javascript" src="js/axis.js"> </script>
60
61
62
        <script type="text/javascript" src="js/graph.js"> </script>
        <script type="text/javascript" src="js/scatterPlot.js"> </script>
        <script type="text/javascript" src='js/builder.js'></script>
63
        <script type="text/javascript" src='js/com.js'></script>
64
65
66
        <script type="text/javascript" src='js/vidjil-style.js'></script>
        <script type="text/javascript" src='js/crossDomain.js'></script>
        <script type="text/javascript" src='js/pdf.js'></script>
67
        <script type="text/javascript" src='js/database.js'></script>
68
        <script type="text/javascript" src='js/conf.js'></script>
WebTogz's avatar
WebTogz committed
69
        <script type="text/javascript" src='js/stats.js'></script>
70
        <script type="text/javascript" src='js/shortcut.js'></script>
Marc Duez's avatar
Marc Duez committed
71
        <script type="text/javascript" src='js/export.js'></script>
72
73
74
    </head>


Marc Duez's avatar
Marc Duez committed
75
    <body>
76
77
78
79
80
81
82
83
84
85
86
87
88
89

        <div id="popup-container">
            <span class="closeButton" onclick="myConsole.closePopupMsg()">X</span>
            <div id="popup-msg">
	      <noscript>
		<style type="text/css">
		  #popup-container { display:block; }
		</style>
		Your browser does not have Javascript enabled. <br />
		<a href='http://www.vidjil.org'>Vidjil</a> needs a recent browser with Javascript enabled.
	      </noscript>
	    </div>
        </div>

90
91
92
93
94
        <div id="file_menu" >
            <span class="closeButton" onclick="cancel();">X</span>

            <h2>Vidjil <span class='logo'>(beta)</span> &ndash; V(D)J repertoire browsing and analysis</h2>

95
            Data file (.vidjil):<br/>
96
            <input id="upload_json" type="file" name="json" /></br>
97
            <p class='help'>The .vidjil file stores a set of clones on several points.</p>
98
99
100

            Analysis file (.analysis, optional):<br/>
            <input id="upload_pref" type="file" name="pref" /></br>
101
            <p class='help'>The .analysis file stores all parameters set by the user (tags, colors, manual clusters).</p>
102
103

            <button onclick="document.getElementById('file_menu').style.display='none';
Marc Duez's avatar
Marc Duez committed
104
            m.load('upload_json','upload_pref', 200)">start</button> 
105
106
        </div>

107
        <div id="axis_choice" >
108
109
110
            <span class="closeButton" onclick="cancel();">X</span>
            <h2>analysis menu</h2>

111
            Analysis file:<br/>
112
113
            <input id="upload_analysis" type="file" name="analysis" /></br></br>

114
            <button onclick="document.getElementById('axis_choice').style.display='none';
115
116
                                    m.loadAnalysis('upload_analysis');">start</button> 
        </div>
Marc Duez's avatar
Marc Duez committed
117
        
118
119
120
        <!-- TOP-CONTAINER -->
        <div id="top-container">

Mathieu Giraud's avatar
Mathieu Giraud committed
121
            <div class="menu" id="db_menu" onmouseover="showSelector('dbSelector');" style="display : none">patients
122
123
                <div id="dbSelector" class="selector"><div>
                    <div class="menu_box">
Mathieu Giraud's avatar
Mathieu Giraud committed
124
125
                        <a class="buttonSelector" onclick="javascript:db.reload()">open patient</a>
                        <a class="buttonSelector" onclick="javascript:db.save_analysis()">save analysis</a>
126
127
128
129
130
131
132
133
                    </div>
                    <div class="menu_box">
                        <div id="last_loaded_file">
                        </div>
                    </div>
                </div></div>
            </div>

Mathieu Giraud's avatar
Mathieu Giraud committed
134
            <div class="menu" id="demo_file_menu" onmouseover="showSelector('demoSelector');">import/export
135
                <div id="demoSelector" class="selector"><div>
136
                    <div class="menu_box">
137
138
                        <a id="import_data_anchor" class="buttonSelector" onclick="javascript:loadData()">import data (.vidjil)</a>
                        <a id="import_data_analysis" class="buttonSelector" onclick="javascript:loadAnalysis()">import analysis</a>
139
                    </div>
140
141
                    <!--<a class="buttonSelector" onclick="javascript:m.resetAnalysis()">reset analysis</a> -->
                    <!--<a class="buttonSelector" onclick="javascript:reset()">reset all</a> -->
142
143
144
145
                    <div class="menu_box">
                      <a class="buttonSelector" onclick="javascript:report.reportHTMLdiag()">export report (sample)</a>
                      <a class="buttonSelector" onclick="javascript:report.reportHTML()">export report (monitor)</a>
                    </div>
146
                    <div class="menu_box">
Mathieu Giraud's avatar
Mathieu Giraud committed
147
                        <a class="buttonSelector" onclick="javascript:m.saveAnalysis()">export analysis</a>
148
                        <a class="buttonSelector" onclick="javascript:pdf.makeGraph()">export pdf (graph)</a>
149
                        <a class="buttonSelector" onclick="javascript:m.exportCSV()">export csv (visible clones)</a>
150
                        <a class="buttonSelector" onclick="javascript:m.exportFasta()">export fasta(selected clones)</a>
Marc Duez's avatar
Marc Duez committed
151
                    </div>
152
153
154
                    <div class="menu_box">
                        <div id="upload_list">
                        </div>
155
                    </div>
156
                </div></div>
157
158
            </div>

159
            <div class="menu" id="cluster_menu" onmouseover="showSelector('clusterSelector');" > cluster
160
                <div id="clusterSelector" class="selector"><div>
161
162
                    <a class="buttonSelector" onclick="m.resetClusters();">reset all clusters</a>
                    <a class="buttonSelector" onclick="m.restoreClusters();">user</a>
Marc Duez's avatar
Marc Duez committed
163
164
                    <a class="buttonSelector" onclick="m.clusterBy(function(id){return m.clone(id).getV()});">V gene + allele</a>
                    <a class="buttonSelector" onclick="m.clusterBy(function(id){return m.clone(id).getJ()});">J gene + allele</a>
165
                    <!-- <a class="buttonSelector" onclick="m.clusterBy('cluster')">DBSCAN algorithm</a> -->
WebTogz's avatar
WebTogz committed
166

167
                    <div id="clusterby_button"> </div>
168
169
170
                </div></div>
            </div>

171
            <div class="menu" id="analysis_menu" onmouseover="showSelector('groupSelector');"> analysis
WebTogz's avatar
WebTogz committed
172
173
174
175
176
177
178
179
180
181
                <div id="groupSelector" class="selector">
                    <div>
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('gene_v', 'gene_j');">V / J (genes)</a>
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('allele_v', 'allele_j');">V / J (alleles)</a>
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('gene_v', 'n');">V / N length</a>
                    <!--
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('gene_v', 'nSize');">V / N length + VJ deletions</a>
                    k-->
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('gene_v', 'Size')">V / abundance at selected timepoint</a>
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('gene_v', 'bar')">V distribution</a>
182
                    <!--<a class="buttonSelector" onclick="sp.changeSplitMethod('dbscan', 'dbscan')">Graph</a>-->
WebTogz's avatar
WebTogz committed
183
184
185
186
                    <!--<a class="buttonSelector" onclick="sp.changeSplitMethod('graph','graph')">Edit distance distribution</a>
                    <a class="buttonSelector" onclick="sp.changeSplitMethod('dbscan','dbscan')">DBSCAN algorithm</a>-->
                    </div>
                </div>
187
188
            </div>

189
            <div class="menu" id="color_menu" onmouseover="showSelector('colorSelector');" > color 
190
                <div id="colorSelector" class="selector"><div>
191
                    <a class="buttonSelector" onclick="m.changeColorMethod('Tag');">by tag</a>
192
193
                    <a class="buttonSelector" onclick="m.changeColorMethod('V');">by V</a>
                    <a class="buttonSelector" onclick="m.changeColorMethod('J');">by J</a>
Marc Duez's avatar
Marc Duez committed
194
                    <a class="buttonSelector" onclick="m.changeColorMethod('N');">by N length</a>
Marc Duez's avatar
Marc Duez committed
195
196
                    <a class="buttonSelector" onclick="m.changeColorMethod('system');" 
                        id="color_system_button" style="display:none">by system</a>
197
                    <a class="buttonSelector" onclick="m.changeColorMethod('abundance');">by abundance at selected timepoint</a>
198
                    <!--<a class="buttonSelector" onclick="m.changeColorMethod('dbscan');">by the DBSCAN algorithm</a>-->
199
                </div></div>
200
201
            </div>

202
            <div class="menu" id="filter_menu" onmouseover="showSelector('filterSelector');" > filter
203
204
                <div id="filterSelector" class="selector"><div>
                    <div class="menu_box">
205
                        <span id="top_label"></span></br>
206
                        <input id="top_slider" type="range" min="5" max="100" step="5" value="10" onchange="m.displayTop(this.value)" />
207
                    </div>
208
209
210
211
                    <div class="menu_box">
                        tag visibility</br>
                        <ul id="tagList">
                        </ul>
212
                    </div>
213
214
                </div></div>
            </div>
215

216
            <div class="menu" id="settings_menu" onmouseover="showSelector('settingsSelector');" > settings
217
218
                <div id="settingsSelector" class="selector"><div>
                    <div class="menu_box">
219
                        normalization</br>
220
221
                        <form name="normalize_list" id="normalize_list">
                        </form>
222
                    </div>
223

224
225
                    <div class="menu_box">
                        normalization method</br>
226
227
228
                        <div class="buttonSelector" onclick="m.changeNormMethod('constant')" ><input type="radio" name="normalize_method" value="constant" checked >constant</input></div>
                        <div class="buttonSelector" onclick="m.changeNormMethod('to-100')" ><input type="radio" name="normalize_method" value="to-100">to 100%</input></div>

229
230
                    </div>

231
232
                    <div class="menu_box">
                        size display</br>
233
234
                        <div class="buttonSelector" onclick="m.changeNotation('scientific', true)"><input type="radio" name="notation" value="scientific" >scientific notation</input></div>
                        <div class="buttonSelector" onclick="m.changeNotation('percent', true)"><input type="radio" name="notation" value="percent" checked>percent</input></div>
235
                    </div>
Marc Duez's avatar
Marc Duez committed
236

237
238
                    <div class="menu_box">
                        point key</br>
239
240
241
                        <div class="buttonSelector" onclick="m.changeTimeFormat('name', true)"><input type="radio" name="time" value="name" checked>name</input></div>
                        <div class="buttonSelector" onclick="m.changeTimeFormat('sampling_date', true)"><input type="radio" name="time" value="sampling_date" >sampling date</input></div>
                        <div class="buttonSelector" onclick="m.changeTimeFormat('delta_date', true)"><input type="radio" name="time" value="delta_date">day after first sample</input></div>
Marc Duez's avatar
Marc Duez committed
242
                    </div>
243
244

                    <div class="submenu" id="system_menu" style="display:none">
245
246
247
248
249
                        <div class="menu_box">
                            germline (for color and scatterplot)</br>
                            <ul id="germline_list">
                            </ul>
                        </div>
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
                    </div>

                    <!--menu graph/dbscan -->
                    <div class="submenu" style="display:none">

                        <div class="menu_box">
                            <div id="DBSCANEpsSlider">
                            <input id="changeEps" type="range" min="0" max="40" step="1" value="0" onchange="m.changeEps(this.value)" />
                            </div>
                        </div>

                        
                        <div class="menu_box">
                            <div id="DBSCANNbrSlider">
                            <input id="changeNbr" type="range" min="0" max="100" step="1" value="0" onchange="m.changeNbr(this.value)" />
                            </div>
                        </div>

                    
                        <div class="menu_box">
                            <div id="EditDistanceSlider">
                            </br>
                            <input id="displayMax_slider" type="range" min="1" max="20" step="1" value="10" onchange="sp.displayDistanceMax(this.value)" style="display:none"/>
                            </div>
                        </div>
275
                    </div>
276

Marc Duez's avatar
Marc Duez committed
277
                </div></div>
278
279
            </div>

280
            <div id="debug_menu" class="menu" onmouseover="showSelector('adminSelector');" style="display : none"> development              
281
282
                <div id="adminSelector" class="selector"><div>
                    <input type="checkbox" onclick="m.display_window = this.checked; m.update()">highlight windows</input><br>
283
284
                    <input type="checkbox" onclick=" this.checked ? $('#fps').css('display', '') : $('#fps').css('display', 'none');">display fps</input></br>
                    <input type="checkbox" onclick=" this.checked ? myConsole.openLog() : myConsole.closeLog() ;">log</input>
285
                    <div class="buttonSelector" onclick="m.changeTimeFormat('delta_date_no_zero', true)"><input type="radio" name="time" value="delta_date_no_zero">day after first sample (no zero)</input></div>
286
287
288
                </div></div>
            </div>

Marc Duez's avatar
Marc Duez committed
289
            <div id="logo" style="float: right;" onclick="myConsole.popupMsg(myConsole.msg.welcome)">Vidjil <span class='logo'>(beta)</span></div>
290

Mikaël Salson's avatar
Mikaël Salson committed
291
            <div class="menu" style="float: right"> <a href="help" target="_blank">help</a></div>
292

293
            <div style="float: right" class="menu" onmouseover="showSelector('paletteSelector');"> palette 
294
                <div id="paletteSelector" class="selector"><div>
295
296
                    <a class="buttonSelector" onclick="changeStyle(solarizeD)">dark</a>
                    <a class="buttonSelector" onclick="changeStyle(solarizeL)">light</a>
297
                </div></div>
298
299
            </div>

300
301
302
303
304
305
306
            <div id="upload_summary" style="float: right; display:none; margin-right: 200px;" class="menu" onmouseover="showSelector('upload_summary_selector');"> 
                <span id="upload_summary_label">upload</span>
                <div id="upload_summary_selector" class="selector"><div>

                </div></div>
            </div>

307
            <div id="fps" style="float: right; display: none"> </div>
308
309

        </div>  
Marc Duez's avatar
Marc Duez committed
310
        <!-- fin top-container-->
311
312
313
        
        <!-- MID-CONTAINER -->
        <div id="mid-container" onmouseover="hideSelector()">
Marc Duez's avatar
Marc Duez committed
314

315
        <!-- LEFT-CONTAINER -->
316
            <div id="left-container">
317
318
319
                <div id="info-row"><div id="info"> </div></div>
                <div id="list-row"><div id="list"> </div></div>
                <div id="data-row"><div id="data"> </div></div>
320
            </div>
321
322
        <!-- fin left-container -->

323
            <div id="vertical-separator"></div>
Marc Duez's avatar
Marc Duez committed
324

325
        <!-- RIGHT-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
326
            <div id="right-container"></div>
327
328

        <!-- VISU-CONTAINER  -->
329
            <div id="visu-container">
Marc Duez's avatar
Marc Duez committed
330
331
332
                <div id="visu2"></div>
                <div id="visu-separator" >...</div>
                <div id="visu" onclick=""></div>
333
334
335
336
            </div>

        </div>
        <!-- fin mid-container -->
Marc Duez's avatar
Marc Duez committed
337
    
338
339

        <!-- BOT-CONTAINER / SEGMENTER-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
340
        <div id="bot-container"> </div>
341
342
343
344

        <div id="tagSelector">
            <span class="closeButton" onclick="$('#tagSelector').hide('fast')">X</span>
            <div>   tag for <span id=tag_name></span><span id=tag_id></span></div>
345
            <ul> </ul>
346
347
        </div>

Marc Duez's avatar
Marc Duez committed
348
349
        <div id="dataMenu">
            <span class="closeButton" onclick="$('#dataMenu').hide('fast')">X</span>
350
            <div> data:  <span id=data_name></span></div>
Marc Duez's avatar
Marc Duez committed
351
            <div>
352
                <span>normalize to: </span>
Marc Duez's avatar
Marc Duez committed
353
354
355
356
357
                <span><input type="number" step="0.0001" id="normalized_data"></span>
                <button id="normalized_data_button">ok</button>
            </div>
        </div>

358
359
360
        <div id="frame-container"></div>

        <div id="data-container">
Marc Duez's avatar
Marc Duez committed
361
            <span class="closeButton" onclick="myConsole.closeDataBox()">X</span>
362
363
364
            <div id="data-msg"></div>
        </div>

365
366
        <div id="db_div">
            <span class="closeButton" onclick="db.close()">X</span>
Marc Duez's avatar
Marc Duez committed
367
            <div id="db_msg"></div>
368
        </div>
369
370
371
        
        <div id="flash_container"></div>
        <div id="log_container"></div>
372
        <form id="form"></form>
373
        <div id="waiting_screen"> <div id="waiting_mes"></div></div>
374
375
376

    </body>

377
    <script type="text/javascript" src='test/dataTest.js'></script>
378
    <script type="text/javascript" src="js/main.js"> </script>
379
380
381
</html>