A benchmarking tool for comparing different parameter optimization algorithms for ion channel models
Project description
ionBench
A benchmarking tool for comparing different parameter optimization algorithms for ion channel models.
Project Structure
The tree structure of this project is outlined below.
├───docs
├───ionbench
│ ├───benchmarker
│ ├───data
│ │ ├───loewe2016
│ │ ├───moreno2016
│ │ ├───staircase
│ │ └───test
│ ├───modification
│ ├───optimisers
│ │ ├───external_optimisers
│ │ ├───pints_optimisers
│ │ └───scipy_optimisers
│ ├───problems
│ ├───tracker
│ ├───uncertainty
│ └───utils
├───scipts
│ └───figures
└───test
The docs directory contains information and guides on how to use the benchmarker problems and the optimisation algorithms.
The ionbench directory contains the majority of the code, including the benchmarker and problems classes and the different optimisation algorithms. This is what is installed using pip.
-
The benchmarker subdirectory contains the main Benchmarker class that the test problems all inherit from and defines the core features of the benchmarkers.
-
The data subdirectory is split up into the available benchmark problems. Each subdirectory contains the Myokit .mmt files, the voltage clamp protocols stored as .csv files where relevant, and output data to train the models, also stored as a .csv. It also contains the data for the test problem which is used for testing the benchmarker.
-
The modification subdirectory contains the modification classes, generalised settings for handling transformations and bounds.
-
The optimisers subdirectory contains all the optimisation algorithms that are currently implemented. These are then further subdivided into three directories, containing the optimisers from pints, from scipy, and other optimisation algorithms used in fitting ion channel models that have been implemented specifically for ionBench.
-
The problems subdirectory contains the classes for the available benchmarking problems. This features the problems from Loewe et al. 2016 and Moreno et al. 2016. In addition to these previously defined problems, we have introduced two further problems, a Hodgkin-Huxley IKr model from Beattie et al. 2017 and a Markov IKr model from Fink et al. 2008 using the staircase protocol.
-
The tracker subdirectory contains the Tracker class which records the performance metrics over the course of an optimisation.
-
The uncertainty subdirectory contains functions for determining uncertainty and unidentifiability in the problems, such as calculating profile likelihood plots and Fisher's Information Matrix.
-
The utils subdirectory contains utility functions for the operation of ionBench. This includes code for handling the steady states of the models and a function to initiate multiple runs of the same approach and record the results.
The scripts directory contains scripts for generating figures, tables and data for the paper.
The test directory contains unit tests for ensuring changes do not break previous functionality.
Installation
ionBench can be installed using pip.
pip install ionbench
Note that ionBench uses myokit to do its simulations, which relies on CVODES (from Sundials). For Linux and macOS users a working installation of CVODES is required. For Windows users, CVODES should be automatically installed with myokit.
Getting Started
If you want to use ionBench, check out the introduction and tutorial in the docs directory.
Workflow
The intended workflow for using the benchmarker is to generate a benchmarker object, set up the optimisers modification and apply it to the benchmarker, and pass the benchmarker into the optimisation algorithm to evaluate. All optimisers should accept a single benchmarker as input with all other inputs being optional.
import ionbench
bm = ionbench.problems.staircase.HH()
modification = ionbench.optimisers.pints_optimisers.cmaes_pints.get_modification()
modification.apply(bm)
optimisedParameters = ionbench.optimisers.scipy_optimisers.nelderMead_scipy.run(bm)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ionbench-0.5.0.tar.gz
.
File metadata
- Download URL: ionbench-0.5.0.tar.gz
- Upload date:
- Size: 994.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b25d32dec555092e210fc66db79d82828e768765d6bd06663d2ac4ac269b3e0c |
|
MD5 | 3e9116ad8ecf55ef5a6610386e0c6935 |
|
BLAKE2b-256 | 8cfc33e39a9ec69b402844b270590565eeb2119251e6edc248f7bb0376da6a90 |
File details
Details for the file ionbench-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: ionbench-0.5.0-py3-none-any.whl
- Upload date:
- Size: 1.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14d1791f41d89f8426c4870ac59736eba949add3f1a1a0f975a7335de8d161f |
|
MD5 | 96bdae8cf56f61bcdc79869dd5cc313f |
|
BLAKE2b-256 | 0ab22c377e5f413931e941be95952b1a5aa4d6057846594e2996bbfffb5fbe4e |