index.html 16.5 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
27
28

        <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" /> 
29
        <link id="palette" rel="stylesheet" type="text/css" href="css/light.css" /> 
30
31
32
33
        <!--[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
34
        <script type="text/javascript" src="js/lib/jquery-2.1.1.min.js"></script>
35
        <script type="text/javascript" src="js/lib/jquery.form.js"></script>
36
37
38
39
40
41
42
43
44
45
        <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>
46

47

WebTogz's avatar
WebTogz committed
48
	    <script type="text/javascript" src='js/compare.js'></script>
49
        <script type="text/javascript" src='js/menu.js'></script>
WebTogz's avatar
WebTogz committed
50
        <script type="text/javascript" src='js/dbscan.js'></script>
51
        <script type="text/javascript" src='js/germline.js'></script>
52
        <script type="text/javascript" src='js/germline_builder.js'></script>
53
        <script type="text/javascript" src='js/segmenter.js'></script>
WebTogz's avatar
WebTogz committed
54
        <script type="text/javascript" src='js/model.js'></script>
55
        <script type="text/javascript" src='js/clone.js'></script>
56
        <script type="text/javascript" src='js/list.js'></script>
57
        <script type="text/javascript" src="js/axis.js"> </script>
58
59
60
        <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>
61
        <script type="text/javascript" src='js/com.js'></script>
62
63
64
        <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>
65
        <script type="text/javascript" src='js/database.js'></script>
66
        <script type="text/javascript" src='js/conf.js'></script>
WebTogz's avatar
WebTogz committed
67
        <script type="text/javascript" src='js/stats.js'></script>
68
69
70
71

    </head>


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

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

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

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

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

94
            Analysis file:<br/>
95
96
97
98
99
            <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
100
        
101
102
103
        <!-- TOP-CONTAINER -->
        <div id="top-container">

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

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

136
137
            <div class="menu" onmouseover="showSelector('clusterSelector');" > cluster
                <div id="clusterSelector" class="selector"><div>
138
                    <a class="buttonSelector" onclick="m.resetClones();">reset all clusters</a>
139
                    <a class="buttonSelector" onclick="m.restoreClones();">user</a>
140
141
                    <a class="buttonSelector" onclick="m.clusterBy('V');">V gene + allele</a>
                    <a class="buttonSelector" onclick="m.clusterBy('J');">J gene + allele</a>
142
                    <!-- <a class="buttonSelector" onclick="m.clusterBy('cluster')">DBSCAN algorithm</a> -->
WebTogz's avatar
WebTogz committed
143

144
                    <div id="clusterby_button"> </div>
145
146
147
                </div></div>
            </div>

WebTogz's avatar
WebTogz committed
148
149
150
151
152
153
154
155
156
157
158
            <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>
159
                    <!--<a class="buttonSelector" onclick="sp.changeSplitMethod('dbscan', 'dbscan')">Graph</a>-->
WebTogz's avatar
WebTogz committed
160
161
162
163
                    <!--<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>
164
165
166
            </div>

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

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

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

201
202
203
204
205
                    <div class="menu_box">
                        size display</br>
                        <input type="radio" name="notation" value="scientific" onchange="m.notation_switch()">scientific notation</input></br>
                        <input type="radio" name="notation" value="percent" onchange="m.notation_switch()" checked>percent</input>
                    </div>
Marc Duez's avatar
Marc Duez committed
206

207
208
209
                    <div class="menu_box">
                        point key</br>
                        <input type="radio" name="time" value="name" onchange="m.time_switch()" checked>name</input></br>
210
			<!--
211
212
                        <input type="radio" name="time" value="sampling_date" onchange="m.time_switch()">sampling date</input></br>
                        <input type="radio" name="time" value="delta_date" onchange="m.time_switch()">day after first sample</input>
213
			-->
Marc Duez's avatar
Marc Duez committed
214
                    </div>
215
216

                    <div class="submenu" id="system_menu" style="display:none">
217
218
219
220
221
                        <div class="menu_box">
                            germline (for color and scatterplot)</br>
                            <ul id="germline_list">
                            </ul>
                        </div>
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
                    </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>
247
                    </div>
248

Marc Duez's avatar
Marc Duez committed
249
                </div></div>
250
251
            </div>

252
253
254
            <div id="debug_menu" class="menu" onmouseover="showSelector('adminSelector');" style="display : none"> A
                <div id="adminSelector" class="selector"><div>
                    <input type="checkbox" onclick="m.display_window = this.checked; m.update()">highlight windows</input><br>
255
256
                    <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>
257
258
259
                </div></div>
            </div>

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

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

264
            <div style="float: right" class="menu" onmouseover="showSelector('paletteSelector');"> palette 
265
                <div id="paletteSelector" class="selector"><div>
266
267
                    <a class="buttonSelector" onclick="changeStyle(solarizeD)">dark</a>
                    <a class="buttonSelector" onclick="changeStyle(solarizeL)">light</a>
268
                </div></div>
269
270
            </div>

271
            <div id="fps" style="float: right; display: none"> </div>
272
273

        </div>  
Marc Duez's avatar
Marc Duez committed
274
        <!-- fin top-container-->
275
276
277
        
        <!-- MID-CONTAINER -->
        <div id="mid-container" onmouseover="hideSelector()">
Marc Duez's avatar
Marc Duez committed
278

279
        <!-- LEFT-CONTAINER -->
280
            <div id="left-container">
281

282
                <div id="info"> </div>
283

Marc Duez's avatar
Marc Duez committed
284
                <div id="list"> </div>
285

286
            </div>
287
288
        <!-- fin left-container -->

Marc Duez's avatar
Marc Duez committed
289
290
291
            <div id="vertical-separator">
            </div>

292
        <!-- RIGHT-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
293
            <div id="right-container"></div>
294
295

        <!-- VISU-CONTAINER  -->
296
            <div id="visu-container">
Marc Duez's avatar
Marc Duez committed
297
298
299
                <div id="visu2"></div>
                <div id="visu-separator" >...</div>
                <div id="visu" onclick=""></div>
300
301
302
303
            </div>

        </div>
        <!-- fin mid-container -->
Marc Duez's avatar
Marc Duez committed
304
    
305
306

        <!-- BOT-CONTAINER / SEGMENTER-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
307
        <div id="bot-container"> </div>
308
309
310
311

        <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>
312
            <ul> </ul>
313
314
315
316
317
        </div>

        <div id="frame-container"></div>

        <div id="popup-container">
Marc Duez's avatar
Marc Duez committed
318
            <span class="closeButton" onclick="myConsole.closePopupMsg()">X</span>
319
320
321
322
            <div id="popup-msg"></div>
        </div>

        <div id="data-container">
Marc Duez's avatar
Marc Duez committed
323
            <span class="closeButton" onclick="myConsole.closeDataBox()">X</span>
324
325
326
            <div id="data-msg"></div>
        </div>

327
328
        <div id="db_div">
            <span class="closeButton" onclick="db.close()">X</span>
Marc Duez's avatar
Marc Duez committed
329
            <div id="db_msg"></div>
330
        </div>
331
332
333
        
        <div id="flash_container"></div>
        <div id="log_container"></div>
Marc Duez's avatar
Marc Duez committed
334

335
336
337
338
        <form id="form"></form>

    </body>

339
    <script type="text/javascript" src='test/dataTest.js'></script>
340
    <script type="text/javascript" src="js/main.js"> </script>
341
342
343
</html>