Skip to content

Commit

Permalink
Final channel! bk2
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed May 21, 2024
1 parent 728364e commit 544b46b
Show file tree
Hide file tree
Showing 8 changed files with 760 additions and 52 deletions.
2 changes: 2 additions & 0 deletions NeuroML2/AWCon.cell.nml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<include href="AWCon_cca.channel.nml"/>
<include href="AWCon_bk.channel.nml"/>
<include href="AWCon_slo1.channel.nml"/>
<include href="AWCon_bk2.channel.nml"/>
<include href="AWCon_slo2.channel.nml"/>
<include href="AWCon_sk.channel.nml"/>
<include href="CaDynamics.nml"/>
Expand Down Expand Up @@ -41,6 +42,7 @@
<channelDensity id="cca_chans" ionChannel="AWCon_cca" condDensity="55.26047887672047 S_per_m2" erev="60.0mV" ion="ca"/>
<channelDensity id="bk_chans" ionChannel="AWCon_bk" condDensity="8.68378953777036 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="slo1_chans" ionChannel="AWCon_slo1" condDensity="8.68378953777036 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="bk2_chans" ionChannel="AWCon_bk2" condDensity="7.8943541252457825 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="slo2_chans" ionChannel="AWCon_slo2" condDensity="7.8943541252457825 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="sk_chans" ionChannel="AWCon_sk" condDensity="4.736612475147469 S_per_m2" erev="-80.0mV" ion="k"/>
<spikeThresh value="0mV"/>
Expand Down
284 changes: 284 additions & 0 deletions NeuroML2/AWCon_bk2.channel.nml

Large diffs are not rendered by default.

88 changes: 88 additions & 0 deletions NeuroML2/GenerateNeuroML.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,92 @@ def create_cells(channels_to_include, duration=700, stim_delay=310, stim_duratio
),
)

# SLO2-EGL19 COMPLEX
if "bk2" in channels_to_include:
chan_id = "bk2"
ion = "k"
g_param = "gbk2"
gates = {
"m": [1, "minf_bk2", "tm_bkegl19"],
"h": [1, "hinf_egl19", "ths_egl19"],
}
extra_params = [
"backgr",
"cac_nano",
"wom1",
"wyx1",
"kyx1",
"nyx1",
"wop1",
"wxy1",
"kxy1",
"nxy1",
"stm19",
"sth19",
"pdg1",
"pdg2",
"pdg3",
"pdg4",
"pdg5",
"pdg6",
"pdg7",
"stau19",
"pds1",
"pds2",
"pds3",
"pds4",
"pds5",
"pds6",
"pds7",
"pds8",
"pds9",
"pds10",
"pds11",
"shiftdps",
"tm_egl19",
"pi",
"r",
"d",
"F",
"kb",
"b",
"gsc",
"eca",
"cao_nano",
"kcm1",
"kom1",
"kop1",
"minf_egl19",
"alpha1",
"beta1",
"stm2",
"m_egl19",
]
for p in xpps[cell_id]["parameters"]:
if "egl19" in p:
extra_params.append(p)

xpps[cell_id]["parameters"]["pi"] = 3.14159265359

cell.add_channel_density(
cell_doc,
cd_id="%s_chans" % chan_id,
cond_density="%s S_per_m2"
% (float(xpps[cell_id]["parameters"][g_param]) * density_factor),
erev="%smV" % xpps[cell_id]["parameters"]["e%s" % ion],
ion=ion,
ion_channel="%s_%s" % (cell_id, chan_id),
ion_chan_def_file=create_channel_file(
chan_id,
cell_id,
xpps[cell_id],
species=ion,
gates=gates,
extra_params=extra_params,
add_all=True,
),
)

# SLO2-UNC2 COMPLEX
if "slo2" in channels_to_include:
chan_id = "slo2"
Expand Down Expand Up @@ -994,6 +1080,7 @@ def create_cells(channels_to_include, duration=700, stim_delay=310, stim_duratio
channels_to_include = ["leak", "unc2", "slo2"]
channels_to_include = ["leak", "unc2", "bk"]
channels_to_include = ["leak", "egl19", "slo1"]
channels_to_include = ["leak", "egl19", "bk2"]
channels_to_include = [
"leak",
"nca",
Expand All @@ -1007,6 +1094,7 @@ def create_cells(channels_to_include, duration=700, stim_delay=310, stim_duratio
"ca",
"bk",
"slo1",
"bk2",
"slo2",
]

Expand Down
120 changes: 76 additions & 44 deletions NeuroML2/LEMS_Sim_IClamp_RMD.xml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions NeuroML2/RMD.cell.nml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<include href="RMD_cca.channel.nml"/>
<include href="RMD_bk.channel.nml"/>
<include href="RMD_slo1.channel.nml"/>
<include href="RMD_bk2.channel.nml"/>
<include href="RMD_slo2.channel.nml"/>
<include href="RMD_sk.channel.nml"/>
<include href="CaDynamics.nml"/>
Expand Down Expand Up @@ -43,6 +44,7 @@
<channelDensity id="cca_chans" ionChannel="RMD_cca" condDensity="244.72497788261924 S_per_m2" erev="60.0mV" ion="ca"/>
<channelDensity id="bk_chans" ionChannel="RMD_bk" condDensity="23.683062375737347 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="slo1_chans" ionChannel="RMD_slo1" condDensity="23.683062375737347 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="bk2_chans" ionChannel="RMD_bk2" condDensity="23.683062375737347 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="slo2_chans" ionChannel="RMD_slo2" condDensity="23.683062375737347 S_per_m2" erev="-80.0mV" ion="k"/>
<channelDensity id="sk_chans" ionChannel="RMD_sk" condDensity="4.736612475147469 S_per_m2" erev="-80.0mV" ion="k"/>
<spikeThresh value="0mV"/>
Expand Down
Loading

0 comments on commit 544b46b

Please sign in to comment.