Skip to content

pollytur/Hodgkin-Huxley-model

Repository files navigation

Hodgkin Huxley Model in Haskell

Build Status

Description

  • This is a simple simulations of Hodgkin Huxley Model in Haskell. The velocity of the ions is proportional to the current of those ions. The vertical stripes in the middle is membrane - yellow parts are stable, others are channels for ions, their color is derived proportionally to the gating variable from the model. The ratio of ions is resting potential ratio.
Currents Gating variables

Prerequisites

brew install pkg-config cairo

This project relies on the Haskell Stack tool.

It is recommended to get Stack with batteries included by installing Haskell Platform.

Build

To build this project simply run

stack build

This will install all dependencies, including a proper version of GHC (which should be there already if you have Haskell Platform 8.4.3).

Run

This project has one executable that you can run with

stack exec my-project-exe

During development it is recommended a combination of build and exec:

stack build && stack exec my-project-exe

Alternatively, you can run

stack build file-watch

For continuous builds in the background.

However, in some versions of stack the exec file if unavalibale in your local directory after build. If you have any problems, see this Stack Tutorial for the beginners and use

stack install --local-bin-path=<dir>

Test

stack test --fast

Interpreter

You can run GHCi (GHC interpreter) for the whole project with

stack ghci

or

stack repl

During development it might be beneficial to work using an interpreter for quick reloads, interacting with various parts of code and trying out things.

Note that you can run executable from GHCi by invoking main.

Some Info about Hodgkin Huxley Model

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published