forked from GMOD/jbrowse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 2.22 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content = "text/html; charset=utf-8">
<title>JBrowse</title>
<link rel="stylesheet" type="text/css" href="genome.css"></link>
<script type="text/javascript" src="src/dojo/dojo.js" data-dojo-config="isDebug: 1, async: 1"></script>
<script type="text/javascript">
window.onerror=function(msg){
document.body.setAttribute("JSError",msg);
}
var JBrowse;
require({ baseUrl: 'src', packages: ['JBrowse','dojo','dijit','dojox','jszlib'] },
[ 'JBrowse/Browser', 'dojo/io-query' ],
function (Browser,ioQuery) {
var queryParams = ioQuery.queryToObject( window.location.search.slice(1) );
var dataRoot = queryParams.data || 'data';
JBrowse = new Browser({
containerID: "GenomeBrowser",
refSeqs: dataRoot + "/seq/refSeqs.json",
baseUrl: dataRoot+'/',
include: [
'jbrowse_conf.json',
dataRoot + "/trackList.json"
],
nameUrl: dataRoot + "/names/root.json",
defaultTracks: "DNA,gene,mRNA,noncodingRNA",
queryParams: queryParams,
location: queryParams.loc,
forceTracks: queryParams.tracks,
show_nav: queryParams.nav,
show_tracklist: queryParams.tracklist,
show_overview: queryParams.overview,
config_list: queryParams.config
});
});
</script>
</head>
<body>
<div id="GenomeBrowser" style="height: 100%; width: 100%; padding: 0; border: 0;"></div>
<div style="display: none">JBrowseDefaultMainPage</div>
</body>
</html>