Population-scale analysis of frequency-dependent calcium dynamics in retinal ganglion cells under electric field stimulation.
The 5 matches
- [1] § Methods › Neuron: retinal ganglion cell Ca model ↔ SingleCellRGCsCaModelNeuron/RGCModel.py, lines 88–127 · score 0.77 · low voltage activated, hyperpolarization activated, RGC model, Ca model, Fohlmeister, Ih
- [2] § Methods › Neuron: retinal ganglion cell Ca model ↔ SingleCellRGCsCaModelNeuron/RGCModel.py, lines 254–383 · score 0.66 · extracellular space, Reaction, buffering, bound, pump, concentration
- [3] § Methods › Neuron: retinal ganglion cell Ca model ↔ SingleCellRGCsCaModelNeuron/RGCModel.py, lines 88–127 · score 0.59 · Ca activated, voltage activated, calcium channel, pump, model, Neuron
- [4] § Methods › Electric field stimulation waveform design ↔ SingleCellRGCsCaModelNeuron/RGCModel.py, lines 485–632 · score 0.55 · intracellular Ca, GCaMP, probe, membrane, spiking, neurons
- [5] § Methods › Admittance method: constructing the experimental setup and electrodes ↔ SingleCellRGCsCaModelNeuron/RGCModel.py, lines 254–383 · score 0.53 · RGC model, volume, segment, space, compartments, membrane
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 661 lines · 28 KB · MIT · 5 matches
- # Imports
- from neuron import h, rxd
- import numpy as np
- import json
- from matplotlib import pyplot
- from neuron.units import mM, mV, nM, uM
- from neuron.rxd import v
- from neuron.rxd.rxdmath import vtrap, exp, log, tanh, fabs
- import os
- from tqdm import tqdm
- import csv
- # Add necessary .hoc to Neuron h backbone
- h.load_file('stdrun.hoc')
- h.load_file('import3d.hoc')
- h.load_file('stdlib.hoc')
- h.load_file('makecells_A2i.hoc')
- class RGCModel:
- # This Class model RGCs and add RXD adds-on to take care of Ca ion concentration and changes
- def __init__(self, JSONFile, MorphologySWCName):
- self.loadMorph(MorphologySWCName)
- self.padding = 100
- self.have_ncx = False
- self.have_cicr = False
- self.have_gcamp = False
- # Load configuration from the passed Json file
- with open(JSONFile, 'r') as fileObj:
- self.rxdDict = json.load(fileObj)
- def loadMorph(self, MorphologySWCName):
- '''
- :param MorphologySWCName:
- :return: None
- Make the model of the cell based on the morphology of the swc file
- '''
- # Load the morphology of the RGC type
- self.c = h.mkcell(MorphologySWCName)
- # Make each group of the neuron sections instance
- self.axonal = list(self.c.axonal)
- self.somaList = list(self.c.somatic)
- self.basalList = list(self.c.basal)
- self.apicalList = list(self.c.apical)
- self.dendritic5 = list(self.c.dendritic_5)
- self.dendritic6 = list(self.c.dendritic_6)
- self.dendritic7 = list(self.c.dendritic_7)
- # 'all' contains all components of the neuron
- self.all = self.axonal + self.dendritic5 + self.dendritic6 + self.dendritic7 + \
- self.somaList + self.basalList + self.apicalList
- def findExtrema(self):
- '''
- Finds the extrema of the morphology, and stores them into variables xmin, ymin, zmin, xmax, ymax, and zmax.
- These coordinates will be used in defining the extracellular space in 3D using rxd.Extracellular()
- :return: NONE
- '''
- self.xmin = self.ymin = self.zmin = self.xmax = self.ymax = self.zmax = None
- for sec in self.all:
- n3d = sec.n3d()
- xList = [sec.x3d(i) for i in range(n3d)]
- yList = [sec.y3d(i) for i in range(n3d)]
- zList = [sec.z3d(i) for i in range(n3d)]
- xMinSec, yMinSec, zMinSec = min(xList), min(yList), min(zList)
- xMaxSec, yMaxSec, zMaxSec = max(xList), max(yList), max(zList)
- if self.xmin is None:
- self.xmin, self.ymin, self.zmin = xMinSec, yMinSec, zMinSec
- self.xmax, self.ymax, self.zmax = xMaxSec, yMaxSec, zMaxSec
- else:
- self.xmin, self.ymin, self.zmin = min(self.xmin, xMinSec), min(self.ymin, yMinSec), min(self.zmin, zMinSec)
- self.xmax, self.ymax, self.zmax = max(self.xmax, xMaxSec), max(self.ymax, yMaxSec), max(self.zmax, zMaxSec)
- print('Extrema of the morphology has been calculated')
- def concInit(self, cytc, exc, erc):
- return lambda nd: exc if nd.region == self.ecs else (cytc if nd.region == self.cyt else erc)
- def concInitTemp(self, cytc, erc):
- return lambda nd: cytc if nd.region == self.cyt else erc
- def insertChannels(self, GNabar_spike, GKbar_spike, GAbar_spike, GCabar_spike, GKCbar_spike, GH, GT, testDiam):
- '''
- Insert channels into the cell. It will add the following channels:
- - Spike.mod (HH Model by Fohlmeister)
- - Na
- - Ca
- - K (delayed rectifier)
- - KA (A-type K channel)
- - KCa (Ca activated K channel)
- + Ca pumps are modeled in the RXD part
- - IT.mod
- Low-voltage-activated (LVA) calcium channels
- - Ih.mod
- Hyperpolarized activated channel
- :param: It will load any needed value from the rxdDict.
- :return:
- '''
- for section in self.all:
- if section.name().find('dend[') != -1:
- section.insert('pas')
- section.e_pas = -60
- section.g_pas = .00005
- section.Ra = 110
- section.nseg = 1
- section.insert('spike')
- section.gnabar_spike = 0.08
- section.gkbar_spike = 0.08
- section.gabar_spike = 3 * section.gkbar_spike
- section.gcabar_spike = 0.01
- section.gkcbar_spike = 0.004 * section.gkbar_spike
- section.insert('Ih')
- section.ghbar_Ih = 3e-5
- section.insert('IT')
- section.gTbar_IT = 0.001
- print('Dend channel inserted...')
- # Axon hillock
- if section.name().find('dend_5') != -1:
- section.insert('pas')
- section.e_pas = -60
- section.g_pas = .00005
- section.Ra = 110
- section.nseg = 1
- section.insert('spike')
- section.gnabar_spike = 0.8
- section.gkbar_spike = 0.6
- section.gabar_spike = 3 * section.gkbar_spike
- section.gcabar_spike = 0
- section.gkcbar_spike = 0
- section.insert('Ih')
- section.ghbar_Ih = 0
- section.insert('IT')
- section.gTbar_IT = 0
- print('Axon hillock channel inserted...')
- # Sodium channel band
- if section.name().find('dend_6') != -1:
- section.insert('pas')
- section.e_pas = -60
- section.g_pas = .00005
- section.Ra = 110
- section.nseg = 1
- section.insert('spike')
- section.gnabar_spike = 2.4
- section.gkbar_spike = 0.8
- section.gabar_spike = 3 * section.gkbar_spike
- section.gcabar_spike = 0
- section.gkcbar_spike = 0
- section.insert('Ih')
- section.ghbar_Ih = 0
- section.insert('IT')
- section.gTbar_IT = 0
- print('SOCB channel inserted...')
- # Narrow segment
- if section.name().find('dend_7') != -1:
- section.insert('pas')
- section.e_pas = -60
- section.g_pas = .00005
- section.Ra = 110
- section.nseg = 1
- section.insert('spike')
- section.gnabar_spike = 0.9
- section.gkbar_spike = 0.7
- section.gabar_spike = 3 * section.gkbar_spike
- section.gcabar_spike = 0
- section.gkcbar_spike = 0
- section.insert('Ih')
- section.ghbar_Ih = 0
- section.insert('IT')
- section.gTbar_IT = 0
- print('Narrow segment channel inserted...')
- # Distal axon
- if section.name().find('axon') != -1:
- section.insert('pas')
- section.e_pas = -60
- section.g_pas = .00005
- section.Ra = 110
- section.nseg = 1
- section.insert('spike')
- section.gnabar_spike = 0.8
- section.gkbar_spike = 0.6
- section.gabar_spike = 3 * section.gkbar_spike
- section.gcabar_spike = 0
- section.gkcbar_spike = 0
- section.insert('Ih')
- section.ghbar_Ih = 0
- section.insert('IT')
- section.gTbar_IT = 0
- print('Distal axon channel inserted...')
- # Soma
- if section.name().find('soma') != -1:
- section.insert('pas')
- section.e_pas = -65
- section.g_pas = 0.0001
- section.Ra = 110
- section.nseg = 1
- section.diam = testDiam
- # print('Diam: ', section.diam)
- section.insert('spike')
- section.gnabar_spike = GNabar_spike
- section.gkbar_spike = GKbar_spike
- section.gabar_spike = GAbar_spike
- section.gcabar_spike = GCabar_spike
- section.gkcbar_spike = GKCbar_spike
- section.insert('Ih')
- section.ghbar_Ih = GH
- section.insert('IT')
- section.gTbar_IT = GT
- print('Soma channel inserted...')
- h.celsius = 36
- print('***** All channels inserted *****')
- def implement_RXD(self, CAT):
- #### Initial concentrations ####
- # Na
- naConcInitCyt = self.rxdDict["species"]["na"]["cyt"]
- naConcInitEcs = self.rxdDict["species"]["na"]["ecs"]
- # K
- kConcInitCyt = self.rxdDict["species"]["k"]["cyt"]
- kConcInitEcs = self.rxdDict["species"]["k"]["ecs"]
- # Ca
- caConcInitCyt = self.rxdDict["species"]["ca"]["cyt"]
- caConcInitEcs = self.rxdDict["species"]["ca"]["ecs"]
- caConcInitEr = self.rxdDict["species"]["ca"]["er"]
- caDepth = self.rxdDict["species"]["ca"]["depth"]
- caTau = self.rxdDict["species"]["ca"]["tca"]
- # NCX
- kNCXBindF = 93.827 # msec^-1 mM^-1
- kNCXBindR = 4.0 # msec^-1
- kNCXRel = 1000.0 # msec^-1 mM^-1
- # NCX
- if self.have_ncx:
- totalNCX = self.rxdDict["channelDensities"]["totalNCX"]
- ncx2CaInit = totalNCX * (caConcInitCyt ** 2) / ((kNCXBindR / kNCXBindF) + (caConcInitCyt ** 2))
- ncxInit = totalNCX - ncx2CaInit
- # Calcium-induced Ca release
- self.VCICR = 100000.0 # cm^-2 ms^-1
- self.KCICR = 0.0002 # mM
- tauCICR = 1.2 # ms
- KtCICR = 0.0002 # mM
- # ER fraction in the cells' Cyt
- self.erFraction = self.rxdDict["region"]["erFraction"]
- self.cytFraction = 1 - self.erFraction
- ########################################
- # RXD
- '''
- Code that uses RXD should define the following criteria: WHERE the reaction is happening, WHO (what species) are we interested
- in, and WHAT about those species of interest? With that being said, the following code
- answers, 'where?' The reaction is happening in: the cytoplasm, cell membrane, and extracellular fluid.
- '''
- ##########################################################################################
- ######################################### WHERE? #########################################
- ##########################################################################################
- self.cyt = rxd.Region(self.all, name='cyt', nrn_region='i',
- geometry=rxd.FractionalVolume(self.cytFraction, surface_fraction=1.0))
- self.er = rxd.Region(self.all, name='er',
- geometry=rxd.FractionalVolume(self.erFraction)) # Endoplasmic Reticulum
- self.erCytMem = rxd.Region(self.all, name='erCytMem', geometry=rxd.ScalableBorder(0.1,
- on_cell_surface=False)) # Membrane between Cytoplusm and ER
- self.mem = rxd.Region(self.all, name='mem', geometry=rxd.membrane())
- self.ecs = rxd.Extracellular(self.xmin - self.padding, self.ymin - self.padding, self.zmin - self.padding,
- self.xmax + self.padding, self.ymax + self.padding, self.zmax + self.padding,
- dx=50) # Extracellular Space
- print('RXD regions implemented')
- ##########################################################################################
- ######################################### WHAT? ##########################################
- ##########################################################################################
- # Ions
- # self.k = rxd.Species([self.cyt, self.ecs], name="k", d=1, charge=1,
- # initial=self.concInit(kConcInitCyt, kConcInitEcs,0))
- # self.na = rxd.Species([self.cyt, self.ecs], name="na", d=1, charge=1,
- # initial=self.concInit(naConcInitCyt, naConcInitEcs, 0))
- self.ca = rxd.Species([self.cyt, self.ecs, self.er], name='ca', d=1, charge=2,
- initial=self.concInit(caConcInitCyt, caConcInitEcs, caConcInitEr))
- self.cai = self.ca[self.cyt]
- self.cao = self.ca[self.ecs]
- self.caer = self.ca[self.er]
- # Na/Ca Exchange (NCX)
- if self.have_ncx:
- self.ncx = rxd.Species([self.cyt], name='ncx', initial=ncxInit) # Free NCX inside Cyt
- self.ncx2Ca = rxd.Species([self.cyt], name='ncx2Ca', initial=ncx2CaInit) # NCX bound to Ca inside Cyt
- # Ca-induced Ca release
- if self.have_cicr:
- CICRThresh = (1 + tanh(2 * 10000 * (self.cai - KtCICR))) / 2
- self.scale_cicr = rxd.Parameter([self.erCytMem],
- value=lambda nd: self.VCICR * nd.segment.diam / 4.0)
- CICRFluxInf = CICRThresh * self.cai / (self.KCICR + self.cai) * (self.caer - self.cai)
- self.CICRState = rxd.State([self.erCytMem], name='CICRstate', initial=1.749e-9)
- print('RXD species created')
- # GCaMP
- if self.have_gcamp:
- self.gcamp = rxd.Species([self.cyt], name='GCaMP', initial=0.05) # 0.05 mM = 50 μM
- self.cagcamp = rxd.Species([self.cyt], name='CaGCaMP', initial=0)
- ##########################################################################################
- ########################################## HOW? ##########################################
- ##########################################################################################
- # Ca Pump
- self.CaPump = rxd.MultiCompartmentReaction(self.cao, self.cai,
- 6.02 * 10 ** 8 * (caConcInitCyt - self.cai) / CAT,
- membrane=self.mem, scale_by_area=False, membrane_flux=True)
- # Na/Ca Exchange (NCX)
- if self.have_ncx:
- self.ncxBinding = rxd.Reaction(2*self.ca + self.ncx, self.ncx2Ca, kNCXBindF, kNCXBindR, region=[self.cyt])
- self.ncxRelease = rxd.MultiCompartmentReaction(self.ncx2Ca[self.cyt], self.ncx[self.cyt] + 2*self.cao, kNCXRel, membrane=self.mem, scale_by_area=False, membrane_flux=True)
- # CICR
- if self.have_cicr:
- self.dCICR = rxd.Rate(self.CICRState, (CICRFluxInf - self.CICRState) / tauCICR, regions=[self.erCytMem])
- # self.CICRFlux = rxd.MultiCompartmentReaction(self.caer, self.cai, self.scale_cicr * self.CICRState,
- # membrane=self.erCytMem)
- self.CICRFlux = rxd.MultiCompartmentReaction(self.caer, self.cai, self.CICRState,
- membrane=self.erCytMem)
- # GCaMP
- if self.have_gcamp:
- # Kinetic rates (per ms)
- kon = 1e8 / 1e3 # convert M⁻¹s⁻¹ to mM⁻¹ms⁻¹ (divide by 1e3)
- koff = 37.5 / 1e3 # convert s⁻¹ to ms⁻¹ (divide by 1e3)
- # Buffer reaction
- self.GCaMPBinding = rxd.Reaction(self.gcamp + self.cai, self.cagcamp, kon, koff, region=[self.cyt])
- print('RXD reactions specified - RXD setup complete')
- def stimulate(self, stimNeuron, measureNeuron, location, current_vector, time_vector, sim_dur, dt):
- '''
- :param stimNeuron:
- :param measureNeuron:
- :param location:
- :param current_vector:
- :param time_vector:
- :param sim_dur:
- :param dt:
- :return:
- '''
- # Following vectors are necessary in order to create graphs.
- ### Time and Membraine Potential ###
- self.tvec = h.Vector().record(h._ref_t)
- self.vvec = h.Vector().record(measureNeuron(location)._ref_v)
- ### K, Na, and Ca ###
- self.kivec = h.Vector().record(measureNeuron(location)._ref_ki)
- self.kovec = h.Vector().record(measureNeuron(location)._ref_ko)
- self.naovec = h.Vector().record(measureNeuron(location)._ref_nao)
- self.naivec = h.Vector().record(measureNeuron(location)._ref_nai)
- self.caovec = h.Vector().record(measureNeuron(location)._ref_cao)
- self.caivec = h.Vector().record(measureNeuron(location)._ref_cai)
- self.cairxdvec = h.Vector().record(self.cai.nodes(measureNeuron(location))._ref_concentration)
- self.ecavec = h.Vector().record(measureNeuron(location)._ref_eca)
- self.caervec = h.Vector().record(self.caer.nodes(measureNeuron(location))._ref_concentration)
- ### NCX ###
- if self.have_ncx:
- self.ncxvec = h.Vector().record(self.ncx.nodes(measureNeuron(location))._ref_value)
- self.ncx2cavec = h.Vector().record(self.ncx2Ca.nodes(measureNeuron(location))._ref_value)
- ### CICR ###
- if self.have_cicr:
- self.cicrvec = h.Vector().record(
- self.CICRState[self.erCytMem].nodes(measureNeuron(location))._ref_value)
- ### GCaMP ###
- if self.have_gcamp:
- self.gcampvec = h.Vector().record(self.gcamp.nodes(measureNeuron(location))._ref_value)
- self.cagcampvec = h.Vector().record(self.cagcamp.nodes(measureNeuron(location))._ref_value)
- ### Spike.mod ###
- self.spike_mvec = h.Vector().record(measureNeuron(location).spike._ref_m)
- self.spike_nvec = h.Vector().record(measureNeuron(location).spike._ref_n)
- self.spike_hvec = h.Vector().record(measureNeuron(location).spike._ref_h)
- self.spike_pvec = h.Vector().record(measureNeuron(location).spike._ref_p)
- self.spike_qvec = h.Vector().record(measureNeuron(location).spike._ref_q)
- self.spike_cvec = h.Vector().record(measureNeuron(location).spike._ref_c)
- self.inavec = h.Vector().record(measureNeuron(location)._ref_ina)
- self.ikvec = h.Vector().record(measureNeuron(location)._ref_ik)
- self.icavec = h.Vector().record(measureNeuron(location)._ref_ica)
- print('Recording vectors created')
- # Create a current clamp
- iclamp = h.IClamp(stimNeuron(location))
- iclamp.dur = sim_dur
- # Vector to play the waveform
- stim_vec = h.Vector(current_vector)
- time_vec = h.Vector(time_vector)
- stim_vec.play(iclamp._ref_amp, time_vec, 1)
- # Run simulation
- h.dt = dt
- h.finitialize(-75)
- for i in tqdm(range(len(time_vec))):
- h.fadvance()
- print('Simulation complete')
- def calculateAIC(self, log_dir, stimulation_config, stim_start, stim_end):
- caVec = 1000 * self.caivec.as_numpy()
- tVec = self.tvec.as_numpy()
- mask = (tVec >= stim_start) & (tVec <= stim_end)
- maskbaseline = (stim_start/2 < tVec) & (tVec < stim_start)
- AIC = np.mean(caVec[mask])
- F0 = np.mean(np.power(caVec[maskbaseline], 2.5) / (0.375**2.5 + np.power(caVec[maskbaseline], 2.5)))
- F = np.mean(np.power(caVec[mask], 2.5) / (0.375**2.5 + np.power(caVec[mask], 2.5)))
- AICG = ((F/F0) - 1)
- print('AIC = ', AIC)
- print('AICG = ', AICG)
- if self.have_gcamp:
- cagcampVec = 1000 * self.cagcampvec.as_numpy()
- AIG = np.mean(cagcampVec[mask])
- print('AIG = ', AIG)
- with open(log_dir, 'a', newline='') as f:
- writer = csv.writer(f)
- writer.writerow([stimulation_config['waveform'], stimulation_config['frequency'],
- stimulation_config['amplitude'], AICG])
- if self.have_gcamp:
- writer.writerow([stimulation_config['waveform'], stimulation_config['frequency'],
- stimulation_config['amplitude'], AIG])
- def plot_results(self, save_dir):
- # Prepare the saving directory
- if not os.path.exists(save_dir):
- os.makedirs(save_dir)
- # Figures
- ### Membrane Potential ###
- fig = pyplot.figure(figsize=(16, 6))
- pyplot.plot(self.tvec.as_numpy(), self.vvec.as_numpy(), '-b', label='k')
- pyplot.title("Membrane Potential")
- pyplot.xlabel('t (ms)')
- pyplot.ylabel('Voltage (mV)')
- pyplot.savefig(save_dir + 'MemPotTest.svg', format="svg")
- ## Ca ###
- # # Ca outside the cell
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.caovec.as_numpy(), '-g', label='ca')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('Extracellular Ca')
- # pyplot.savefig(save_dir+'ExtraCaTest.svg', format="svg")
- # Ca inside Cyt
- fig = pyplot.figure(figsize=(16, 6))
- pyplot.plot(self.tvec.as_numpy(), 1000 * self.caivec.as_numpy(), '-g', label='ca')
- pyplot.xlabel('time (ms)')
- pyplot.ylabel('Concentration (uM)')
- pyplot.title('Intracellular Ca')
- pyplot.savefig(save_dir+'IntraCaTest.svg', format="svg")
- # # F(t)
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(),
- # np.power(self.caivec.as_numpy(), 2.5) /
- # (0.375 ** 2.5 + np.power(self.caivec.as_numpy(), 2.5)), '-g', label='F(t)')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('F(t)')
- # pyplot.title('Fluorescence (f(t))')
- # pyplot.savefig(save_dir+'Ft.svg', format="svg")
- ### NCX ###
- if self.have_ncx:
- fig = pyplot.figure(figsize=(16, 6))
- pyplot.plot(self.tvec.as_numpy(), 1000*self.ncxvec.as_numpy(), '-b', label='NCX')
- pyplot.plot(self.tvec.as_numpy(), 1000*self.ncx2cavec.as_numpy(), '-r', label='NCX2Ca')
- pyplot.xlabel('time (ms)')
- pyplot.ylabel('Concentration (uM)')
- pyplot.title('Free NCX and bound NCX inside Cyt')
- pyplot.legend()
- pyplot.savefig(save_dir+'NCXTest.svg', format="svg")
- ### CICR ###
- if self.have_cicr:
- fig = pyplot.figure(figsize=(16, 6))
- pyplot.plot(self.tvec.as_numpy(), 1000*self.cicrvec.as_numpy(), '-b', label='CICR')
- # pyplot.plot(rgc1.tvec.as_numpy(), 1000*rgc1.cicrfvec.as_numpy(), '-b', label='CICRFlux')
- pyplot.xlabel('t (ms)')
- pyplot.ylabel('State Value')
- pyplot.title('CICR state inside erCytMem')
- pyplot.legend()
- pyplot.savefig(save_dir+'CICRTest.svg', format="svg")
- ### GCaMP ###
- if self.have_gcamp:
- fig = pyplot.figure(figsize=(16, 6))
- pyplot.plot(self.tvec.as_numpy(), 1000*self.gcampvec.as_numpy(), '-b', label='Free GCaMP')
- pyplot.plot(self.tvec.as_numpy(), 1000*self.cagcampvec.as_numpy(), '-r', label='Ca + GCaMP')
- pyplot.xlabel('time (ms)')
- pyplot.ylabel('Concentration (uM)')
- pyplot.title('Free GCaMP and bound GCaMP inside Cyt')
- pyplot.legend()
- pyplot.savefig(save_dir+'GCaMPTest.svg', format="svg")
- # # Ca inside ER
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.caervec.as_numpy(), '-g', label='k')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('ER Ca')
- # pyplot.savefig(save_dir+'ERCaTest.svg', format="svg")
- # # Ca inside Cyt Recorded by RXD
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.cairxdvec.as_numpy(), '-g', label='ca')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('Intracellular Ca (Recorded by RXD)')
- # # pyplot.savefig(os.path.join('IntraCaTest.svg'), format="svg")
- #
- # # Ca Nerst voltage
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), self.ecavec.as_numpy(), '-g', label='ca')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('V')
- # pyplot.title('Ca Nerst voltage')
- # # pyplot.savefig(os.path.join('IntraCaTest.svg'), format="svg")
- #
- #
- # ### Na ###
- # # Na outside the cell
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.naovec.as_numpy(), '-g', label='na')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('Extracellular Na')
- # # pyplot.savefig(os.path.join('ExtraCaTest.svg'), format="svg")
- #
- # # Na inside Cyt
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.naivec.as_numpy(), '-g', label='na')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('Intracellular Na')
- # # pyplot.savefig(os.path.join('IntraCaTest.svg'), format="svg")
- #
- # ### K ###
- # # K outside the cell
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.kovec.as_numpy(), '-g', label='k')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('Extracellular K')
- # # pyplot.savefig(os.path.join('ExtraCaTest.svg'), format="svg")
- #
- # # K inside Cyt
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), 1000 * self.kivec.as_numpy(), '-g', label='k')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Concentration (uM)')
- # pyplot.title('Intracellular K')
- # # pyplot.savefig(os.path.join('IntraCaTest.svg'), format="svg")
- #
- ### Spike ###
- fig = pyplot.figure(figsize=(16, 6))
- pyplot.plot(self.tvec.as_numpy(), self.spike_pvec.as_numpy(), label='p-gate')
- pyplot.plot(self.tvec.as_numpy(), self.spike_qvec.as_numpy(), label='q-gate')
- pyplot.plot(self.tvec.as_numpy(), self.spike_cvec.as_numpy(), label='c-gate')
- pyplot.plot(self.tvec.as_numpy(), self.spike_mvec.as_numpy(), label='m-gate')
- pyplot.plot(self.tvec.as_numpy(), self.spike_hvec.as_numpy(), label='h-gate')
- pyplot.plot(self.tvec.as_numpy(), self.spike_nvec.as_numpy(), label='n-gate')
- pyplot.xlabel('time (ms)')
- pyplot.ylabel('Open Probability')
- pyplot.title('Spike model parameters')
- pyplot.legend()
- pyplot.savefig(save_dir+'SpikeOpenProbTest.svg', format="svg")
- # fig = pyplot.figure()
- # pyplot.plot(self.tvec.as_numpy(), self.spike_ina.as_numpy(), '-b', label='ina')
- # pyplot.plot(self.tvec.as_numpy(), self.spike_ik.as_numpy(), '-r', label='ik')
- # pyplot.plot(self.tvec.as_numpy(), self.spike_ica.as_numpy(), '-g', label='ica')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Ions Currents')
- # pyplot.title('Spike model ion currents')
- # pyplot.legend()
- # # pyplot.savefig(os.path.join('SpikeCurrentTest.svg'), format="svg")
- # ### IT ###
- # fig = pyplot.figure()
- # pyplot.plot(self.tvec.as_numpy(), self.it_ica.as_numpy(), '-b', label='ica')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Ca ion Currents (mA/cm2)')
- # pyplot.title('IT model ion current')
- # pyplot.legend()
- # # pyplot.savefig(os.path.join('ItcurrentTest.svg'), format="svg")
- # fig = pyplot.figure(figsize=(16, 6))
- # pyplot.plot(self.tvec.as_numpy(), self.inavec.as_numpy(), '-b', label='ina')
- # pyplot.plot(self.tvec.as_numpy(), self.ikvec.as_numpy(), '-r', label='ik')
- # pyplot.plot(self.tvec.as_numpy(), self.icavec.as_numpy(), '-g', label='ica')
- # pyplot.xlabel('time (ms)')
- # pyplot.ylabel('Ions Currents')
- # pyplot.title('Membrane currents (mA/cm2)')
- # pyplot.legend()
- # # pyplot.savefig(os.path.join('CurrentTest.svg'), format="svg")
RGCModel.py at commit 7108c21, under MIT · at the source
Overview
- Institute for Technology and Medical Systems (ITEMS), Keck School of Medicine, University of Southern California,Los Angeles, USA
- Department of Electrical and Computer Engineering, University of Southern California,Los Angeles, USA
- Alfred E. Mann Department of Biomedical Engineering, University of Southern California,Los Angeles, USA
- Department of Ophthalmology, USC Roski Eye Institute, Keck School of Medicine, University of Southern California,Los Angeles, USA
- Department of Ophthalmology and Vision Science, Gavin Herbert Eye Institute, University of California, Irvine,Irvine, USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.
Omid-SH/RGCaEFS
7108c21b04a5bc0fdbe3eec9396b7b493d019813, 9 February 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
16 files
- CARCJobGenerator.py, Python, 67 lines
- CellRecordsPreprocessing
.py , Python, 94 lines - SingleCellRGCsCaModelNeu
ron/ , NEURON, 84 linesIT.mod - SingleCellRGCsCaModelNeu
ron/ , NEURON, 85 linesIh.mod - SingleCellRGCsCaModelNeu
ron/ , Python, 661 lines, 5 matchesRGCModel.py - SingleCellRGCsCaModelNeu
ron/ , Python, 33 linesStimulationGenerator.py - SingleCellRGCsCaModelNeu
ron/ , Python, 130 linesmain.py - SingleCellRGCsCaModelNeu
ron/ , NEURON, 54 linesmakecells_A2i.hoc - SingleCellRGCsCaModelNeu
ron/ , Python, 70 linesparallel_optimizer.py - SingleCellRGCsCaModelNeu
ron/ , Shell, 64 linesparameter_sweep.sh - SingleCellRGCsCaModelNeu
ron/ , NEURON, 158 linesspike.mod - TIFFtoMP4.py, Python, 70 lines
- TIFtoCellConverter.py, Python, 164 lines
- tests.ipynb, Jupyter, 965 lines
- LICENSE, License, 21 lines
- README.md, Text, 2 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 14 scripts, each with its path and the digest of its content;
- 5 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Code and data availability statement
The paper has a code and data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: Omid-SH/
RGCaEFS - it says that the data are available on request
Read it in the paper: doi.org/10.1038/s41598-026-49531-x.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 4 keywords, 6 MeSH terms, 5 funders, 59 references.
Cite
This paper
Sharafi, O., Silliman, T., Mokhtari Dowlatabad, H., Niu, G., Walston, S. T., Bouteiller, J.-M. C., Gokoffski, K. K., & Lazzi, G. (2026). Population-scale analysis of frequency-dependent calcium dynamics in retinal ganglion cells under electric field stimulation. Scientific reports, 16(1), 18948. https://
BibTeX
@article{sharafi2026popu
author = {Sharafi, Omid and Silliman, Timothy and Mokhtari Dowlatabad, Hadi and Niu, Gengle and Walston, Steven T. and Bouteiller, Jean-Marie C. and Gokoffski, Kimberly K. and Lazzi, Gianluca},
title = {{Population-scale analysis of frequency-dependent calcium dynamics in retinal ganglion cells under electric field stimulation}},
journal = {Scientific reports},
year = {2026},
month = apr,
volume = {16},
number = {1},
pages = {18948},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {42031950},
pmcid = {PMC13276083}
}
RIS
TY - JOUR
AU - Sharafi, Omid
AU - Silliman, Timothy
AU - Mokhtari Dowlatabad, Hadi
AU - Niu, Gengle
AU - Walston, Steven T.
AU - Bouteiller, Jean-Marie C.
AU - Gokoffski, Kimberly K.
AU - Lazzi, Gianluca
TI - Population-scale analysis of frequency-dependent calcium dynamics in retinal ganglion cells under electric field stimulation
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 18948
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Population-scale analysis of frequency-dependent calcium dynamics in retinal ganglion cells under electric field stimulation",
"container-title": "Scientific reports",
"author": [
{
"family": "Sharafi",
"given": "Omid"
},
{
"family": "Silliman",
"given": "Timothy"
},
{
"family": "Mokhtari Dowlatabad",
"given": "Hadi"
},
{
"family": "Niu",
"given": "Gengle"
},
{
"family": "Walston",
"given": "Steven T."
},
{
"family": "Bouteiller",
"given": "Jean-Marie C."
},
{
"family": "Gokoffski",
"given": "Kimberly K."
},
{
"family": "Lazzi",
"given": "Gianluca"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "18948",
"DOI": "10.1038/
"PMID": "42031950",
"PMCID": "PMC13276083",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
24
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1364/boe.600665 [code]
- NeuroSeg-MF: robust neuron segmentation in two-photon Ca&
lt;sup& gt;2+& lt;/ sup& gt; imaging using multi-feature fusion and detection-guided SAM. Journal: Biomedical optics expressIn common: tifffile, OpenCV, PyTorch, 4 other tools, optical imaging (calcium, voltage, 2-photon), 1 reference - [2] doi:10.1016/j.isci.2026.117010 [code]
- Deep learning-assisted mapping of dendritic spines using sequential 2D two-photon calcium imaging.Journal: iScienceIn common: tifffile, OpenCV, PyTorch, 5 other tools, optical imaging (calcium, voltage, 2-photon), cellular / molecular
- [3] doi:10.7554/elife.100880 [code]
- An applicable and efficient retrograde monosynaptic circuit mapping tool for larval zebrafish.Journal: eLifeIn common: NEURON, tifffile, OpenCV, 5 other tools
- [4] doi:10.1016/j.isci.2026.116206 [code]
- Gut distension evokes rapid neural dynamics in vagal and hindbrain populations of larval zebrafish.Journal: iScienceIn common: tifffile, OpenCV, PyTorch, 5 other tools, optical imaging (calcium, voltage, 2-photon)
- [5] doi:10.3389/fnsys.2026.1822122 [code]
- Convergence-divergence circuits for multimodal integration of innate and learned opponent valences.Journal: Frontiers in systems neuroscienceIn common: NEURON, tifffile, PyTorch, 5 other tools
- [6] doi:10.1016/j.isci.2026.115488 [code]
- An integrated &
lt;i& gt;i& lt;/ i& gt; & lt;i& gt;n vitro& lt;/ i& gt; platform and biophysical modeling approach for studying synaptic transmission in isolated neuronal pairs. Journal: iScienceIn common: NEURON, OpenCV, PyTorch, 5 other tools, cellular / molecular - [7] doi:10.7554/elife.105081 [code]
- Movie reconstruction from mouse visual cortex activity.Journal: eLifeIn common: tifffile, OpenCV, PyTorch, 3 other tools, optical imaging (calcium, voltage, 2-photon), mouse, 1 reference
- [8] doi:10.1364/boe.605322 [code]
- Generalized plaque digitization framework for multi-dimensional mesoscopic images.Journal: Biomedical optics expressIn common: tifffile, OpenCV, PyTorch, 5 other tools, mouse
- [9] doi:10.1016/j.xpro.2026.104659 [code]
- Protocol for simultaneous in vivo two-photon imaging and locomotion quantification during olfactory stimulation and pharmacology in walking Drosophila.Journal: STAR protocolsIn common: tifffile, OpenCV, seaborn, 3 other tools, optical imaging (calcium, voltage, 2-photon), 1 reference
- [10] doi: [code]
- Real-time closed-loop feedback system for mouse mesoscale cortical signal and movement controlJournal: eLifeIn common: tifffile, OpenCV, seaborn, 4 other tools, optical imaging (calcium, voltage, 2-photon), mouse
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 14 scripts, and 5 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:30ffad73b0d7c264…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
