index.html 18.3 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>
71
72
73
    </head>


Marc Duez's avatar
Marc Duez committed
74
    <body>
75
76
77
78
79
        <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>

80
            Data file (.vidjil):<br/>
81
            <input id="upload_json" type="file" name="json" /></br>
82
            <p class='help'>The .vidjil file stores a set of clones on several points.</p>
83
84
85

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

            <button onclick="document.getElementById('file_menu').style.display='none';
Marc Duez's avatar
Marc Duez committed
89
            m.load('upload_json','upload_pref', 200)">start</button> 
90
91
92
93
94
95
        </div>

        <div id="analysis_menu" >
            <span class="closeButton" onclick="cancel();">X</span>
            <h2>analysis menu</h2>

96
            Analysis file:<br/>
97
98
99
100
101
            <input id="upload_analysis" type="file" name="analysis" /></br></br>

            <button onclick="document.getElementById('analysis_menu').style.display='none';
                                    m.loadAnalysis('upload_analysis');">start</button> 
        </div>
Marc Duez's avatar
Marc Duez committed
102
        
103
104
105
        <!-- TOP-CONTAINER -->
        <div id="top-container">

Mathieu Giraud's avatar
Mathieu Giraud committed
106
            <div class="menu" id="db_menu" onmouseover="showSelector('dbSelector');" style="display : none">patients
107
108
                <div id="dbSelector" class="selector"><div>
                    <div class="menu_box">
Mathieu Giraud's avatar
Mathieu Giraud committed
109
110
                        <a class="buttonSelector" onclick="javascript:db.reload()">open patient</a>
                        <a class="buttonSelector" onclick="javascript:db.save_analysis()">save analysis</a>
111
112
113
114
115
116
117
118
                    </div>
                    <div class="menu_box">
                        <div id="last_loaded_file">
                        </div>
                    </div>
                </div></div>
            </div>

Mathieu Giraud's avatar
Mathieu Giraud committed
119
            <div class="menu" id="demo_file_menu" onmouseover="showSelector('demoSelector');">import/export
120
                <div id="demoSelector" class="selector"><div>
121
                    <div class="menu_box">
122
                        <a class="buttonSelector" onclick="javascript:loadData()">import data (.vidjil)</a>
Mathieu Giraud's avatar
Mathieu Giraud committed
123
                        <a class="buttonSelector" onclick="javascript:loadAnalysis()">import analysis</a>
124
                    </div>
125
126
                    <!--<a class="buttonSelector" onclick="javascript:m.resetAnalysis()">reset analysis</a> -->
                    <!--<a class="buttonSelector" onclick="javascript:reset()">reset all</a> -->
127
                    <div class="menu_box">
Mathieu Giraud's avatar
Mathieu Giraud committed
128
129
                        <a class="buttonSelector" onclick="javascript:m.saveAnalysis()">export analysis</a>
                        <a class="buttonSelector" onclick="javascript:pdf.make()">export pdf (graph + selected clones)</a>
130
                        <a class="buttonSelector" onclick="javascript:pdf.makeGraph()">export pdf (graph)</a>
131
132
133
134
                    </div>
                    <div class="menu_box">
                        <div id="upload_list">
                        </div>
135
                    </div>
136
                </div></div>
137
138
            </div>

139
140
            <div class="menu" onmouseover="showSelector('clusterSelector');" > cluster
                <div id="clusterSelector" class="selector"><div>
141
142
                    <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
143
144
                    <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>
145
                    <!-- <a class="buttonSelector" onclick="m.clusterBy('cluster')">DBSCAN algorithm</a> -->
WebTogz's avatar
WebTogz committed
146

147
                    <div id="clusterby_button"> </div>
148
149
150
                </div></div>
            </div>

WebTogz's avatar
WebTogz committed
151
152
153
154
155
156
157
158
159
160
161
            <div class="menu" onmouseover="showSelector('groupSelector');"> analysis
                <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>
162
                    <!--<a class="buttonSelector" onclick="sp.changeSplitMethod('dbscan', 'dbscan')">Graph</a>-->
WebTogz's avatar
WebTogz committed
163
164
165
166
                    <!--<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>
167
168
169
            </div>

            <div class="menu" onmouseover="showSelector('colorSelector');" > color 
170
                <div id="colorSelector" class="selector"><div>
171
                    <a class="buttonSelector" onclick="m.changeColorMethod('Tag');">by tag</a>
172
173
                    <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
174
                    <a class="buttonSelector" onclick="m.changeColorMethod('N');">by N length</a>
Marc Duez's avatar
Marc Duez committed
175
176
                    <a class="buttonSelector" onclick="m.changeColorMethod('system');" 
                        id="color_system_button" style="display:none">by system</a>
177
                    <a class="buttonSelector" onclick="m.changeColorMethod('abundance');">by abundance at selected timepoint</a>
178
                    <!--<a class="buttonSelector" onclick="m.changeColorMethod('dbscan');">by the DBSCAN algorithm</a>-->
179
                </div></div>
180
181
            </div>

182
            <div class="menu" id="filter_menu" onmouseover="showSelector('filterSelector');" > filter
183
184
                <div id="filterSelector" class="selector"><div>
                    <div class="menu_box">
185
                        <span id="top_label"></span></br>
186
                        <input id="top_slider" type="range" min="5" max="100" step="5" value="10" onchange="m.displayTop(this.value)" />
187
                    </div>
188
189
190
191
                    <div class="menu_box">
                        tag visibility</br>
                        <ul id="tagList">
                        </ul>
192
                    </div>
193
194
                </div></div>
            </div>
195

196
            <div class="menu" id="settings_menu" onmouseover="showSelector('settingsSelector');" > settings
