This is a note to show how to run the simulation for the simple model in the article "Cl-dependent amplification of excitatory synaptic potentials at distal dendrites revealed by voltage imaging" by Reo Higashi, Masato Morita, and Shin-ya Kawaguchi.

"Cell_setup.py" defines cell morphology and parameters of ion channels/ transporter/ pump of each section. "Synaptic_input.py" or "Synaptic_input_array.py" defined the parameters for synaptic inputs and runs the simulation. You can change parameter settings by directly rewriting corresponding variables in the code.

To run the simulation, you need Python (https://www.python.org/), numpy (https://numpy.org/), matplotlib (https://matplotlib.org/), pandas(https://pandas.pydata.org/), and NEURON (https://neuron.yale.edu/neuron/) installed in your PC. The simulation results shown in the paper were calculated in Python ver 3.9.18, numpy ver 1.24.3, matplotlib ver 3.8.0, pandas ver 1.4.2, and NEURON ver 8.2.1.

In default, executing "Synaptic_input.py" in this directory provides the simulation "default" result shown in Fig. 5D (or in Fig. 5E "input to #7"). The results of simulation for membrane potential and amplitude of EPSP  are provided as csv files. "Synaptic_input_array.py" reproduces the result shown in Fig. S5E (leftmost).  



