-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparameters.py
More file actions
101 lines (91 loc) · 3.14 KB
/
parameters.py
File metadata and controls
101 lines (91 loc) · 3.14 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
# parameters.py - Default parameters for the NMM
#
# Author: Stefan Fuertinger [stefan.fuertinger@esi-frankfurt.de]
# Created: June 23 2014
# Last modified: <2017-09-15 16:45:07>
from __future__ import division
# ===============================================================================================
# IMPORTANT NOTE: All variable names in this file have a specific meaning and must not be changed
# to maintain compatibility with `sim_tools.py`!
# ===============================================================================================
# File-name (including path if not in working directory) of HDF5 container that holds coupling matrix
# `C`, as well as the dopamine pathway matrix `D`, respectively.
# The container must contain datasets `C`, `D` (both `N`-by-`N` NumPy 2darrays) and `names`
# (NumPy 1darry or Python list of region names, length `N`) in the root group,
# i.e.,
#
# >>> h5py.File(matrices).keys()
#
# should give
#
# >>> ['C', 'D', 'names']
#
# Optionally, a list of regional abbreviations called `labels` can be included in the root group too, e.g., if
#
# >>> names = ['L_Inferior_Frontal_Gyrus','R_Inferior_Frontal_Gyrus']
#
# then the corresponding list of abbreviations could be
#
# >>> labels = ['L_IFG','R_IFG']
#
# The routine `run_model` will extract `labels` too (if present) and save it together with `names` in the
# generated output container
# NOTE: New as of 11/2016 - a matrix file is no longer mandatory. If wanted, all matrices and the `names` array
# as well as the optional `labels` can be provided to `run_model` as keyword arguments only
matrices = '../../Data/Coupling/SC_LMC+PUT.h5'
# matrices = 'path/to/container.h5'
# Sampling frequency for saving model output (in Hz)
s_rate = 20
# Number of speech cycles to simulate
n_cycles = 1
# Details of the speech cycle: stimulus length, production and image acquisition times (all in seconds)
stimulus = 3.6
production = 5
acquisition = 2
# Synaptic coupling strengths - strings are used here to avoid the explicit definition of `N` in this file,
# i.e., the string expressions are evaluated inside run_model where the number of simulated regions `N`
# is already known. This way, a parameter file can be used with different brain parcellations
aee = 0.4
aei = "2.0*np.ones((N,))"
aie = "-2.*np.random.normal(loc=1.,scale=0.05,size=(N,))"
ani = "0.4*np.ones((N,))"
ane = "2.*np.random.normal(loc=1.,scale=0.45,size=(N,))"
# Dopamine parameters
rmin = 0.0005
Rmax = 0.01
rmax = str(Rmax)+"*np.ones((N,))"
v_m = 0.004
k_m = 0.125
a = 0.25
b_hi = 50.
b_lo = 1.
# Calcium channel parameters
TCa = -0.01
TCa = str(TCa)+"*np.ones((N,))"
deCa = 0.15
gCa = 1.1
VCa = 1.
# More model parameters, for details refer to Fuertinger et al: A Neural Population Model Incorporating
# Dopaminergic Neurotransmission during Complex Voluntary Behaviors, PLoS Computational Biology, 10(11), 2014.
TK = 0.0
deK = 0.3
gK = 2.0
VK = -0.7
TNa = 0.3
deNa = 0.15
gNa = 6.7
VNa = 0.53
VL = -0.5
gL = 0.5
VT = 0.54
ZT = 0.0
deZ = 0.7
phi = 0.7
tau = 1.
rNMDA = 0.25
deV = 2.
QVmax = 1.
QZmax = 1.
W0 = 0.
b = 0.1
delta = 0.2