Skip to content

Examples of parameter estimation in cardiac cell electrophysiology using Myokit and PINTS.

Notifications You must be signed in to change notification settings

CardiacModelling/fitting-notebooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitting ion channel models with Myokit & PINTS

This repository contains notebooks showing how to fit Myokit models to data using the PINTS optimisation & inference framework.

A part on fitting AP models is planned, but for now the repository contains:

  • A set of notebooks showing how to fit kinetic parameters of ion current models.

Requirements

The notebooks can be viewed online without any installation, either with GitHub's built-in viewer or with the nicer NBViewer.

To re-run the notebooks locally, use Python 3.5 or newer, and pip install -r requirements.txt.

General recommendations for fitting

Start with a synthetic data study. Before going to the lab, work out what data you expect to get, simulate this data and add noise, prepare your analysis code, and test that it can recover the parameters you used to generate the data.

Fit to time-series data. Whenever possible, avoid fitting to "summary statistics" or "biomarkers" such as time constants, IV-, or (in)activation curves. Contacting experimenters, digging in archives, or even repeating experiments is a better use of time than trying to fit to unsuitable data.

Define expected ranges for the parameters. Define boundaries on the parameters or on derived quantities like reaction rates. These can speed up your search and prevent numerical problems and solver failures.

Verify the reliability of your results by running repeated fits. Restart your fit several (50?) times from different positions sampled from within the parameters' feasible ranges. If only a handful of fits find the same "best result", it is likely not the global optimum.

Check your solver tolerances. When using an adaptive step-size solver, use strict tolerances. To see why, plot your error measure along a line between two nearby points: if it looks "noisy" you need to tighten the tolerance.

Search in a log-transformed parameter space. This can often make the problem much easier for whatever optimisation algorithm you're using.

Use the CMA-ES optimiser. It performs much better on these problems than anything else that we've tried.

More information

Software

Papers

  • Calibration of ionic and cellular cardiac electrophysiology models. Dominic G. Whittaker, Michael Clerx, Chon Lok Lei, David J. Christini, Gary R. Mirams. 2020, WIREs Systems Biology and Medicine. doi:10.1002/wsbm.1482 | code

  • Four ways to fit an ion channel model. Michael Clerx, Kylie A. Beattie, David J. Gavaghan, Gary R. Mirams. 2019, Biophysical Journal. doi:10.1016/j.bpj.2019.08.001 | code

  • Rapid characterisation of hERG channel kinetics I: using an automated high-throughput system. Chon Lok Lei, Michael Clerx, David J. Gavaghan, Liudmila Polonchuk, Gary R. Mirams, Ken Wang. 2019, Biophysical Journal. doi:j.bpj.2019.07.029 | code

  • Rapid characterisation of hERG channel kinetics II: temperature dependence. Chon Lok Lei, Michael Clerx, Kylie A. Beattie, Dario Melgari, Jules C. Hancox, David J. Gavaghan, Liudmila Polonchuk, Ken Wang, Gary R. Mirams. 2019, Biophysical Journal. doi:j.bpj.2019.07.030 | code

  • Sinusoidal voltage protocols for rapid characterisation of ion channel kinetics Kylie A. Beattie, Adam P. Hill, Rémi Bardenet, Yi Cui, Jamie I. Vandenberg, David J. Gavaghan, Teun P. de Boer, Gary R. Mirams 2018, The Journal of Physiology. doi:10.1113/JP275733 | code

Advanced topics

  • Accounting for variability in ion current recordings using a mathematical model of artefacts in voltage-clamp experiments Chon Lok Lei, Michael Clerx, Dominic G. Whittaker, David J. Gavaghan, Teun P. de Boer, Gary R. Mirams doi:10.1098/rsta.2019.0348 | code

  • Considering discrepancy when calibrating a mechanistic electrophysiology model Chon Lok Lei, Sanmitra Ghosh, Dominic G. Whittaker, Yasser Aboelkassem, Kylie A. Beattie, Chris D. Cantwell, Tammo Delhaas, Charles Houston, Gustavo Montes Novaes, Alexander V. Panfilov, Pras Pathmanathan, Marina Riabiz, Rodrigo Weber dos Santos, John Walmsley, Keith Worden, Gary R. Mirams, Richard D. Wilkinson 2020, Phil. Trans. R. Soc. A. doi:10.1098/rsta.2019.0349 | code

About

Examples of parameter estimation in cardiac cell electrophysiology using Myokit and PINTS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages