OpenSourceBrain / MiglioreEtAl14_OlfactoryBulb3D

3D model of the olfactory bulb (Migliore et al. 2014)
http://www.opensourcebrain.org/projects/miglioreetal14_olfactorybulb3d
Other
2 stars 1 forks source link

Create NML2/LEMS versions of synaptic mechanisms #13

Closed pgleeson closed 6 years ago

pgleeson commented 8 years ago

Following on from question in #6, there should be 2 synaptic connections per NEURON connection in the NML2 file if there is a functioning NetConn each way between the "pre" & "post" connection points.

@JustasB which mod file(s) are used for the synapses? This? If so have a look at this LEMS file which could be adapted from this combined AMPA/NMDA file. Making a combined synapse in LEMS like this would be slightly easier than repeating each connection with one AMPA and one NMDA in pure NML2.

JustasB commented 8 years ago

Yup, it uses that synapse AmpaNmda

as well as: GranuleSpine ThreshDetect FastInhib

What are your thoughts on handling the spine in NML? Should that be rolled into the synapse or separated out into another object? Let me know if you have a synapse with a spine example.

Below is the meat of where the synapse is constructed: https://github.com/OpenSourceBrain/MiglioreEtAl14_OlfactoryBulb3D/blob/master/NEURON/mgrs.py lines 99-115

    if self.msecden:
      self.md = h.ThreshDetect(self.msecden(xm))
      self.fi = h.FastInhib(self.msecden(xm))
      self.fi.gmax = params.inh_gmax
      self.fi.tau1 = params.fi_tau1
      self.fi.tau2 = params.fi_tau2
      pc.set_gid2node(self.md_gid, pc.id())
      pc.cell(self.md_gid, h.NetCon(self.md, None), 1)

    if self.gpriden:
      self.spine = h.GranuleSpine()
      self.spine.neck.connect(self.gpriden(xg))
      self.gd = h.ThreshDetect(self.spine.head(0.5))
      self.ampanmda = h.AmpaNmda(self.spine.head(0.5))
      self.ampanmda.gmax = params.exc_gmax
      pc.set_gid2node(self.gd_gid, pc.id())
      pc.cell(self.gd_gid, h.NetCon(self.gd, None), 1)
pgleeson commented 8 years ago

If the spine section gets connected to the existing Granule cell, I'd suspect that section gets exported into the GCxx.cell.nml file, as long as the export is done after the connections are made...

You could look in the ModelView for the simulation to see if they are there in the individual GCs...

JustasB commented 8 years ago

The syns have been converted and can be found under NeuroML2/Synapses.

JustasB commented 6 years ago

This has been done here: https://github.com/OpenSourceBrain/MiglioreEtAl14_OlfactoryBulb3D/pull/25