-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
128 lines (124 loc) · 4.12 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
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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>HiGlass Bigwig Data Fetcher</title>
<style type="text/css">
.canvasjs-chart-credit {
display: none;
}
</style>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/higlass@1.11.0/dist/hglib.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.0.3/pixi.min.js"></script>
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script crossorigin src="https://unpkg.com/higlass@1.11.0/dist/hglib.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.32.1/react-bootstrap.min.js"></script>
</head>
<body>
Here's some text
<div style=""></div>
<div style="margin: auto">
<div style="height: 1500px; width: 600px; border: 1px solid black;"
id="development-demo">
</div>
</div>
And some other text
<div style="height: 1500px"></div>
</body>
<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-77756807-1', 'auto');
ga('send', 'pageview');
</script>
<script type="module">
import register from 'higlass-register';
import { BigwigDataFetcher } from './dist/index.js';
register(
{ dataFetcher: BigwigDataFetcher, config: BigwigDataFetcher.config },
{ pluginType: "dataFetcher" }
);
const viewConfig = {
"editable": true,
"views": [
{
"tracks": {
"top": [
{
"filetype": "chromsizes-tsv",
"server": "//higlass.io/api/v1",
"tilesetUid": "NyITQvZsS_mOFNlz5C2LJg",
"uid": "GaQMh9G-Rg6CD2upxKYvUQ",
"type": "chromosome-labels",
"options": {
"color": "#808080",
"stroke": "#ffffff",
"fontSize": 12,
"fontIsLeftAligned": false,
"showMousePosition": false,
"mousePositionColor": "#000000",
"reverseOrientation": false
},
"width": 20,
"height": 30
},
{
"data": {
"type": "bbi",
"url": "https://aveit.s3.amazonaws.com/higlass/bigwig/example.chr1.10000-1160000.bw",
"chromSizesUrl": "https://aveit.s3.amazonaws.com/higlass/data/sequence/hg38.chrom.sizes",
},
"uid": "bw",
"type": "bar",
"options": {
"align": "bottom",
"labelColor": "[glyph-color]",
"labelPosition": "topLeft",
"labelLeftMargin": 0,
"labelRightMargin": 0,
"labelTopMargin": 0,
"labelBottomMargin": 0,
"labelShowResolution": false,
"labelShowAssembly": true,
"axisLabelFormatting": "scientific",
"axisPositionHorizontal": "right",
"barFillColor": "darkgreen",
"valueScaling": "linear",
"trackBorderWidth": 0,
"trackBorderColor": "black",
"labelTextOpacity": 0.4,
"barOpacity": 1,
"valueScaleMin": 0,
//"valueScaleMax": 80,
"name": "GnomAD coverage"
},
"width": 20,
"height": 100
},
]
},
"initialXDomain": [
10000,
10600,
]
}
]
};
window.hglib.viewer(
document.getElementById('development-demo'),
viewConfig,
{ bounded: false },
);
</script>
</html>