forked from opencb-bigdata-viz/genome-maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genome-maps.html
executable file
·276 lines (205 loc) · 14.5 KB
/
genome-maps.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
190
191
192
193
194
195
196
197
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Genome Maps</title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="http://cdn.sencha.io/ext-4.1.1a-gpl/resources/css/ext-all-gray.css">
<!--<link rel="stylesheet" type="text/css" href="http://cdn.sencha.io/ext-4.2.0-gpl/resources/css/ext-all-gray.css">-->
<link rel="stylesheet" type="text/css" href="http://jsapi.bioinfo.cipf.es/ext-libs/ChemDoodleWeb/install/ChemDoodleWeb.css">
<!--<link rel="stylesheet" type="text/css" href="http://hub.chemdoodle.com/cwc/latest/ChemDoodleWeb.css">-->
<link rel="stylesheet" type="text/css" href="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jquery.qtip.min.css">
<link rel="stylesheet" type="text/css" href="http://jsapi.bioinfo.cipf.es/libs/resources/css/style.css">
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-16414504-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- EXT-LIBS -->
<!-- Ext-js -->
<script type="text/javascript" src="http://cdn.sencha.io/ext-4.1.1a-gpl/ext-all.js"></script>
<script type="text/javascript" src="http://cdn.sencha.io/ext-4.1.1a-gpl/examples/shared/examples.js"></script>
<!--<script type="text/javascript" src="http://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js"></script>-->
<!--<script type="text/javascript" src="http://cdn.sencha.io/ext-4.2.0-gpl/examples/shared/examples.js"></script>-->
<!-- jQuery -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>-->
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jquery.qtip.min.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jquery.sha1.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jquery.url.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jqXMLUtils.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/jquery-plugins/jquery.smartresize.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/xml2json.js"></script>
<!-- Canvas to SVG converters -->
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/svg/base64.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/svg/canvas2image.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/svg/canvg.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/svg/rgbcolor.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/rawdeflate.js"></script>
<!-- <script type="text/javascript" src="https://raw.github.com/eligrey/BlobBuilder.js/master/BlobBuilder.min.js"/></script> -->
<!-- <script type="text/javascript" src="https://raw.github.com/eligrey/canvas-toBlob.js/master/canvas-toBlob.min.js"/></script> -->
<!-- <script type="text/javascript" src="https://raw.github.com/eligrey/FileSaver.js/master/FileSaver.min.js"/></script> -->
<!-- CHEMDOODLE -->
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/ChemDoodleWeb/install/ChemDoodleWeb-libs.js"></script>
<script type="text/javascript" src="http://jsapi.bioinfo.cipf.es/ext-libs/ChemDoodleWeb/install/ChemDoodleWeb.js"></script>
<!--<script type="text/javascript" src="http://hub.chemdoodle.com/cwc/latest/ChemDoodleWeb-libs.js"></script>-->
<!--<script type="text/javascript" src="http://hub.chemdoodle.com/cwc/latest/ChemDoodleWeb.js"></script>-->
<!-- genome-maps-config -->
<script type="text/javascript" src="./config/gm-config.js"></script>
<!-- LIBS -->
<!-- js-common-libs utils -->
<script type="text/javascript" src="../js-common-libs/utils/event.js"></script>
<script type="text/javascript" src="../js-common-libs/utils/svg.js"></script>
<script type="text/javascript" src="../js-common-libs/utils/normalization.js"></script>
<script type="text/javascript" src="../js-common-libs/utils/colors.js"></script>
<script type="text/javascript" src="../js-common-libs/utils/utils.js"></script>
<!-- opencga ui-widgets -->
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/header-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/user-list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/job-list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/wum/data-list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/paged-view-list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/upload-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/login-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/profile-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/result-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/result-table.js"></script>
<script type="text/javascript" src="../js-common-libs/wum/browser-data-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/opencga-browser-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/wum/manage-projects-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ui-widgets/check-browser.js"></script>
<!-- opencga ws-manager -->
<script type="text/javascript" src="../js-common-libs/wum/wum-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/wum/wum-rest-adapter.js"></script>
<!-- js-common-libs genome-viewer -->
<script type="text/javascript" src="../js-common-libs/genome-viewer/widget/file-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/legend-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/legend-panel.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/url-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/gv-config.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/feature-binary-search-tree.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/genome-viewer.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/track-svg.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/track-svg-layout.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/track-data.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/track-settings-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/feature-cache.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/feature-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/chromosome-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/circular-chromosome-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/karyotype-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/source/data-source.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/cellbase-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/source/file-data-source.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/source/string-data-source.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/source/url-data-source.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/vcf-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/gff2-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/gff3-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/gtf-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/bed-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/source/tabular-data-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/das-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/widget/vcf-file-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/widget/gff-file-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/widget/gtf-file-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/widget/bed-file-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/sequence-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/region.js"></script>
<script type="text/javascript" src="../js-common-libs/opencga/ws-manager/opencga-manager.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/opencga-adapter.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/bam-cache.js"></script>
<script type="text/javascript" src="../js-common-libs/genome-viewer/adapter/bam-adapter.js"></script>
<!-- js-common-libs cellbase ui-widgets -->
<script type="text/javascript" src="../js-common-libs/cellbase/ui-widgets/info-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/cellbase/ui-widgets/gene-info-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/cellbase/ui-widgets/protein-info-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/cellbase/ui-widgets/snp-info-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/cellbase/ui-widgets/transcript-info-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/cellbase/ui-widgets/vcf-variant-info-widget.js"></script>
<!-- js-common-libs cellbase ws-manager -->
<script type="text/javascript" src="../js-common-libs/cellbase/cellbase-manager.js"></script>
<!-- js-common-libs ui-widgets -->
<script type="text/javascript" src="../js-common-libs/ui-widgets/ux-window.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/attributes/genomic-attributes-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/attributes/expression-genomic-attributes-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/attributes/genotype-genomic-attributes-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/attributes/attributes-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/attributes/attributes-panel.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/list/list-panel.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/list/list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/list/genomic-list-panel.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/list/genomic-list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/input-list-widget.js"></script>
<script type="text/javascript" src="../js-common-libs/ui-widgets/chart-widget.js"></script>
<!-- genome-maps -->
<script type="text/javascript" src="./config/gm-plugins-config.json"></script>
<script type="text/javascript" src="./genome-maps.js"></script>
<!-- genome-maps plugins -->
<script type="text/javascript" src="./plugins/generic-plugin.js"></script>
<script type="text/javascript" src="./plugins/my-plugin.js"></script>
<script type="text/javascript" src="./plugins/expression.js"></script>
<script type="text/javascript" src="./plugins/genotype.js"></script>
<script>
// Ext.application({
// launch: run
// });
WORKERS_PATH = "../js-common-libs/opencga/ui-widgets/";
Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', 'http://cdn.sencha.io/ext-4.1.1a-gpl/examples/ux');
Ext.QuickTips.init();
Ext.require([
'Ext.ux.grid.FiltersFeature',
'Ext.grid.PagingScroller',
'Ext.ux.data.PagingMemoryProxy'
]);
var counter = 1000000;
function test(ms,positions){
if (ms==null){ms = 200;}
if (positions==null){positions = 250000;}
genomeMaps.genomeViewer.trackSvgLayout.onMove.notify(-1);
setTimeout("test()", ms);
counter = counter + positions;
}
Ext.onReady(run);
var genomeMaps;
function run(){
CheckBrowser();
// var pathname = window.location.href;
// console.log(pathname);
genomeMaps = new GenomeMaps("mydiv"); //the div must exist
// genomeMaps.addPlugin();
// console.log(Ext.ComponentManager.getCount());
genomeMaps.draw();
// console.log(Ext.ComponentManager.getCount());
// gv = new GenomeViewer("mydiv");
// gv.draw();
// gv1.setSpecies("Mus musculus");
// var gv2 = new GenomeViewer("gv_div1");
// // vamos par alla!!!
// gv2.draw();
//GenomeViewer v2
// gv1 = new GenomeViewer("mydiv",AVAILABLE_SPECIES[0],{
// //toolbar: Ext.create('Ext.toolbar.Toolbar', {height:27}),
// availableSpecies: AVAILABLE_SPECIES
// });
// gv1.draw();
//RUN TEST
if($.url().param('test') == "true") {
setTimeout("test()", 2000);
}
}
</script>
</head>
<body style="overflow: hidden">
<div id="checkBrowser"></div>
<div id="mydiv"></div>
</body>
</html>