项目作者: dabane-ghassan

项目描述 :
A collection of scripts to simulate and study biological models of neurons.
高级语言: Python
项目地址: git://github.com/dabane-ghassan/BioNSim.git
创建时间: 2020-08-08T16:22:19Z
项目社区:https://github.com/dabane-ghassan/BioNSim

开源协议:

下载


BioNSim

A collection of Python scripts to implement biological models of neurons using Python.
Numpy, matplotlib and scipy were used to animate the output.

Available Models :

Hudgkin & Huxley Model

Input

  • For each ion, G is the conductance and Eq is the equilibrium potential.
    ```python
    import hudgkin_huxley as hh

cell = hh.Neuron(voltage=np.linspace(-150, 150, 100),
sodium={‘G’ : 120., ‘Eq’ : 120.},
potassium={‘G’ : 36., ‘Eq’ : -12.},
leak={‘G’ : 0.3,’Eq’ :10.6})

cell.simulate(V_init=-10, n_init=0, m_init=0, h_init=1, Tmax=50, inj = 15)

  1. #### Output
  2. ![HH simulation](Demo/HHsimulation.gif)
  3. ### Hindmarsh & Rose Model
  4. - Model parameters should be specified when instantiating the object, and the initial conditions can be changed when simulating the model.
  5. ```python
  6. import hindmarsh_rose as hr
  7. cell = hr.Neuron(r = 0.001, s = 4, xr = -8/5, a = 1, b = 3, c = 1, d = 5, I = 2)
  8. cell.simulate_hind_rose(x_init=-1.5, y_init=-10, z_init=2, Tmax=1000)

Output

HR simulation

Fitzugh & Nagumo Model

  1. import fitzugh-nagumo as fn
  2. cell = fn.Neuron(a=0.7, b=0.8, tau=13)
  3. cell.simulate_fitz_nagu(V_init=-2,w_init=-1.5, I_init=0.5, Tmax=100)

Output

FN simulation

ToDo :

More biological models : IKir, Izhikevich model, ……