This repository contains all data, code, figures, and animations for the paper "Four ways to fit an ion current model", by Clerx, Beattie, Gavaghan, and Mirams.
The code requires Python (either 2.7 or 3.3+) and two dependencies: PINTS and Myokit.
Myokit can be installed using pip install myokit
(or pip3 install myokit
for some python 3 environments), or following the instructions on http://myokit.org.
PINTS can be installed using pip install pints
.
Matplotlib is required to regenerate the figures, and one of the supplementary figures also requires Seaborn.
To get everything in one go, use pip install -r requirements.txt
.
Organisation:
data
: all experimental datamethod-1
: scripts to run method 1method-2
: scripts to run method 2method-3
: scripts to run method 3method-4
: scripts to run method 4models-and-protocols
: the Myokit models and protocols used in the studypython
: shared Python scripts, the most important bits of code live heresurface
: scripts to perform surface mappingsurface-ap-fit
: scripts to fit to the validation signal, only ever used for surface mappingvalidation
: scripts that post-process results from methods 1-4 and assess their performance
This project uses the sine wave data from Beattie 2018, see: https://github.com/mirams/sine-wave
For the publication, see: https://physoc.onlinelibrary.wiley.com/doi/full/10.1113/JP275733
Beattie, K. A., Hill, A. P., Bardenet, R., Cui, Y., Vandenberg, J. I., Gavaghan, D. J., de Boer, T. P. & Mirams, G. R. Sinusoidal voltage protocols for rapid characterisation of ion channel kinetics. J. Physiol. 596, 1813–1828 (2018).