Skip to content

Code and figures for "Neural network differential equations for ion channel modelling".

License

Notifications You must be signed in to change notification settings

chonlei/neural-ode-ion-channels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural network differential equations for ion channel modelling

DOI

Source code associated with an article in Frontiers in Physiology by Chon Lok Lei and Gary R. Mirams.

Model structures used in this repository

From left to right shows the original Hodgkin-Huxley model (candidate model), the activation modelled using a neural network (NN-f), the activation with a neural network discrepancy term (NN-d), and the activation modelled with a three-state model (ground truth used in synthetic data studies with discrepancy).

Requirements

To run the code within this repository requires Python 3.5+ with the following dependencies

which can be installed via

$ pip install -r requirements.txt

Train the models

The following codes re-run the training for the models.

Synthetic data studies (no discrepancy)

Synthetic data studies (with discrepancy)

Experimental data

Their trained results are stored in directories s1, s2, d1, etc.

Main figures and tables

To re-run and create the main figures and tables, use:

These generate figures in directories figure-1, figure-2, etc.

Supplementary figures and tables

To re-run and create the supplementary figures and tables, use:

These generate figures in directories figure-2-s, figure-3-s, etc.

Others

Acknowledging this work

If you publish any work based on the contents of this repository please cite (CITATION file):

Lei, C. L. and Mirams, G. R. (2021). Neural network differential equations for ion channel modelling. Frontiers in Physiology, 12, 1166. doi:10.3389/fphys.2021.708944.