Skip to content

Python skripts to analyse and simulate electrophysiology recordings and ephaptic coupling

License

Notifications You must be signed in to change notification settings

moritz-s/Pyoelectricity

Repository files navigation

Pyoelectricity

Collision of Action Potentials

This is the source code used in the publication Annihilation of action potentials induces functional electrical coupling between neurons. (The figure above shows a collision of Action Potentials)


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)

Dependencies

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.

Source code files

  • 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):

  • 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).

About

Python skripts to analyse and simulate electrophysiology recordings and ephaptic coupling

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published