197
198
                <div id="settingsSelector" class="selector"><div>
                    <div class="menu_box">
199
                        normalization</br>
200
201
                        <form name="normalize_list" id="normalize_list">
                        </form>
202
                    </div>
203

204
205
                    <div class="menu_box">
                        normalization method</br>
206
207
                        <div class="buttonSelector" onclick="m.changeNormMethod('quantitative')" ><input type="radio" name="normalize_method" value="quantitative" checked>quantitative</input></div>
                        <div class="buttonSelector" onclick="m.changeNormMethod('rescale')" ><input type="radio" name="normalize_method" value="rescale" >rescale</input></div>
208
209
                    </div>

210
211
                    <div class="menu_box">
                        size display</br>
212
213
                        <div class="buttonSelector" onclick="m.changeNotation('scientific')"><input type="radio" name="notation" value="scientific" >scientific notation</input></div>
                        <div class="buttonSelector" onclick="m.changeNotation('percent')"><input type="radio" name="notation" value="percent" checked>percent</input></div>
214
                    </div>
Marc Duez's avatar
Marc Duez committed
215

216
217
                    <div class="menu_box">
                        point key</br>
218
219
220
                        <div class="buttonSelector" onclick="m.changeTimeFormat('name')"><input type="radio" name="time" value="name"  checked>name</input></div>
                        <div class="buttonSelector" onclick="m.changeTimeFormat('sampling_date')"><input type="radio" name="time" value="sampling_date" >sampling date</input></div>
                        <div class="buttonSelector" onclick="m.changeTimeFormat('delta_date')"><input type="radio" name="time" value="delta_date" >day after first sample</input></div>
Marc Duez's avatar
Marc Duez committed
221
                    </div>
222
223

                    <div class="submenu" id="system_menu" style="display:none">
224
225
226
227
228
                        <div class="menu_box">
                            germline (for color and scatterplot)</br>
                            <ul id="germline_list">
                            </ul>
                        </div>
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
                    </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>
254
                    </div>
255

Marc Duez's avatar
Marc Duez committed
256
                </div></div>
257
258
            </div>

259
            <div id="debug_menu" class="menu" onmouseover="showSelector('adminSelector');" style="display : none"> development
260
261
                <div id="adminSelector" class="selector"><div>
                    <input type="checkbox" onclick="m.display_window = this.checked; m.update()">highlight windows</input><br>
262
263
                    <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>
264
                    <a class="buttonSelector" onclick="db.call('default/user/register')">register new user</a>
265
266
267
                </div></div>
            </div>

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

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

272
            <div style="float: right" class="menu" onmouseover="showSelector('paletteSelector');"> palette 
273
                <div id="paletteSelector" class="selector"><div>
274
275
                    <a class="buttonSelector" onclick="changeStyle(solarizeD)">dark</a>
                    <a class="buttonSelector" onclick="changeStyle(solarizeL)">light</a>
276
                </div></div>
277
278
            </div>

279
            <div id="fps" style="float: right; display: none"> </div>
280
281

        </div>  
Marc Duez's avatar
Marc Duez committed
282
        <!-- fin top-container-->
283
284
285
        
        <!-- MID-CONTAINER -->
        <div id="mid-container" onmouseover="hideSelector()">
Marc Duez's avatar
Marc Duez committed
286

287
        <!-- LEFT-CONTAINER -->
288
            <div id="left-container">
289
290
291
                <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>
292
            </div>
293
294
        <!-- fin left-container -->

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

297
        <!-- RIGHT-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
298
            <div id="right-container"></div>
299
300

        <!-- VISU-CONTAINER  -->
301
            <div id="visu-container">
Marc Duez's avatar
Marc Duez committed
302
303
304
                <div id="visu2"></div>
                <div id="visu-separator" >...</div>
                <div id="visu" onclick=""></div>
305
306
307
308
            </div>

        </div>
        <!-- fin mid-container -->
Marc Duez's avatar
Marc Duez committed
309
    
310
311

        <!-- BOT-CONTAINER / SEGMENTER-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
312
        <div id="bot-container"> </div>
313
314
315
316

        <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>
317
            <ul> </ul>
318
319
        </div>

Marc Duez's avatar
Marc Duez committed
320
321
322
323
324
325
326
327
328
329
        <div id="dataMenu">
            <span class="closeButton" onclick="$('#dataMenu').hide('fast')">X</span>
            <div> data :  <span id=data_name></span></div>
            <div>
                <span>expected size : </span>
                <span><input type="number" step="0.0001" id="normalized_data"></span>
                <button id="normalized_data_button">ok</button>
            </div>
        </div>

330
331
332
        <div id="frame-container"></div>

        <div id="popup-container">
Marc Duez's avatar
Marc Duez committed
333
            <span class="closeButton" onclick="myConsole.closePopupMsg()">X</span>
334
335
336
337
            <div id="popup-msg"></div>
        </div>

        <div id="data-container">
Marc Duez's avatar
Marc Duez committed
338
            <span class="closeButton" onclick="myConsole.closeDataBox()">X</span>
339
340
341
            <div id="data-msg"></div>
        </div>

342
343
        <div id="db_div">
            <span class="closeButton" onclick="db.close()">X</span>
Marc Duez's avatar
Marc Duez committed
344
            <div id="db_msg"></div>
345
        </div>
346
347
348
        
        <div id="flash_container"></div>
        <div id="log_container"></div>
Marc Duez's avatar
Marc Duez committed
349

350
351
352
353
        <form id="form"></form>

    </body>

354
    <script type="text/javascript" src='test/dataTest.js'></script>
355
    <script type="text/javascript" src="js/main.js"> </script>
356
357
358
</html>