index.html 15.2 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 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
    <head>
        <meta charset="utf-8">
        <title>Vidjil</title>
        <!--<link rel="stylesheet/less" type="text/css" href="css/style.less" />-->
        <link id="palette" rel="stylesheet" type="text/css" href="css/dark.css" /> 
        <!--[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]-->
        <script type="text/javascript" src="js/lib/jquery-1.9.1.min.js"></script>
        <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/less-1.5.0.min.js"></script>
        <script type="text/javascript" src='js/lib/jquery.zclip.js'></script>

        <script type="text/javascript" src='js/germline.js'></script>
        <script type="text/javascript" src='js/model.js'></script>
        <script type="text/javascript" src='js/segmenter.js'></script>
        <script type="text/javascript" src='js/list.js'></script>
        <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>
        <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>

        <!--
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
        -->
    </head>


    <body onload="popupMsg(msg.welcome)">

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

            Data file (.data):<br/>
            <input id="upload_json" type="file" name="json" /></br>
            <p class='help'>The data file stores a set of clones on several points.</p>

            Analysis file (.analysis, optional):<br/>
            <input id="upload_pref" type="file" name="pref" /></br>
            <p class='help'>The analysis file stores all parameters set by the user (tags, colors, manual clusters).</p>
            <!--
            load only clones in the top <select id="limit_top" name="limit_top">
            <option value="10">10</option>	
            <option value="30">30</option>
            <option value="100">100</option>
            </select> </br></br>

            <button onclick="document.getElementById('file_menu').style.display='none';
            m.load('upload_json','upload_pref', document.getElementById('limit_top').value)">start</button> 
            -->
            <button onclick="document.getElementById('file_menu').style.display='none';
Marc Duez's avatar
Marc Duez committed
88
            m.load('upload_json','upload_pref', 200)">start</button> 
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
        </div>

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

            Analysis file :<br/>
            <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>


        <!-- TOP-CONTAINER -->
        <div id="top-container">

106 107 108 109 110 111 112
            <div class="menu" onmouseover="showSelector('adminSelector');" style="display:none"> admin 
                <div id="adminSelector" class="selector">
                    <a id="test_load_data" class="buttonSelector" onclick="m.parseJsonData(dataTest, 100).loadGermline().initClones()">
                    test load data</a>
                </div>
            </div>

113 114 115
            <div class="menu" onmouseover="showSelector('loadSelector');"> file 
                <div id="loadSelector" class="selector">
                    <!-- <a class="buttonSelector" onclick="javascript:loadData()">load data/analysis</a> -->
Marc Duez's avatar
merge  
Marc Duez committed
116
                    <!--<a class="buttonSelector" onclick="javascript:loadAnalysis()">load analysis</a> -->
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
                    <a class="buttonSelector" onclick="javascript:m.saveAnalysis()">save analysis</a>
                    <!--<a class="buttonSelector" onclick="javascript:m.resetAnalysis()">reset analysis</a> -->
                    <!--<a class="buttonSelector" onclick="javascript:reset()">reset all</a> -->
                    <a class="buttonSelector" onclick="javascript:testPDF2()">export pdf (graph + selected clones)</a>
                </div>
            </div>

            <div id="norm" class="menu" onmouseover="showSelector('ratioSelector');"> normalize 
                <div id="ratioSelector" class="selector">
                    <!--TODO generer automatiquement-->
                    <a class="buttonSelector" onclick="m.normalization_switch(false);">off</a>
                    <a class="buttonSelector" onclick="m.normalization_switch(true);">on</a> 
                </div>
            </div>

            <div class="menu" onmouseover="showSelector('groupSelector');"> analysis 
                <div id="groupSelector" class="selector">
                    <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> -->
                    <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> 
                </div>
            </div>

            <div class="menu" onmouseover="showSelector('colorSelector');" > color 
                <div id="colorSelector" class="selector">
                    <a class="buttonSelector" onclick="m.changeColorMethod('V');">by V</a>
                    <a class="buttonSelector" onclick="m.changeColorMethod('J');">by J</a>
                    <a class="buttonSelector" onclick="m.changeColorMethod('N2');">by N length</a>
                    <!-- <a class="buttonSelector" onclick="m.changeColorMethod('N');">by N length + VJ deletions</a> -->
                    <a class="buttonSelector" onclick="m.changeColorMethod('Tag');">by tag</a>
                    <a class="buttonSelector" onclick="m.changeColorMethod('abundance');">by abundance at selected timepoint</a>
                </div>
            </div>


            <div id="norm" class="menu" onmouseover="showSelector('displaySelector');"> display
                <div id="displaySelector" class="selector">
