-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhiglass.html
More file actions
121 lines (113 loc) · 3.52 KB
/
Copy pathhiglass.html
File metadata and controls
121 lines (113 loc) · 3.52 KB
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://unpkg.com/higlass@1.5.7/dist/hglib.css" type="text/css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css">
<script crossorigin src="https://unpkg.com/react@16.6/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16.6/umd/react-dom.production.min.js"></script>
<script crossorigin src="https://unpkg.com/pixi.js@5/dist/pixi.min.js"></script>
<!-- To render HiGlass with the Canvas API include the pixi.js-legacy instead of pixi.js -->
<!-- <script crossorigin src="https://unpkg.com/pixi.js-legacy@5/dist/pixi-legacy.min.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.32.1/react-bootstrap.min.js"></script>
<script src="higlass-unix-time-track/dist/higlass-unix-time-track.js"></script>
<script src="higlass-unix-time-track.js"></script>
<script src="https://unpkg.com/higlass-sequence/dist/higlass-sequence.js"></script>
<script src="https://unpkg.com/higlass@1.6/dist/hglib.min.js"></script>
</head>
<body >
<div id="development-demo" style="width: 800px;
background-color: white;"></div>
</body>
<script>
const hgApi = hglib.viewer(
document.getElementById('development-demo'),
{
"editable": true,
"zoomFixed": false,
"trackSourceServers": [
"https://cgap-higlass.com/api/v1"
],
"views": [
{
"initialXDomain": [
1663303164,
1726461564
],
"tracks": {
"top": [
{
"type": "unix-time-track",
"server": "http://localhost:8787/api/v1",
"title": "test",
"tilesetUid": "michael",
"width": 300,
"height": 150,
"options": {
"feature": ["laenge_bbwz"],
"visual": "boxplot"
}
},
{
"type": "unix-time-track",
"server": "http://localhost:8787/api/v1",
"tilesetUid": "michael",
"width": 300,
"height": 150,
"options": {
"feature": ["rus_tauk"],
"visual": "mean",
"mark": "bar"
}
},
{
"type": "unix-time-track",
"server": "http://localhost:8787/api/v1",
"tilesetUid": "michael",
"width": 300,
"height": 150,
"options": {
"feature": ["rts_tau"],
"visual": "mean",
"mark": "bar"
}
},
{
"type": "unix-time-track",
"server": "http://localhost:8787/api/v1",
"tilesetUid": "michael",
"width": 300,
"height": 150,
"options": {
"feature": ["rus_taus"],
"visual": "mean",
"mark": "bar"
}
},
{
"type": "unix-time-track",
"server": "http://localhost:8787/api/v1",
"tilesetUid": "michael",
"width": 300,
"height": 150,
"options": {
"feature": ["rus_tauk", "rts_tau","rus_taus"],
"visual": "mean",
"mark": "line"
}
}
],
"bottom": [
{
"type": "unix-time-scale",
"server": "http://localhost:8787/api/v1",
"width": 300,
"height": 50
}
]
}
}
]
}
);
</script>
</html>