This is the source code used in the publication Annihilation of action potentials induces functional electrical coupling between neurons. (The figure above shows recordings of colliding Action Potentials in the earthworm ventral nerve chord.)
Please cite as:
Schlötter Moritz, Maret Georg, Kleineidam Christoph J. (2023) Annihilation of action potentials induces electrical coupling between neurons eLife 12:RP88335 https://doi.org/10.7554/eLife.88335.1
The data files are deposited at osf.io/duyn3/ and are accompanied by a mirror of the GitHub repository moritz-s/Pyoelectricity.
We extract the velocity and length of Action Potentials (AP) by analysing AP collision experiments. (in ExperimentAnalysis.ipynb) These parameters determine the Tasaki-Matsumoto model and verify it's behaviour upon collision. The TM model can predict the extracellular current pattern when APs annihilate. This enables to calculate the electric coupling with neighboring neurons, e.g. at synapses. (in end-* skripts)
The following packages need to be installed:
- Brian2
- scipy
- tables
- tqdm
- matplotlib
- jupyter
- pandas
The environment may be set up with poetry python-poetry.org using pyproject.toml, or with conda using the environment.yml file.
-
ExperimentAnalysis.ipynb Analysis of experimental data. (data folder is deposited in OSF Storage)
-
pyoelectricity.py The central file that contains models and functions.
-
Example1.ipynb A simple example demonstrating the use of our script to calculate ephaptic interactions.
-
test-extField.ipynb Test cases for the impact of an extracellular field via pyoelectricity.py (generalized activating function):
-
Pinceau.ipynb Calculation and plot of the pinceau synapse.
-
end-end.py Calculates the examples of end-end synapses.
-
end-end-plots.ipynb Generates the figures for end-end synapses.
-
end-shaft.py Calculates the examples of end-shaft synapses.
-
end-shaft-plots.ipynb Generates the figures for end-shaft synapses.
-
ActivatingFunction.ipynb A plain integration of an extracellular potential in brian (generalized activating function).