-
Notifications
You must be signed in to change notification settings - Fork 1
/
Capsaicin_stimulation.hoc
107 lines (95 loc) · 2.5 KB
/
Capsaicin_stimulation.hoc
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
// ALL
// Which Navlesses to stimulate
objectvar stim[NavLessNum]
objref NavLessStim_vec
NavLessStim_vec = new Vector()
NavLessStim_vec.indgen(0,NavLessNum-1,1) //For stimulating ALL NavLesses
//NavLessStim_vec.append(0) //For specific Navlesses. Initiated to stimulating Nevless[0] but can be assigned to any (e.g. ...append(2,5) to stimulate NavLess 2 and 5)
for i=0,NavLessStim_vec.size-1{
q=NavLessStim_vec.x[i]
print "Stimuating NavLess (",q,")"
NavLess[q] stim[q] = new Caps_Puff(0.005)
stim[q].onset = 500
stim[q].tau_act = 1e6
stim[q].tau_inact = 6500
stim[q].gmax = 150
stim[q].X = 1e-6
stim[q].pump = 500
}
// Changing g_trans for the relevant terminals
// Note: The model begins with that all terminals and NavLesses have g_trans in them
// The loop will go over all the NavLesses. If a NavLess exist in the NavLessStim_vec ('vec.contains') it will go on to the next one
for i=0,NavLessNum-1{
if (NavLessStim_vec.contains(i)==1){
i
} else{
if (i==0){
NavLess[i].g_transducer_pas=0
terminal[26].g_transducer_pas=0
}
if (i==1){
NavLess[i].g_transducer_pas=0
terminal[25].g_transducer_pas=0
}
if (i==2){
NavLess[i].g_transducer_pas=0
terminal[23].g_transducer_pas=0
}
if (i==3){
NavLess[i].g_transducer_pas=0
terminal[21].g_transducer_pas=0
}
if (i==4){
NavLess[i].g_transducer_pas=0
terminal[20].g_transducer_pas=0
}
if (i==5){
NavLess[i].g_transducer_pas=0
terminal[19].g_transducer_pas=0
}
if (i==6){
NavLess[i].g_transducer_pas=0
terminal[17].g_transducer_pas=0
}
if (i==7){
NavLess[i].g_transducer_pas=0
terminal[16].g_transducer_pas=0
}
if (i==8){
NavLess[i].g_transducer_pas=0
terminal[14].g_transducer_pas=0
}
if (i==9){
NavLess[i].g_transducer_pas=0
terminal[13].g_transducer_pas=0
}
if (i==10){
NavLess[i].g_transducer_pas=0
terminal[12].g_transducer_pas=0
}
if (i==11){
NavLess[i].g_transducer_pas=0
terminal[11].g_transducer_pas=0
}
if (i==12){
NavLess[i].g_transducer_pas=0
terminal[6].g_transducer_pas=0
}
if (i==13){
NavLess[i].g_transducer_pas=0
terminal[5].g_transducer_pas=0
}
}
}
/*
objref Central_V, NewFile_Central
Central_V = new Vector()
central Central_V.record(&v(0.995))
run()
strdef filename1
sprint(filename1, "%dps Cap (All) ENHANCED_SUMM_MODEL L is %d xRa is %d", 150,50*SF,Rorg)
NewFile_Central = new File(filename1)
NewFile_Central.wopen(filename1)
Central_V.printf(NewFile_Central)
NewFile_Central.close()
*/