https://github.com/mm318/mrg-cpp
Reimplementation of the MRG-model in C++
https://github.com/mm318/mrg-cpp
neuroscience ofx simulation simulation-modeling
Last synced: 8 months ago
JSON representation
Reimplementation of the MRG-model in C++
- Host: GitHub
- URL: https://github.com/mm318/mrg-cpp
- Owner: mm318
- License: gpl-3.0
- Created: 2013-12-24T20:42:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-08-29T06:56:32.000Z (almost 3 years ago)
- Last Synced: 2025-07-29T13:00:37.797Z (11 months ago)
- Topics: neuroscience, ofx, simulation, simulation-modeling
- Language: C++
- Homepage:
- Size: 21 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# McIntyre, Richardson, and Grill Axon Model
Reimplementation of the axon model from McIntyre, Richardson, and Grill (2002) in C++.
Visualization (implemented using openFrameworks) is also addded.
## Build
- Obtain the source:
```bash
git clone https://github.com/mm318/mrg-cpp.git
cd mrg-cpp/
```
- Setup openFrameworks 0.11.2 and its CMake build:
```bash
wget https://github.com/openframeworks/openFrameworks/releases/download/0.11.2/of_v0.11.2_linux64gcc6_release.tar.gz \
&& tar xvzf of_v0.11.2_linux64gcc6_release.tar.gz -C external_libs/ \
&& rm of_v0.11.2_linux64gcc6_release.tar.gz
# optional if dependencies are already installed
sudo external_libs/of_v0.11.2_linux64gcc6_release/scripts/linux/ubuntu/install_dependencies.sh
```
- Build like an usual CMake project, for example:
```bash
mkdir build
cd build/
cmake ..
make -j4
```
## Usage
```
mrg_axon_model
```
The axon file is in the format (tab separated): ` `
### Example
```bash
cd build/bin/
./mrg_axon_model activateF.txt 1 3 3 2 2.5
```

## History
The original implementation was in NEURON, published in:
McIntyre, C., Richardson, A. & Grill, W. (2002). Modeling the excitability of mammalian nerve fibers: Influence of after potentials on the recovery cycle. J. Neurophysiol., 87, 995–1006.
It was then reimplemented in MATLAB, published at:
https://code.google.com/p/mrg-matlab/
This is a reimplementation of the MATLAB code (also found in ./reference/) in C++.