comparison Analyse_tpl.html @ 0:1024245abc70 draft

planemo upload for repository https://github.com/sblanck/smagexp/tree/master/smagexp_tools commit 5974f806f344dbcc384b931492d7f023bfbbe03b
author sblanck
date Thu, 22 Feb 2018 08:38:22 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1024245abc70
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 <meta name="viewport" content="width=device-width,initial-scale=1">
6 <title>Limma analysis results</title>
7 <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css">
8 <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.1.0/css/buttons.dataTables.min.css">
9 <style type="text/css" class="init">
10
11 td.details-control {
12 background: url('../../../static/images/fugue/toggle-expand.png') no-repeat center center;
13 cursor: pointer;
14 }
15 tr.shown td.details-control {
16 background: url('../../../static/images/fugue/toggle.png') no-repeat center center;
17 }
18
19 .dataTable th,.dataTable td {
20
21 text-overflow: ellipsis;
22 max-width: 200px;
23 min-width: 40px;
24 -o-text-overflow: ellipsis;
25 -ms-text-overflow: ellipsis;
26 -moz-text-overflow: ellipsis;
27 width: 100px;
28 white-space:nowrap;
29 overflow: hidden;
30
31
32 padding: 10px;
33
34 }
35 .details th,.details td {
36
37 max-width: 1500px;
38 min-width: 1000px;
39 padding: 10px;
40
41 }
42
43
44 </style>
45 <style>
46
47
48 </style>
49
50 <script type="text/javascript" language="javascript" src="https://code.jquery.com/jquery-1.11.3.min.js">
51 </script>
52 <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js">
53 </script>
54 <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.1.0/js/dataTables.buttons.min.js">
55 </script>
56 <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.1.0/js/buttons.flash.min.js">
57 </script>
58 <script type="text/javascript" language="javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js">
59 </script>
60 <script type="text/javascript" language="javascript" src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js">
61 </script>
62 <script type="text/javascript" language="javascript" src="https://cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js">
63 </script>
64 <script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.1.0/js/buttons.html5.min.js">
65 </script>
66 <script type="text/javascript" class="init">
67
68
69
70 function format ( d ) {
71 // `d` is the original data object for the row
72 var test=d[11].split("///");
73 var strLength=test.length;
74 var result="";
75 for (var i=0;i<strLength;i++) {
76 result=result+'<a href="http://amigo.geneontology.org/amigo/term/'+test[i]+'">'+test[i]+'</a>'+',&nbsp';
77 }
78 return '<table cellpadding="5" cellspacing="0" border="0" style="padding-left:50px;">'+
79 '<tr>'+
80 '<td>Gene Symbol:</td>'+
81 '<td style="width:100%;overflow: hidden;white-space: normal;">'+'<a href="http://www.ncbi.nlm.nih.gov/gene/'+d[9]+'">'+d[7]+'</a>'+'</td>'+
82 '</tr>'+
83 '<tr>'+
84 '<td>Gene Title:</td>'+
85 '<td style="width:100%;overflow: hidden;white-space: normal;">'+d[8]+'</td>'+
86 '</tr>'+
87 '<tr>'+
88 '<td>GO Function ID:</td>'+
89 '<td style="width:100%;overflow: hidden;white-space: normal;">'+result+'</td>'+
90 '</tr>'+
91 '</table>';
92 }
93
94 var dataSet=###DATAJSON###;
95
96 $(document).ready(function() {
97 var table = $('#example').DataTable( {
98 "scrollX": true,
99 data: dataSet,
100 "columns": [
101 {
102 "className": 'details-control',
103 "orderable": false,
104 "data": null,
105 "defaultContent": ''
106 },
107 {title : "ID" },
108 {title : "adj_P_Val" },
109 {title : "P_Value" },
110 {title : "t" },
111 {title : "B" },
112 {title : "logFC" },
113 {title : "Gene_symbol"},
114 {title : "Gene_title"},
115 {title : "Gene_ID"},
116 {title : "Chromosome_annotation"},
117 {title : "GO_Function_ID"}
118
119 ],
120 "order": [[2, 'asc']],
121 dom: 'Bfrtlip',
122 buttons: [
123 'copy', 'csv', 'excel'
124 ]
125
126 } );
127
128 // Add event listener for opening and closing details
129 $('#example tbody').on('click', 'td.details-control', function () {
130 var tr = $(this).closest('tr');
131 var row = table.row( tr );
132
133 if ( row.child.isShown() ) {
134 // This row is already open - close it
135 row.child.hide();
136 tr.removeClass('shown');
137 }
138 else {
139 // Open this row
140 row.child( format(row.data()) ).show();
141 tr.addClass('shown');
142 }
143 } );
144 } );
145
146
147
148 </script>
149 </head>
150 <h2>Boxplots</h2>
151 <img src='###BOXPLOT###'><br/>
152 </td><td>
153 <body>
154 <h2>P-value histogram and Volcano plot</h2>
155 <img src='###HIST###'><br/>
156 </td><td>
157 <body>
158 <table id="example" class="compact stripe row-border" cellspacing="0" width="100%">
159
160 </table>
161 </body>
162 </html>