annotate test-data/references/Blast_affiliation.html @ 0:76c750c5f0d1 draft default tip

planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
author frogs
date Thu, 25 Oct 2018 05:01:13 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
1 <!DOCTYPE html>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
2 <!--
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
3 # Copyright (C) 2015 INRA
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
4 #
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
5 # This program is free software: you can redistribute it and/or modify
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
6 # it under the terms of the GNU General Public License as published by
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
7 # the Free Software Foundation, either version 3 of the License, or
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
8 # (at your option) any later version.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
9 #
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
10 # This program is distributed in the hope that it will be useful,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
13 # GNU General Public License for more details.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
14 #
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
17 -->
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
18 <html>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
19 <head>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
20 <title>FROGS Affiliation</title>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
21 <meta charset="UTF-8">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
22 <meta name="version" content="1.0.2">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
23 <!-- CSS -->
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
24 <link rel="stylesheet" href="https://cdn.datatables.net/1.10.6/css/jquery.dataTables.css"></link>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
25 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"></link>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
26 <style type="text/css">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
27 #content {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
28 width: 90%;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
29 margin-right: auto;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
30 margin-left: auto;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
31 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
32 .clear {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
33 clear: both;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
34 height: 0px;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
35 width: 100%;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
36 float: none !important;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
37 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
38 </style>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
39 <!-- JS -->
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
40 <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
41 <script type="text/javascript" src="http://code.highcharts.com/4.1.4/highcharts.js"></script>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
42 <script type="text/javascript" src="http://code.highcharts.com/4.1.4/modules/exporting.js"></script>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
43 <script type="text/javascript" src="https://cdn.datatables.net/1.10.6/js/jquery.dataTables.min.js"></script>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
44 <script type="text/javascript">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
45 /*
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
46 * HTMLTable.js 0.1.0 - HTMLTable Library
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
47 *
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
48 * Copyright (c) 2015 Escudie Frederic
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
49 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
50 */
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
51 function HTMLtable(e){var t,r,n=e,a=";";this.deleteColumns=function(e){for(var a=n.getElementsByTagName("tr"),o=0;o<a.length;o++){s=0;var i=a[o].getElementsByTagName("td");0==i.length&&(i=a[o].getElementsByTagName("th"));for(var v=0,s=0;s<t[1];s++)if(!r[o][s]){var f=i[v].getAttribute("colspan");if(null!=f)for(var m=0;f>m;m++){if(in_array(s+m,e)){var u=i[v].getAttribute("colspan");u-1==0?i[v].removeAttribute("colspan"):i[v].setAttribute("colspan",u-1)}if(null==i[v].getAttribute("colspan")){var h=i[v];a[o].removeChild(h),v--}}else if(in_array(s,e)){var h=i[v];a[o].removeChild(h),v--}v++}}l(),g()},this.filter=function(e,a){var l=new RegExp(e),g=new Array;null!=a&&a||(g.c0=!0);for(var o=n.getElementsByTagName("tr"),i=0;i<o.length;i++){f=0;var v=o[i].getElementsByTagName("td");if(0!=v.length)for(var s=0,f=0;f<t[1];f++)r[i][f]||(l.test(v[s].innerHTML)&&(g["c"+f]=!0),s++)}for(var m=new Array,u=0;u<t[1];u++)void 0===g["c"+u]&&m.push(u);this.deleteColumns(m)},this.getModel=function(){return n};var l=function(){for(var e=0,r=0,a=n.getElementsByTagName("tr"),l=0;l<a.length;l++){var g=0;e++;var o=a[l].getElementsByTagName("td");0==o.length&&(o=a[l].getElementsByTagName("th"));for(var i=0;i<o.length;i++){var v=o[i].getAttribute("colspan");g+=null==v?1:parseInt(v)}g>r&&(r=g)}t=new Array(2),t[0]=e,t[1]=r},g=function(){r=new Array(t[0]);for(var e=0;e<t[0];e++){r[e]=new Array(t[1]);for(var a=0;a<t[1];a++)r[e][a]=!1}for(var l=n.getElementsByTagName("tr"),g=0;g<l.length;g++){v=0;var o=l[g].getElementsByTagName("td");0==o.length&&(o=l[g].getElementsByTagName("th"));for(var i=0,v=0;v<t[1];v++)if(!r[g][v]){var s=0,f=0,m=o[i].getAttribute("rowspan");null!=m&&(s=parseInt(m)-1);var u=o[i].getAttribute("colspan");null!=u&&(f=parseInt(u)-1);for(var h=s;h>=0;h--)for(var y=f;y>=0;y--)(0!=h||0!=y)&&(r[g+h][v+y]=!0);i++}}};this.replace=function(e,a,l){var g=new RegExp(e);null==a&&(a=""),null==l&&(l="");for(var o=n.getElementsByTagName("tr"),i=0;i<o.length;i++){f=0;var v=o[i].getElementsByTagName("td");if(0!=v.length)for(var s=0,f=0;f<t[1];f++)if(!r[i][f]){var m=g.exec(v[s].innerHTML);null!=m&&(void 0===m[1]&&(m[1]=""),v[s].innerHTML=a+m[1]+l),s++}}},this.toCSV=function(){for(var e="",l=n.getElementsByTagName("tr"),g=0;g<l.length;g++){var o=l[g].getElementsByTagName("td");0==o.length&&(o=l[g].getElementsByTagName("th"));for(var i=0,v=0;v<t[1];v++)r[g][v]||(e+=o[i].innerHTML,i++),e+=a;e=e.substr(0,e.length-1)+"\n"}return e},l(),g()}var in_array=function(e,t){for(var r in t)if(t[r]==e)return!0;return!1};
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
52
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
53 /*
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
54 * dataTableExtractor.plugin.js 0.1.0 - datatableExport Library
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
55 *
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
56 * Copyright (c) 2015 Escudie Frederic
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
57 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
58 */
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
59 !function(t){t.fn.datatableExport=function(a){var e={anchor_id:t(this).attr("id"),table_id:null,csv_separator:";",omitted_columns:[]},n=t.extend(e,a);if(!t(this).length)throw"The element where the datatableExport is called does not exist.";if(void 0==n.anchor_id)throw"The datatableExport plugin must be called on an element with id.";if(null==n.table_id)throw"You must set the table_id parameter in datatableExport plugin.";if(!t("#"+n.table_id))throw"The datatable '#"+n.table_id+"' cannot be retieve in DOM.";return this.each(function(){var a=t(this);a.on("click",function(){t.fn.datatableExport.csv(n.anchor_id,n.table_id,n.csv_separator,n.omitted_columns)})})},t.fn.datatableExport.cleanCellMarkup=function(a,e){t.parseHTML(e);t("#"+a).append('<div class="hidden data-tmp">'+e+"</div>"),t("#"+a+" .data-tmp").find("input").each(function(){var a="";a=t(this).is(":checkbox")?t(this).is(":checked")?"true":"false":t(this).val(),t(this).replaceWith(a)});var n=t("#"+a+" .data-tmp").text();return t("#"+a+" .data-tmp").remove(),n},t.fn.datatableExport.csv=function(a,e,n,i){var l="",r=t("#"+e).DataTable(),d=t("#"+e+" thead")[0],o=new HTMLtable(d.cloneNode(!0));o.deleteColumns(i),l+=o.toCSV();var c=r.rows().data();t.each(c,function(e,n){for(var r="",d=0;d<n.length;d++)-1==t.inArray(d,i)&&(r+='"'+t.fn.datatableExport.cleanCellMarkup(a,n[d])+'";');""!=r&&(r=r.slice(0,-1)),l+=r+"\n"}),t("#"+a+"-extract-csv").length||t("#"+a).append('<a id="'+a+'-extract-csv" href="data:text/csv;charset=UTF-8,'+encodeURI(l)+'" download="data.csv" style="display:none;"></a>'),t("#"+a+"-extract-csv")[0].click()}}(jQuery);
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
60 </script>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
61 <script type="text/javascript">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
62 /**
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
63 * Returns the string representation of the number.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
64 * @param pValue {Float} The number to process.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
65 * @return {String} The string representation (example: 12856892.11111 => 12,856,892.11).
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
66 */
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
67 var numberDisplay = function( pValue ){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
68 var new_val = "" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
69 if( ("" + pValue + "").indexOf(".") != -1 ){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
70 new_val = pValue.toFixed(2).replace(/(\d)(?=(\d{3})+\b)/g, '$1,');
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
71 } else {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
72 new_val = pValue.toFixed().replace(/(\d)(?=(\d{3})+\b)/g, '$1,');
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
73 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
74 return new_val ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
75 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
76
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
77 /**
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
78 * Returns the HTML table representation of the data.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
79 * @param pTitle {String} The title of the table.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
80 * @param pCategories {Array} The title of each column.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
81 * @param pData {Array} 2D matrix with row and column data.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
82 * @return {String} The HTML table representation.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
83 */
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
84 var table = function( pTitle, pCategories, pData ) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
85 // Header
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
86 var table_header = ' <tr>\n<th colspan="' + pCategories.length + '">' + pTitle + '</th> </tr>\n' ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
87 var table_header_line = "" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
88 for(var idx = 0 ; idx < pCategories.length ; idx++){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
89 table_header_line += " <th>" + pCategories[idx] + "</th>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
90 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
91 table_header += " <tr>\n" + table_header_line + " </tr>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
92 table_header = " <thead>\n" + table_header + " </thead>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
93
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
94 // Body
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
95 var table_body = '' ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
96 for(var data_idx = 0 ; data_idx < pData.length ; data_idx++){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
97 var table_body_row = "" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
98 for(var category_idx = 0 ; category_idx < pCategories.length ; category_idx++){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
99 if( typeof pData[data_idx][category_idx] === "number" ) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
100 table_body_row += " <td>" + numberDisplay(pData[data_idx][category_idx]) + "</td>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
101 } else {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
102 table_body_row += " <td>" + pData[data_idx][category_idx] + "</td>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
103 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
104 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
105 table_body += " <tr>\n" + table_body_row + " </tr>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
106 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
107 table_body = " <tbody>\n" + table_body + " </tbody>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
108
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
109 return '<table class="table table-striped">\n' + table_header + table_body + "</table>\n" ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
110 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
111
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
112 var histogram_param = function( pTitle, pYTitle, pCategories, pSeries, unity ) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
113 var param = {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
114 chart: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
115 type: 'column'
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
116 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
117 title: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
118 text: pTitle
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
119 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
120 xAxis: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
121 categories: pCategories,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
122 crosshair: true
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
123 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
124 yAxis: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
125 min: 0,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
126 title: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
127 text: pYTitle
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
128 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
129 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
130 tooltip: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
131 headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
132 pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
133 '<td style="padding:0"><b>{point.y} ' + unity + '</b></td></tr>',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
134 footerFormat: '</table>',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
135 shared: true,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
136 useHTML: true
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
137 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
138 plotOptions: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
139 column: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
140 pointPadding: 0.2,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
141 borderWidth: 0
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
142 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
143 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
144 credits: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
145 enabled: false
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
146 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
147 series: pSeries
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
148 };
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
149
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
150 return param ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
151 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
152
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
153 /**
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
154 * Returns hash use to init HightChart object (without 'type').
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
155 * @param pTitle {String} The title of the chart.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
156 * @param pXTitle {String} The xAxis title.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
157 * @param pYTitle {String} The yAxis title.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
158 * @param pXCategories {Array} The title of each category (x scale labels).
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
159 * @param pData {Array} The HightChart series.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
160 * @return {Hash} The hash.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
161 * @warning This method use HightChart xAxis.categories.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
162 */
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
163 var chartplot = function( pTitle, pXTitle, pYTitle, pXCategories, pData ) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
164 var chart = {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
165 title: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
166 text: pTitle
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
167 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
168 xAxis: {},
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
169 yAxis: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
170 title: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
171 text: pYTitle
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
172 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
173 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
174 series: pData,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
175 credits: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
176 enabled: false
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
177 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
178 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
179 if( pXCategories != null ){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
180 chart['xAxis']['categories'] = pXCategories ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
181 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
182 if( pXTitle != null ){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
183 chart['xAxis']['title'] = { text: pXTitle } ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
184 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
185 if( pData.length <= 1 ) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
186 chart['legend'] = {'enabled': false};
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
187 } else {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
188 chart['legend'] = {'enabled': true};
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
189 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
190 return chart ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
191 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
192
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
193 var pie_param = function( pTitle, pData, unity ) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
194 var series = [{
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
195 type: 'pie',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
196 name: unity,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
197 data: pData
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
198 }]
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
199 var plot = chartplot( pTitle, null, null, null, series );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
200 plot['tooltip'] = {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
201 pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
202 };
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
203 plot['plotOptions'] = {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
204 pie: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
205 allowPointSelect: true,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
206 cursor: 'pointer',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
207 dataLabels: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
208 enabled: true,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
209 format: '<b>{point.name}</b>: {point.y:,.0f}',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
210 style: {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
211 color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
212 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
213 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
214 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
215 };
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
216 return plot ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
217 };
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
218
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
219 $(function() {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
220 var global_results = {"nb_clstr_with_affi": 10820, "nb_clstr": 12139, "nb_seq_ambiguous": [0, 0, 0, 0, 7209, 7258, 17901], "nb_seq": 72475, "nb_clstr_ambiguous": [0, 0, 0, 0, 532, 558, 2359], "nb_seq_with_affi": 61087} ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
221 var sample_results = {"sampleA_R1": {"nb_seq": 72475, "nb_seq_with_affi": 61087, "nb_clstr_with_affi": 10820, "nb_clstr": 12139}} ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
222 var taxonomy_ranks = ["Domain", "Phylum", "Class", "Order", "Family", "Genus", "Species"] ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
223
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
224 // Remove alert
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
225 $('#js-alert').remove();
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
226 $('#content').removeClass("hidden");
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
227
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
228 // Display summary
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
229 var std_color = Highcharts.getOptions().colors ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
230 Highcharts.getOptions().colors = Highcharts.map(Highcharts.getOptions().colors, function (color) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
231 return {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
232 radialGradient: { cx: 0.5, cy: 0.3, r: 0.7 },
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
233 stops: [
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
234 [0, color],
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
235 [1, Highcharts.Color(color).brighten(-0.3).get('rgb')] // darken
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
236 ]
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
237 };
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
238 });
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
239
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
240 var pie_series = [
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
241 ["With affiliation", global_results["nb_clstr_with_affi"]],
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
242 ["Without affiliation", (global_results["nb_clstr"] - global_results["nb_clstr_with_affi"])]
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
243 ]
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
244 $('#clstr-ratio-affi').highcharts( pie_param("OTUs affiliation", pie_series, 'OTUs') );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
245
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
246 var pie_series = [
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
247 ["With affiliation", global_results["nb_seq_with_affi"]],
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
248 ["Without affiliation", (global_results["nb_seq"] - global_results["nb_seq_with_affi"])]
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
249 ]
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
250 $('#seq-ratio-affi').highcharts( pie_param("Sequences affiliation", pie_series, 'sequences') );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
251
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
252 Highcharts.getOptions().colors = std_color ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
253
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
254 var histogram_series = [
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
255 {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
256 'name': 'OTUs',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
257 'data': global_results["nb_clstr_ambiguous"].map(function(num) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
258 var prct = (num/global_results["nb_clstr"])*10000/100 ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
259 return( parseFloat(numberDisplay(prct)) );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
260 })
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
261 }, {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
262 'name': 'Sequences',
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
263 'data': global_results["nb_seq_ambiguous"].map(function(num) {
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
264 var prct = (num/global_results["nb_seq"])*10000/100 ;
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
265 return( parseFloat(numberDisplay(prct)) );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
266 })
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
267 }
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
268 ];
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
269 $('#clstr-multi-affi').highcharts( histogram_param('Multi-affiliation by taxonomic rank', '% of multi-affiliated', taxonomy_ranks, histogram_series, '%') );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
270
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
271 // Display data by sample
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
272 var table_categories = [ 'Sample', 'Nb OTUs', '% OTUs affiliated by blast', 'Nb seq', '% seq affiliated by blast' ];
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
273 var table_series = new Array();
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
274 for( var sample_name in sample_results ){
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
275 table_series.push([
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
276 sample_name,
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
277 sample_results[sample_name]['nb_clstr'],
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
278 Math.round(((sample_results[sample_name]['nb_clstr_with_affi']/sample_results[sample_name]['nb_clstr'])*10000)/100),
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
279 sample_results[sample_name]['nb_seq'],
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
280 Math.round(((sample_results[sample_name]['nb_seq_with_affi']/sample_results[sample_name]['nb_seq'])*10000)/100)
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
281 ]);
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
282 };
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
283 $('#samples-details').append( table("Blast affiliation by sample", table_categories, table_series) );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
284 $('#samples-details table').prop( 'id', 'details-table' );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
285 $('#samples-details table').DataTable({
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
286 "sDom": '<"top"<"#details-csv-export"><"clear">lf>rt<"bottom"ip><"clear">'
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
287 });
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
288 $('#details-csv-export').html( '<button class="btn btn-primary"><span class="glyphicon glyphicon-open-file" aria-hidden="true">CSV</span></button>' );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
289 $('#details-csv-export').addClass( 'dataTables_filter' );
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
290 $('#details-csv-export').datatableExport({
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
291 'table_id': "details-table"
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
292 });
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
293 });
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
294 </script>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
295 </head>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
296 <body>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
297 <p id="js-alert" class="alert alert-warning">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
298 javascript is needed to display data.<br />
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
299 If you try to view this data on galaxy please contact your administrator to authorise javascript or download the file to view.
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
300 </p>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
301 <div id="content" class="hidden">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
302 <div id="global-summary">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
303 <h1 class="page-header">Blast affiliation summary</h1>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
304 <div class="row">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
305 <div class="col-md-1"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
306 <div id="clstr-ratio-affi" class="col-md-5"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
307 <div id="seq-ratio-affi" class="col-md-5"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
308 <div class="col-md-1"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
309 </div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
310 <div class="row">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
311 <div class="col-md-1"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
312 <div id="clstr-multi-affi" class="col-md-10"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
313 <div class="col-md-1"></div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
314 </div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
315 </div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
316 <div id="samples-details">
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
317 <h1 class="page-header">Blast affiliation by sample</h1>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
318 </div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
319 </div>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
320 </body>
76c750c5f0d1 planemo upload for repository https://github.com/oinizan/FROGS-wrappers commit 0b900a51e220ce6f17c1e76292c06a5f4d934055-dirty
frogs
parents:
diff changeset
321 </html>