Giter VIP home page Giter VIP logo

pypns-paperfigures's Introduction

PyPNS-PaperFigures

The Python scripts in this repository can be used to generate figures illustrating the capabilities of the Python Peripheral Nerve Simulator: PyPNS.

This scientific software is released under the GNU Public License GPLv3.

Requirements

The compiled mod files need to be present in the main directory. See readme of PyPNS.

The figures

fig4: Extrapolate myelinated axon parameters

Extrapolation of parameters of the myelinated axon model of McIntyre et al. 2002 [1].

fig7: Membrane currents

Example current time course of a myelinated and an unmyelinated axon.

fig8: Potential profiles

Potential profile caused by a current point source in a homogeneous medium, a nerve in saline and a nerve in a cuff electrode.

fig9A: Action potentials

Single fibre action potential (SFAP) of a myelinated and an unmyelinated fibre in the three different media. Two figures are saved into the figure-directory with different resolutions.

fig9B: Action potential amplitudes

Amplitude of SFAPs over diameter for both axon types in all three media. ...calculation: simulate and save the SFAPs in a file to disk. ...loading: load the simulated SFAPs and plot the curves.

fig10: Cuff length influence

Influence of cuff length on SFAP amplitude for both axon types. ...calculation: simulate and save the SFAPs in a file to disk. ...loading: load the simulated SFAPs and plot the curves.

fig11: Compound action potential

Compute the compound action potential (CAP) of a stimulated rat vagus nerve. Takes long to calculate. The bundle length electrodeDistance and the number of axons nAxons can be reduced to speed things up.

fig12: Spectrum of the compound action potential

Spectrum of the CAP computed in figure 10 for both axon types compared to an experimental recording.

fig14AB: Direction change distribution of axons

Matlab scripts to generate direction change distributions observed in mouse vagus and sciatic nerves and distributions from Gaussian and uniform distributions as an input to the axon placing algorithm implemented in PyPNS.

fig14C: Example axons in PyPNS

Example axons as generated by PyPNS.

fig15: Recording from tortuous axons

SFAPs from tortuous axons are generated and compared in terms of similarity.

fig16: Stimulation of tortuous axons

Activation of axons in an extracellularly stimulated nerve at different degrees of tortuosity is computed and displayed. ...calculation: a dictionary of activation ratios is generated and saved. ...loading: a previously generated dictionary can be selected and the activation is displayed over stimulation current amplitudes and degrees of tortuosity.

References

[1] McIntyre, C C, A G Richardson, and W M Grill (2002). “Modeling the excitability of mammalian nerve fibers: Influence of afterpotentials on the recovery cycle.” Journal of Neurophysiology 87.2, pp. 995–1006.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.