-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (47 loc) · 2.48 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="rickshaw.min.css">
<link rel="stylesheet" href="hh.css">
<script src="d3-rickshaw.min.js"></script>
<script src="rickshaw.min.js"></script>
<!--<script src="d3.min.js"></script>
<link rel="stylesheet" href="c3.min.css">
<script src="c3.min.js"></script>-->
<script src="hh.js"></script>
</head>
<body>
<div class="container">
<h2>Hodgkin-Huxley Simulation</h2>
<p>
This simulation of the Hodgkin-Huxley equations is a simple model of a neuron, based on code I wrote in graduate coursework at Princeton. By adding current or setting a voltage clamp, you can observe the predictions this simple model makes. This model includes terms for the sodium channel (m and h gates) and the potassium channel (n gate). In addition, it has a term for leak channels (which have relatively small conductance).
</p>
<div class="voltage"></div>
<div class="gates"></div>
<div class="current"></div>
<form class="settings">
<label>
<input name="type" type="radio" value="add-current" checked />
Add Current (μA/cm<sup>2</sup>)
<input name="add-current" type="text" value="0, 5, 0, 50, 0" />
</label><br />
<label>
<input name="type" type="radio" value="voltage-clamp" />
Voltage Clamp (mV)
<input name="voltage-clamp" type="text" value="-65, 0, -65, -90, 0, -90" />
</label><br />
<label>g<sub>Na</sub> (mS/cm<sup>2</sup>) <input name="gNa" type="number" value="120" step="any" /></label>
<label>E<sub>Na</sub> (mV) <input name="VNa" type="number" value="50" step="any" /></label><br />
<label>g<sub>K</sub> (mS/cm<sup>2</sup>) <input name="gK" type="number" value="36" step="any" /></label>
<label>E<sub>K</sub> (mV) <input name="VK" type="number" value="-77" step="any" /></label><br />
<label>g<sub>L</sub> (mS/cm<sup>2</sup>) <input name="gL" type="number" value="0.3" step="any" /></label>
<label>E<sub>L</sub> (mV) <input name="VL" type="number" value="-54.4" step="any" /></label><br />
<input type="submit" value="Simulate!" />
</form>
</div>
</body>
</html>