-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult.html
189 lines (157 loc) · 11 KB
/
result.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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
157
158
159
160
161
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- <meta http-equiv="X-Frame-Options" content="ALLOW-FROM http://flybase.org"> -->
<title>single species</title>
<link href="https://fonts.googleapis.com/css?family=Dosis|Kavoon" rel="stylesheet">
<script type='text/javascript' src='https://d3js.org/d3.v4.min.js'></script>
<link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script type='text/javascript' src='javascripts/jquery.pwstabs.js'></script>
<link rel="stylesheet" type="text/css" href="stylesheets/jquery.pwstabs.css">
<script type="text/javascript" src="javascripts/plotly.js"></script>
<link rel='stylesheet' type='text/css' href='stylesheets/plot.css'/>
<link rel='stylesheet' type='text/css' href='stylesheets/jquery.tree-multiselect.min.css'/>
<link rel="stylesheet" type='text/css' href="stylesheets/heatmap.css" />
<script type="text/javascript" src="javascripts/heat_map.js"></script>
<script type="text/javascript" src='javascripts/boxplotScript.js'></script>
<script type='text/javascript' src='javascripts/script.js'></script>
<script type="text/javascript" src="javascripts/jquery.tree-multiselect.min.js"></script>
<script type='text/javascript' src='javascripts/mannwhitneyu.js'></script>
<script type='text/javascript' src='javascripts/plotstretcher.js'></script>
<!-- <link rel='stylesheet' type='text/css' href='stylesheets/table.css'/> -->
</head>
<body>
<br>
<div id = "isoFormTable">
<div data-pws-tab="gene1" data-pws-tab-name="FBgnXXXX">the first tab</div>
<div data-pws-tab="gene2" data-pws-tab-name="AGAPXXXX">the second tab</div>
<div data-pws-tab="gene3" data-pws-tab-name="AAELXXXX">the third tab</div>
</div>
<div id="tooltip" class="hidden">
<p><span id="value"></p>
</div>
<div style='height:300px; margin-top:100px;
padding:5px;position:fixed;top:382px;left:900px'>
<div style='background: rgba(122, 145, 255,0.05);padding:15px;font-size:15px;line-height:1.2;width:293px;border-radius:
5px;'><span
style='color:#7a91ff;font-weight:bold;font-size:16px;line-height:1.5'><img
style="width:25px; vertical-align:text-top;" src="purplemos.png">
Interact with <span
style="font-family:'Kavoon',cursive;">IsoPlot</span></span><br><br>•
Hover an exon to highlight all its neighboring exons in
overview.<br><br>
• Click an exon to move all the transcripts which contain
that exon to the top.<br><br> • Hover <img style="width:20px;
vertical-align:text-bottom;margin:0 2px;"
src="click.png"> to highlight the transcript in overview.<br><br>
• Click <img style="width:20px;
vertical-align:text-bottom;margin:0 2px;"
src="click.png"> to highlight the transcript in expression view below.
<br><br></div>
</div>
<script type="text/javascript">
var urlGenes = "";
var selectedGenes = [];
for (var i = 0;i<localStorage.length; i++){
selectedGenes.push(localStorage.key(i))
}
$(document).ready(function(){
renewview();
$('#isoFormTable').pwstabs({
effect:'scale',
defaultTab:1,
containerWidth:'100%',
tabsPosition:'horizontal',
horizontalPosition:'top',
theme:'pws_theme_purple'
});
})
function renewview(){
var result = $("#isoFormTable");
result.children().remove('div');
for(var i = 0;i<selectedGenes.length;i++){
var oneDiv ='<p style="font-weight: bold;">Gene annotation</p>'+
'<div class="div_class" id = "svgOverview'+i+'" style="height:230px"></div>'+
'<div style="font-size:13px; margin-left: 600px;margin-bottom: 30px;"><input type="checkbox" id="verti_line'+i+'" checked >show genomic coordinates on hover<input type="checkbox" id="curve'+i+'" onchange="renewCurveview(this)" checked >curved connector </div>'+
'<p style="font-size:15px; -webkit-margin-after: 0px;"><span style="color:#BDA6F9; font-size:23px;">   ■ </span>Exon    <span style="color:#ECA0C3;font-size:23px;">■</span>: UTR    <span style="color:#B4C1FF;font-size:23px;">■</span>: CDS    <span style="color:#FFE1A8;font-size:23px;">■</span>: Novel transcripts assembled by StringTie    <span style="color:#C6C7C4;font-size:23px;">■</span>: Transcriptional active regions (TARs)<br></p>'
+
'<div class="div_class2" id = "isoform_div'+i+'" style="height:10px;font-weight: bold;">'+
'<img src="arrows.png" style="width:10px;height:10px;vertical-align: middle;"><span style="height: 10px;"> Isoforms</span>'+
'</div>'+
'<div class="div_class3" id = "svgDetail'+i+'" style=""></div>'+
'</div>'+
'<div class="div_class2" id="boxplot_div'+i+'"style="height:10px;font-weight:bold;">'+'<span style="height:10px;">'+' '+' Transcript-level expression of RNA-seq experiments</span>'+'</div>'+
'<div class="div_samples" id = "sampleDetail'+i+'">'+'<div class="div_boxplot" id ="boxplotDetail'+i+'"></div>'+'<input id="box_dlbutton'+i+'" type="button" value="Download expression data" style="position:absolute; top:980px; left: 908px;overflow:auto;padding:5px;border:2px;yellow;background-color:#EEFFCC;cursor:pointer;">'+
'<br><div style=" position: absolute; top: 1010px; left: 907px; width:300px;height:200px;padding: 15px;overflow: auto;"><p style="margin:5px;margin-bottom:10px;font-size:medium;"> Analysis of differentially expressed transcripts in each stage. <span title="This calculator conducts a two-sided Wilcoxon Rank Sum test for two independent samples: FPKM values of a transcript and those of the other transcripts.\nMeaning of asterisks:\n ***: p-value<0.005 \n ** : p-value<0.01 \n * : p-value<0.05 \nns: p-value>=0.05\nNA: not available" style="cursor:help;color:#7A91FF;"><a href="http://isoplot.iis.sinica.edu.tw/tutorial.html" target="_new" style="cursor: help;"><u>More.</u></a></span></p> <table style=" font-size: 13px;"><col width="100"><col width="40"> <col width="40"> <col width="40"> <col width="40"><thead id="thead'+i+'"></thead><tbody id="tbody'+i+'"></tbody></table></div>'+
'<div class="selectbox" id="selectbox'+i+'"style="position: absolute; left: 909px; top: 780px;"><p> >>Select samples and click submit to regenerate boxplot</p>'+
'<select id = "samplesChoose'+i+'" multiple="multiple"></select>'+
'<input id="box_button'+i+'" type="button" value="submit" style="padding:5px;border:2px blue none;background-color:pink;cursor:pointer;"></div>'+
'<div class="group"><div class="div_class2" id="boxplot_div'+i+'"style="height:10px;font-weight:bold;">'+
'<span style="height:10px;">'+' '+' Pairwise sequence identity of transcripts</span>'+'</div>'+
'<div class="div_heatmap" id="heatmap'+i+'"></div>'+
'<div style="margin:5px;padding:5px;font-size:14px;line-height:1.3;width:300px;height:300px;padding:5px;float:left; padding:15px;border-radius:5px;background: rgba(122, 145, 255,0.05);">'+
'<span style="color:#7a91ff;font-weight:bold;font-size:16px;line-height:1.5">'+
'<img style="width:25px; vertical-align:text-top;" src="purplemos.png">Interact with <span style="font-family:"Kavoon",cursive;">IsoPlot</span></span><br>'+
'<br>• Click a transcript ID to sort the column or row by identity.<br><br>'+
'<span style="color:#7a91ff;font-weight:bold;font-size:16px;line-height:1.5"><img style="width:25px;vertical-align:text-top;"src="purplemos.png">Download alignment result</span>'+
'<br><br>• Click a cell in the heat map and "Download" to download the alignment result of the selected transcript pair.<br><br>Selected transcripts:<br>'+
'<span id="transcriptA'+i+'" style="color:#3c2dd1">None</span><br><span id="transcriptB'+i+'" style="color:#3c2dd1">None</span><br>'+
'<input id="download_btn'+i+'" type="button" value="Download" style="padding:5px;border:2px blue none;background-color:pink;cursor:pointer;"><br><br></div>'+ '<div style="width:900px;color:#7a91ff;font-weight:bold;font-size:16px;line-height:2.5"><br></div>'+
'<div class="div_heatTrans" id="speTrans'+i+'"><img style="width:25px; vertical-align:text-top;" src="purplemos.png"><span style="color:#7a91ff;font-weight:bold;font-size:16px;line-height:1.5">Select and click a cell in the heat map to visualize the alignment result</span><p style="font-size:15px;"><span style="color:#FFE1A8; font-size:23px;">   ■ </span>Match    <span style="color:#f975b2;font-size:23px;">■</span>: Mismatch    <span style="color:#C6C7C4;font-size:23px;">■</span>: Gap    <span style="color:#2d0acc;font-weight: bold;">‒</span>/<span style="color:#D5D9FD;font-size:23px;">■</span>: Intron  <br><span style="line-height:2.5;">   [Scroll above to zoom in/out; Drag and drop to move the result arround; Click to autoscale]</span></p></div></div>'
;
$('<div>',{
'data-pws-tab':"ortho_"+i,
'data-pws-tab-name':selectedGenes[i]
}).append(oneDiv).appendTo(result);
$('#isoform_div'+i).click(function(e){
e.preventDefault();
//$(this).next("div").slideToggle();
if($(this).next("div").hasClass("toggled")) {
$(this).next("div").animate({"height": "350px"}).removeClass("toggled");
} else {
$(this).next("div").animate({"height": "630px"}).addClass("toggled");
}
});
d3.json(urlGenes+selectedGenes[i]+"&index="+i,function(error,genedata){
drawData(genedata,genedata.index)
drawBoxPlot(genedata,genedata.index)
drawHeatMap(genedata,genedata.index)
});
}
}
function renewCurveview(oneGene){
var index = oneGene.getAttribute('id').substr(5)
d3.json(urlGenes+selectedGenes[index]+"&index="+index,function(error,genedata){
drawData(genedata,genedata.index);
});
}
function drawHeatMap(genedata,index){
var columnsID = [],rowsID = [];
var geneName = genedata.gene_id
if(localStorage.length > 1){
for ( var i = 0 ; i < localStorage.length; i++ ) {
if(localStorage.key(i) === geneName){
columnsID = localStorage.getItem(geneName).split(',');
}
else{
rowsID = rowsID.concat(localStorage.getItem(localStorage.key(i)).split(','))
}
}
heatmap_display(columnsID,rowsID, "#heatmap"+index);
}
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-88670245-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>