index.html 15.8 KB
Newer Older
1
2
3
<!doctype html>

<!-- 
4
  This file is part of "Vidjil" <http://bioinfo.lille.inria.fr/vidjil>, V(D)J repertoire browsing and analysis
5
  Copyright (C) 2013, 2014 by Marc Duez <marc.duez@lifl.fr> and the Vidjil Team
6
  Bonsai bioinformatics at CRIStAL (UMR CNRS 9189, Université Lille) and Inria Lille
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

  "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

        <script data-main="js/app.js" src="js/lib/require.js"></script>

35
36
37
    </head>


Marc Duez's avatar
Marc Duez committed
38
    <body>
39
40
41
42
43
44
45
46
47
48
49
50
51
52

        <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>

53
54
55
56
57
        <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>

58
            Data file (.vidjil):<br/>
59
            <input id="upload_json" type="file" name="json" /></br>
60
            <p class='help'>The .vidjil file stores a set of clones on several points.</p>
61
62
63

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

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

70
        <div id="axis_choice" >
71
72
73
            <span class="closeButton" onclick="cancel();">X</span>
            <h2>analysis menu</h2>

74
            Analysis file:<br/>
75
76
            <input id="upload_analysis" type="file" name="analysis" /></br></br>

77
            <button onclick="document.getElementById('axis_choice').style.display='none';
78
79
                                    m.loadAnalysis('upload_analysis');">start</button> 
        </div>
Marc Duez's avatar
Marc Duez committed
80
        
81
82
83
        <!-- TOP-CONTAINER -->
        <div id="top-container">

Mathieu Giraud's avatar
Mathieu Giraud committed
84
            <div class="menu" id="db_menu" onmouseover="showSelector('dbSelector');" style="display : none">patients
85
86
                <div id="dbSelector" class="selector"><div>
                    <div class="menu_box">
Mathieu Giraud's avatar
Mathieu Giraud committed
87
88
                        <a class="buttonSelector" onclick="javascript:db.reload()">open patient</a>
                        <a class="buttonSelector" onclick="javascript:db.save_analysis()">save analysis</a>
89
90
91
92
93
94
95
96
                    </div>
                    <div class="menu_box">
                        <div id="last_loaded_file">
                        </div>
                    </div>
                </div></div>
            </div>

97
98
99
100
101
102
103
104
105
            <div class="menu" id="static_file_menu" onmouseover="showSelector('fileSelector');" style="display : none">file
              <div id="fileSelector" class="selector"><div>
                    <div class="menu_box">
                        <div id="upload_list">
                        </div>
                    </div>
              </div></div>
            </div>
            
Mathieu Giraud's avatar
Mathieu Giraud committed
106
            <div class="menu" id="demo_file_menu" onmouseover="showSelector('demoSelector');">import/export
107
                <div id="demoSelector" class="selector"><div>
108
                    <div class="menu_box">
109
110
                        <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>
111
                    </div>
112
113
                    <!--<a class="buttonSelector" onclick="javascript:m.resetAnalysis()">reset analysis</a> -->
                    <!--<a class="buttonSelector" onclick="javascript:reset()">reset all</a> -->
114
115
116
117
                    <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>
118
                    <div class="menu_box">
Mathieu Giraud's avatar
Mathieu Giraud committed
119
                        <a class="buttonSelector" onclick="javascript:m.saveAnalysis()">export analysis</a>
120
                        <a class="buttonSelector" onclick="javascript:pdf.makeGraph()">export pdf (graph)</a>
121
                        <a class="buttonSelector" onclick="javascript:m.exportCSV()">export csv (visible clones)</a>
122
                        <a class="buttonSelector" onclick="javascript:m.exportFasta()">export fasta(selected clones)</a>
Marc Duez's avatar
Marc Duez committed
123
                    </div>
124
                </div></div>
125
126
            </div>

127
            <div class="menu" id="cluster_menu" onmouseover="showSelector('clusterSelector');" > cluster
128
                <div id="clusterSelector" class="selector"><div>
129
130
                    <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
131
132
                    <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>
133
                    <!-- <a class="buttonSelector" onclick="m.clusterBy('cluster')">DBSCAN algorithm</a> -->
WebTogz's avatar
WebTogz committed
134

135
                    <div id="clusterby_button"> </div>
136
137
138
                </div></div>
            </div>

139
            <div class="menu" id="color_menu" onmouseover="showSelector('colorSelector');" > color 
140
                <div id="colorSelector" class="selector"><div>
141
                    <a class="buttonSelector" onclick="m.changeColorMethod('Tag');">by tag</a>
142
143
                    <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
144
                    <a class="buttonSelector" onclick="m.changeColorMethod('N');">by N length</a>
Marc Duez's avatar
Marc Duez committed
145
                    <a class="buttonSelector" onclick="m.changeColorMethod('system');" 
146
                        id="color_system_button" style="display:none">by locus/germline</a>
147
                    <a class="buttonSelector" onclick="m.changeColorMethod('abundance');">by abundance at selected timepoint</a>
148
                    <!--<a class="buttonSelector" onclick="m.changeColorMethod('dbscan');">by the DBSCAN algorithm</a>-->
