-
Notifications
You must be signed in to change notification settings - Fork 0
/
assembleBigThal.m
executable file
·139 lines (122 loc) · 4.67 KB
/
assembleBigThal.m
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
function specification = assembleBigThal(numCellsScale)
% -------------------------------------------------------------------
%% 1. Make master equations and initialize
% -------------------------------------------------------------------
% Define equations of cell model (same for all populations)
eqns={
'dv/dt=(@current)/Cm'
'Cm = 1' % uF/cm^2
'spike_threshold = -25'
'monitor v.spikes(spike_threshold)'
'vIC = -68' % mV
'vNoiseIC = 20' % mV
'v(0) = vIC+vNoiseIC*rand(1,Npop)'
};
% Initialize DynaSim specification structure
specification=[];
% -------------------------------------------------------------------
%% 2. Assemble Cortex Model and Intracortical Connections
% -------------------------------------------------------------------
% PY cells and intercompartmental PY connections:
specification.populations(1).name='PYdr';
specification.populations(1).size=round(numCellsScale*100);
specification.populations(1).equations=eqns;
specification.populations(1).mechanism_list={...
'iAppliedStimAS22',...
'iPoisson_AS22',...
'iLeak_PYdr_JB12',...
'iNaP_PYdr_JB12',...
'iAR_PYdr_JB12',...
'CaBuffer_PYdr_JB12',...
'iKCa_PYdr_JB12',...
'iHVA_PYdr_JB12',...
};
% Note that the soma mechanisms are somewhat sensitive to initial conditions
specification.populations(2).name='PYso';
specification.populations(2).size=round(numCellsScale*100);
specification.populations(2).equations=eqns;
specification.populations(2).mechanism_list={...
'iLeak_PYso_JB12',...
'iNa_PYso_JB12',...
'iK_PYso_JB12',...
'iA_PYso_JB12',...
'iKS_PYso_JB12',...
};
specification.connections(1).direction='PYso<-PYdr';
specification.connections(1).mechanism_list={...
'iCOM_PYso_PYdr_JB12',...
'iNaCurrs_PYso_PYdr_JB12',...
};
specification.connections(2).direction='PYdr<-PYso';
specification.connections(2).mechanism_list={...
'iCOM_PYdr_PYso_JB12',...
'iAMPA_PYdr_PYso_JB12',...
'iNMDA_PYdr_PYso_JB12'};
% IN cells and intercompartmental IN connections:
specification.populations(3).name='IN';
specification.populations(3).size=round(numCellsScale*20);
specification.populations(3).equations=eqns;
specification.populations(3).mechanism_list={...
'iAppliedStimAS22',...
'iLeak_IN_JB12',...
'iNa_IN_JB12',...
'iK_IN_JB12',...
};
% PY<->IN connections/synapses
specification.connections(3).direction='IN<-PYso';
specification.connections(3).mechanism_list={...
'iAMPA_IN_PYso_JB12',...
'iNMDA_IN_PYso_JB12'};
specification.connections(4).direction='PYso<-IN';
specification.connections(4).mechanism_list={...
'iGABAA_PYso_IN_JB12'};
specification.connections(5).direction='IN<-IN';
specification.connections(5).mechanism_list={...
'iGABAA_IN_IN_JB12'};
% -------------------------------------------------------------------
%% 3. Assemble Thalamic Model and Intrathalamic Connections
% -------------------------------------------------------------------
specification.populations(4).name='TC';
specification.populations(4).size=round(numCellsScale*50);
specification.populations(4).equations=eqns;
specification.populations(4).mechanism_list={...
'iAppliedStimAS22',...
'iPoisson_AS22',...
'iNa_TC_AS17',...
'iK_TC_AS17',...
'iLeak_TC_AS17',...
'iKLeak_TC_AS17',...
'CaBuffer_TC_AS17',...
'iT_TC_AS17',...
'iH_TC_AS17'};
specification.populations(5).name='TRN';
specification.populations(5).size=round(numCellsScale*50);
specification.populations(5).equations=eqns;
specification.populations(5).mechanism_list={...
'iAppliedStimAS22',...
'iPoisson_AS22',...
'iNa_TRN_AS17',...
'iK_TRN_AS17',...
'iLeak_TRN_AS17',...
'iKLeak_TRN_AS17',...
'iT_TRN_AS17'};
specification.connections(6).direction='TC<-TRN';
specification.connections(6).mechanism_list={...
'iGABAA_TC_TRN_NN',...
'iGABAB_TC_TRN_NN',...
};
specification.connections(7).direction='TRN<-TRN';
specification.connections(7).mechanism_list={'iGABAA_TRN_TRN_NN'};
specification.connections(8).direction='TRN<-TC';
specification.connections(8).mechanism_list={'iAMPA_TRN_TC_NN'};
% -------------------------------------------------------------------
%% 4. Thalamo-cortical Connections
% -------------------------------------------------------------------
specification.connections(9).direction='PYdr<-TC';
specification.connections(9).mechanism_list={'iAMPA_PYdr_TC'};
specification.connections(10).direction='IN<-TC';
specification.connections(10).mechanism_list={'iAMPA_IN_TC'};
specification.connections(11).direction='TC<-PYso';
specification.connections(11).mechanism_list={'iAMPA_TC_PYso'};
specification.connections(12).direction='TRN<-PYso';
specification.connections(12).mechanism_list={'iAMPA_TRN_PYso'};