-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
228 lines (218 loc) · 10.5 KB
/
index.html
File metadata and controls
228 lines (218 loc) · 10.5 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Dynamic Influence Networks</title>
<!-- CSS Libs-->
<link href="https://fonts.googleapis.com/css?family=Istok+Web" rel="stylesheet">
<!-- JS Libs-->
<script src="./lib/d3.v4.js" charset="utf-8"></script>
<script src="./lib/WebContent/zip.js"></script>
<script src="./lib/WebContent/zip-fs.js"></script>
<script src="./lib/lodash.js" charset="utf-8"></script>
<!-- CSS Src -->
<link rel="stylesheet" href="./src/css/main.css" />
<link rel="stylesheet" href="./src/css/toolbar.css" />
<!-- JS Src -->
<!-- Main Script -->
<script src="./src/js/main.js" charset="utf-8"></script>
<!-- Individual Visualization Scripts -->
<script src="./src/js/focusSlider.js" charset="utf-8"></script>
<script src="./src/js/phenotype.js" charset="utf-8"></script>
<script src="./src/js/forceDirected.js" charset="utf-8"></script>
<script src="./src/js/lineGraph.js"></script>
<script src="./src/js/forceDirectedUI.js"></script>
<script src="./src/js/sliderUI.js"></script>
<script src="./src/js/animation.js" charset="utf-8"></script>
<script src="./src/js/paintingManager.js" charset="utf-8"></script>
</head>
<body onload="App.init()" onresize="App.resize()">
<div class="mainCol" id="forceDirectedDiv">
<div id="toolbar" class="control">
<div id="toolbar-nav-left"></div>
<div id="toolbar-nav-right"></div>
<span class="ui ui-data loading">
<h4>Dataset</h4>
<div>
<form id="form">
<input id="input" type="file" accept="application/zip,application/json" style="display:none;">
</form>
<div id="filename"></div>
<button id="changeFile">Upload</button>
<hr>
Examples:<br>
<a href="./?flux_0.json">EGFR Simulation</a><br>
<a href="./?PreyPred/flux_0.json">Predator Prey (Simple)</a><br>
<a href="./?MiniKaiRun/flux_0.json">Kai C (Complex)</a>
</div>
</span>
<span class="ui ui-clusters">
<h4>Clustering</h4>
<div>
<div class="center">Threshold</div>
<input type="text" id="set-threshold">
<div class="center">Mode</div>
<div class="left-align">
<div>
<input name="mode" type="radio" id="timestep-mode" checked>
<label for="timestep-mode">Timestep</label>
</div>
<div>
<input name="mode" type="radio" id="global-mode">
<label for="global-mode">Global</label>
</div>
<div>
<input name="mode" type="radio" id="window-mode">
<label for="window-mode">Windowed</label>
</div>
<div>
Time +/-
<input type="text" id="set-timewindow" value="5">
</div>
</div>
</div>
</span>
<span class="ui ui-labels">
<h4>Appearance</h4>
<div>
<div class="center">Labels</div>
<input type="checkbox" id="show-labels">
<label for="show-labels"></label>
<input type="range" value="50" id="label-size-slider">
</div>
<div>
<div class="center">Numbers</div>
<input type="checkbox" id="sci">
<label for="sci">
Sci. notation
</label>
</div>
</span>
<span class="ui ui-mark">
<h4>Layout<span></span></h4>
<div>
<button id="unpin">Unpin</button>
<button id="pin">Pin</button>
</div>
<div>
<div class="center">
Mark
</div>
<input type="checkbox" id="paint-start">
<label for="paint-start">
</label>
<button id="paint-reset"></button>
<div id="palette">
<div id="palette-1">
<button class="cs cs20"></button>
<button class="cs cs0"></button>
<button class="cs cs1"></button>
<button class="cs cs2"></button>
<button class="cs cs4"></button>
<button class="cs cs5"></button>
<button class="cs cs6"></button>
<button class="cs cs7"></button>
</div>
<div id="palette-2">
<button class="cs cs8"></button>
<button class="cs cs9"></button>
<button class="cs cs12"></button>
<button class="cs cs13"></button>
<button class="cs cs16"></button>
<button class="cs cs17"></button>
<button class="cs cs18"></button>
<button class="cs cs19"></button>
</div>
</div>
</div>
</span>
<span class="ui ui-legend">
<h4>Legend</h4>
<div class="legend-type hits">
Num. hits
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="legend-type inf">
Amt. influence
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="legend-type theme">
<div class="center">Links</div>
<input type="checkbox" id="hide-positive" checked>
<label for="hide-positive">
</label>
Positive
<div class="theme-color neg"></div>
<br/>
<input type="checkbox" id="hide-negative" checked>
<label for="hide-negative">
</label>
Negative
<div class="theme-color pos"></div>
<br/>
<input type="checkbox" id="theme">
<label for="theme">
Color safe
</label>
</div>
</span>
</div>
<div class="animationControls">
<div class="animationSpeedDiv">
<p class="animationSpeed">1x</p>
</div>
<i class="animationIcon frIcon"></i>
<i class="animationIcon sbIcon"></i>
<i class="animationIcon ppIcon"></i>
<i class="animationIcon sfIcon"></i>
<i class="animationIcon ffIcon"></i>
</div>
</div>
<div class="sideCol">
<div id="help">
<h4></h4>
<div>
<p>
DYNAMIC INFLUENCE NETWORKS, a visual analytics tool for representing protein interaction networks, based on KaSim, an open source stochastic simulator of rule-based models.
</p>
<p>
LEFT: A network layout of KaSim data. <em>Rules</em> are represented as circles; <em>influences</em> on other rules are represented with lines.
</p>
<p>
If the magnitude of influence of one rule on another is higher than a user-given threshold (defined by the influence slider), they are clustered together (represented by colored circles).
</p>
<p>
Click and drag a rule or cluster to pin it in place; click again to unpin it. Use the LAYOUT tab to pin nodes in place or to manually mark nodes into different clusters.
</p>
<p>
RIGHT, TOP: A phenotype graph representing the overall activity of the network over the entire time window.
</p>
<p>
RIGHT, MIDDLE AND BOTTOM: Right-click any rule in the network layout to display its fluxes over time as a line graph.
</p>
<p>
DATASET: Drag and drop a zipped folder of json files generated by KaSim onto the page. They must be named in consecutive order: e.g., flux_0.json, flux_1.json, flux_2.json.
</p>
</div>
</div>
<div class="row phenograph" id="phenoVis">
</div>
<div class="row linegraph" id="topVis">
</div>
<div class="row linegraph" id="bottomVis">
</div>
<div class="row focusslider" id="focusSlider">
</div>
<div id="linegraph-help">
Tip: select a rule with right-click to bring up more in-depth information over time
</div>
</div>
</body>
</html>