157 158 159 160 161
                    <div>
                        </br>
                        <input id="top_slider" type="range" min="5" max="100" step="5" value="10" 
                        onchange="m.displayTop(this.value)" />
                    </div>
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
                    <ul>
                    </ul>
                </div>
            </div>

            <div class="menu" onmouseover="showSelector('clusterSelector');" > cluster
                <div id="clusterSelector" class="selector">
                    <a class="buttonSelector" onclick="m.resetClones();">reset</a>
                    <a class="buttonSelector" onclick="m.clusterBy('_clonotype');">clonotype</a>
                    <a class="buttonSelector" onclick="m.clusterBy('V');">V gene + allele</a>
                    <a class="buttonSelector" onclick="m.clusterBy('J');">J gene + allele</a>
                    <a class="buttonSelector" onclick="m.clusterBy('_target');">target</a>
                    <a class="buttonSelector" onclick="m.clusterBy('_target.V-GENE');">target V</a>
                    <a class="buttonSelector" onclick="m.clusterBy('_target.J-GENE');">target J</a>
                </div>
            </div>

            <div id="logo" style="float: right;" onclick="popupMsg(msg.welcome)">Vidjil <span class='logo'>(beta)</span></div>

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

            <div id="fps" style="float: right;"> </div>

        </div>  
        <!-- fin  div id="top-container"-->
        

        <!-- MID-CONTAINER -->
        <div id="mid-container" onmouseover="hideSelector()">
        <!-- LEFT-CONTAINER -->
197
            <div id="left-container">
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

            <div id="left">

                <div id="info">

                    <div id=info_data_file> &nbsp;</div>

                    <div id=info_analysis_file> &nbsp; </div>

                    <div id="info_system"> &nbsp; </div>

                    <div id="info_color_Tag" class="info_color" style="">tag colors
                        <span id="fastTag0" class="tagColorBox tagColor0" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag1" class="tagColorBox tagColor1" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag2" class="tagColorBox tagColor2" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag3" class="tagColorBox tagColor3" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag4" class="tagColorBox tagColor4" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag5" class="tagColorBox tagColor5" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag6" class="tagColorBox tagColor6" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag7" class="tagColorBox tagColor7" onclick="nextDisplayTag(this)"></span>
                        <span id="fastTag8" class="tagColorBox tagColor8" onclick="nextDisplayTag(this)"></span>
                    </div>

                    <div id="info_color_N" class="info_color" style="display:none">N colors :
                        <span> N=0 </span>
                        <span class="gradient"></span>
                        <span id="info_n_max"> N=max</span>
                    </div>

                    <div id="info_color_N2" class="info_color" style="display:none">N colors :
                        <span> N=0 </span>
                        <span class="gradient"></span>
                        <span id="info_n2_max"> N=max</span>
                    </div>

                    <div id="info_color_abundance" class="info_color" style="display:none" >
                        abundance colors :
                        <span> 0% </span>
                        <span class="gradient"></span>
                        <span id="info_size_max"> 100%</span>
                    </div>

                </div>

                <div id="color-info" class="gradient_abundance"></div>

                <div id="sort-bar">
                    sort list by 
                    <a class="button" onclick="list.sortListByV();">V</a>
                    <a class="button" onclick="list.sortListByJ();">J</a>
                    <a class="button" onclick="list.sortListBySize();">abundance</a>
                </div>

                <div id="listClones"></div>

                <div id="listSelect"></div>

            </div>

257
            </div>
258 259
        <!-- fin left-container -->

Marc Duez's avatar
Marc Duez committed
260 261 262 263 264 265
            <div id="vertical-separator">
                <div id="toggle-left-container">
                    &lt; &lt; &lt;
                </div>
            </div>

266 267
        <!-- RIGHT-CONTAINER -->
            <div id="right-container">
Marc Duez's avatar
Marc Duez committed
268
                
269 270 271
            </div>

        <!-- VISU-CONTAINER  -->
272
            <div id="visu-container">
Marc Duez's avatar
Marc Duez committed
273 274 275 276
                <!-- VISU -->
                <div id="visu2"></div>
                <div id="visu-separator" >...</div>
                <div id="visu" onclick=""></div>
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318
            </div>

        </div>
        <!-- fin mid-container -->

        <!-- BOT-CONTAINER / SEGMENTER-CONTAINER -->
        <div id="bot-container">
            <div class="separator">
                <span class="button" onclick="m.merge()">merge</span>
                <span class="button" onclick="segment.align()">align</span>
                <span class="button" onclick="segment.sendTo('IMGT')">❯ to IMGT/V-QUEST</span>
                <span class="button" onclick="segment.sendTo('igBlast')">❯ to IgBlast</span>
                <span id="toClipBoard" class="button">❯ to clipBoard</span>
            </div>

            <ul id="listSeq"></ul>
        </div>
        <!-- fin bot-container -->

        <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>
            <ul>
            </ul>
        </div>

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

        <div id="popup-container">
            <span class="closeButton" onclick="closePopupMsg()">X</span>
            <div id="popup-msg"></div>
        </div>

        <div id="data-container">
            <span class="closeButton" onclick="closeDataBox()">X</span>
            <div id="data-msg"></div>
        </div>

        <form id="form"></form>

    </body>

319
    <script type="text/javascript" src='test/dataTest.js'></script>
320
    <script type="text/javascript" src="js/main.js"> </script>
321 322 323
</html>