-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSyn.g
73 lines (61 loc) · 2.04 KB
/
Syn.g
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
//genesis
//
// Syn.g - two synaptically coupled neuron populations
include config.g
include chan.g
include library.g
include tools.g
if({argc})
get_options {argv}
end
siminit
stage making prototypes ...
create neutral /library
disable /library
pushe /library
create compartment compartment
pope
make_channels /library
make_cell {cellproto} /library/cell
stage creating cell ...
create neutral /model
// ts (tonic stim)
create_volume /library/cell /model/ts 1000 \
{xtec} {-tecwidth / 2} 0.0 {teclength} {tecwidth} {tecdepth}
// mm (mlr)
create_volume /library/cell /model/mm 1000 \
{xmlr} {-mlrwidth / 2} 0.0 {mlrlength} {mlrwidth} {mlrdepth}
stage setting parameters ...
modfield /model/##[TYPE=compartment] Rm -uniform 0.5 1.5
modfield /model/##[TYPE=compartment] Cm -uniform 0.5 1.5
modfield /model/## tau -uniform 0.5 1.5
modfield /model/##/KCaN Gbar -uniform 0.5 1.5
modfield /model/##/KNa_slow Gbar -uniform 0.5 1.5
modfield /model/t#[]/##/CaLVA Gbar -fixed 0.0
modfield /model/t#[]/##/KCaN Gbar -fixed 0.0
modfield /model/t#[]/##/KNa_slow Gbar -fixed 0.0
setfield /model/ts[]/soma inject {inject} -empty_ok
stage connecting cells ...
// ts -> mm
volume_connect /model/ts[]/iseg/spike /model/mm[]/##/AMPA mm \
-1 -1 -1 1 1 1 {synptm}
volume_connect /model/ts[]/iseg/spike /model/mm[]/##/NMDA mm \
-1 -1 -1 1 1 1 {synptm}
volume_delay /model/ts[]/iseg/spike /model/mm[]/##/AMPA {evelocity}
volume_delay /model/ts[]/iseg/spike /model/mm[]/##/NMDA {evelocity}
volume_weight /model/ts[]/iseg/spike /model/mm[]/##/AMPA {synwtm}
volume_weight /model/ts[]/iseg/spike /model/mm[]/##/NMDA {synwtm}
stage creating data recorders ...
recspikes /model/ts[]/iseg/spike output/_spts spts
recspikes /model/mm[]/iseg/spike output/_spmm spmm
recdata /model/ts[]/soma Vm /output/vmts {simtime}
recdata /model/mm[]/soma Vm /output/vmmm {simtime}
stage scheduling simulation ...
simschedule
stage simulating {simtime} sec ...
step {simtime} -time
stage all done, exiting ...
writedata /output/vmts output/_vmts
writedata /output/vmmm output/_vmmm
simfinish
quit