149
                </div></div>
150
151
            </div>

152
            <div class="menu" id="filter_menu" onmouseover="showSelector('filterSelector');" > filter
153
154
                <div id="filterSelector" class="selector"><div>
                    <div class="menu_box">
155
                        <span id="top_label"></span></br>
156
                        <input id="top_slider" type="range" min="5" max="100" step="5" value="10" onchange="m.displayTop(this.value)" />
157
                    </div>
158
159
160
161
                    <div class="menu_box">
                        tag visibility</br>
                        <ul id="tagList">
                        </ul>
162
                    </div>
163
164
                </div></div>
            </div>
165

166
            <div class="menu" id="settings_menu" onmouseover="showSelector('settingsSelector');" > settings
167
168
                <div id="settingsSelector" class="selector"><div>
                    <div class="menu_box">
169
                        normalization</br>
170
171
                        <form name="normalize_list" id="normalize_list">
                        </form>
172
                    </div>
173

174
175
                    <div class="menu_box">
                        normalization method</br>
176
177
178
                        <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>

179
180
                    </div>

181
182
                    <div class="menu_box">
                        size display</br>
183
184
                        <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>
185
                    </div>
Marc Duez's avatar
Marc Duez committed
186

187
188
                    <div class="menu_box">
                        point key</br>
189
190
191
                        <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
192
                    </div>
193
194

                    <div class="submenu" id="system_menu" style="display:none">
195
                        <div class="menu_box">
196
                            locus/germline (for color and scatterplot)</br>
197
198
199
                            <ul id="germline_list">
                            </ul>
                        </div>
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
                    </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>
225
                    </div>
226

Marc Duez's avatar
Marc Duez committed
227
                </div></div>
228
229
            </div>

230
            <div id="debug_menu" class="menu" onmouseover="showSelector('adminSelector');" style="display : none"> development              
231
                <div id="adminSelector" class="selector"><div>
232
                    <input type="checkbox" onclick="$('.menu-highlight').toggle()">highlight menu</input><br>
233
234
                    <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>
235
                    <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>
236
237
238
                </div></div>
            </div>

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

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

243
            <div style="float: right" class="menu" onmouseover="showSelector('paletteSelector');"> palette 
244
                <div id="paletteSelector" class="selector"><div>
245
246
                    <a class="buttonSelector" onclick="changeStyle(solarizeD)">dark</a>
                    <a class="buttonSelector" onclick="changeStyle(solarizeL)">light</a>
247
                </div></div>
248
249
            </div>

250
251
252
253
254
255
256
            <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>

257
            <div id="fps" style="float: right; display: none"> </div>
258
259

        </div>  
Marc Duez's avatar
Marc Duez committed
260
        <!-- fin top-container-->
261
262
263
        
        <!-- MID-CONTAINER -->
        <div id="mid-container" onmouseover="hideSelector()">
Marc Duez's avatar
Marc Duez committed
264

265
        <!-- LEFT-CONTAINER -->
266
            <div id="left-container">
267
268
269
                <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>
270
            </div>
271
272
        <!-- fin left-container -->

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

275
        <!-- RIGHT-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
276
            <div id="right-container"></div>
277
278

        <!-- VISU-CONTAINER  -->
279
            <div id="visu-container">
Marc Duez's avatar
Marc Duez committed
280
281
282
                <div id="visu2"></div>
                <div id="visu-separator" >...</div>
                <div id="visu" onclick=""></div>
283
284
285
286
            </div>

        </div>
        <!-- fin mid-container -->
Marc Duez's avatar
Marc Duez committed
287
    
288
289

        <!-- BOT-CONTAINER / SEGMENTER-CONTAINER -->
Marc Duez's avatar
Marc Duez committed
290
        <div id="bot-container"> </div>
291
292
293
294

        <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>
295
            <ul> </ul>
296
297
        </div>

Marc Duez's avatar
Marc Duez committed
298
299
        <div id="dataMenu">
            <span class="closeButton" onclick="$('#dataMenu').hide('fast')">X</span>
300
            <div> data:  <span id=data_name></span></div>
Marc Duez's avatar
Marc Duez committed
301
            <div>
302
                <span>normalize to: </span>
Marc Duez's avatar
Marc Duez committed
303
304
305
306
307
                <span><input type="number" step="0.0001" id="normalized_data"></span>
                <button id="normalized_data_button">ok</button>
            </div>
        </div>

308
309
310
        <div id="frame-container"></div>

        <div id="data-container">
Marc Duez's avatar
Marc Duez committed
311
            <span class="closeButton" onclick="myConsole.closeDataBox()">X</span>
312
313
314
            <div id="data-msg"></div>
        </div>

315
316
        <div id="db_div">
            <span class="closeButton" onclick="db.close()">X</span>
Marc Duez's avatar
Marc Duez committed
317
            <div id="db_msg"></div>
318
        </div>
319
320
321
        
        <div id="flash_container"></div>
        <div id="log_container"></div>
322
        <form id="form"></form>
323
        <div id="waiting_screen"> <div id="waiting_mes"></div></div>
324
325
326

    </body>

327
328
329
</html>