{"id":21453096,"url":"https://github.com/mm318/mrg-cpp","last_synced_at":"2025-10-25T11:02:19.738Z","repository":{"id":12751720,"uuid":"15424925","full_name":"mm318/mrg-cpp","owner":"mm318","description":"Reimplementation of the MRG-model in C++","archived":false,"fork":false,"pushed_at":"2023-08-29T06:56:32.000Z","size":22042,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T13:00:37.797Z","etag":null,"topics":["neuroscience","ofx","simulation","simulation-modeling"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mm318.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-12-24T20:42:26.000Z","updated_at":"2023-09-03T07:53:05.000Z","dependencies_parsed_at":"2025-01-23T12:52:55.683Z","dependency_job_id":null,"html_url":"https://github.com/mm318/mrg-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mm318/mrg-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mm318%2Fmrg-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mm318%2Fmrg-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mm318%2Fmrg-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mm318%2Fmrg-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mm318","download_url":"https://codeload.github.com/mm318/mrg-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mm318%2Fmrg-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280943396,"owners_count":26417747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["neuroscience","ofx","simulation","simulation-modeling"],"created_at":"2024-11-23T04:38:16.363Z","updated_at":"2025-10-25T11:02:19.703Z","avatar_url":"https://github.com/mm318.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# McIntyre, Richardson, and Grill Axon Model\n\nReimplementation of the axon model from McIntyre, Richardson, and Grill (2002) in C++.\n\nVisualization (implemented using openFrameworks) is also addded.\n\n\n## Build\n\n- Obtain the source:\n\n```bash\ngit clone https://github.com/mm318/mrg-cpp.git\ncd mrg-cpp/\n```\n\n- Setup openFrameworks 0.11.2 and its CMake build:\n\n```bash\nwget https://github.com/openframeworks/openFrameworks/releases/download/0.11.2/of_v0.11.2_linux64gcc6_release.tar.gz \\\n    \u0026\u0026 tar xvzf of_v0.11.2_linux64gcc6_release.tar.gz -C external_libs/ \\\n    \u0026\u0026 rm of_v0.11.2_linux64gcc6_release.tar.gz\n\n# optional if dependencies are already installed\nsudo external_libs/of_v0.11.2_linux64gcc6_release/scripts/linux/ubuntu/install_dependencies.sh\n```\n\n- Build like an usual CMake project, for example:\n    \n```bash\nmkdir build\ncd build/\ncmake ..\nmake -j4\n```\n\n\n## Usage\n\n```\nmrg_axon_model \u003caxon file\u003e \u003cV_fe (mV)\u003e \u003cV_applied (mV)\u003e \u003cduration (ms)\u003e \u003cstim start (ms)\u003e \u003cstim end (ms)\u003e\n```\n\nThe axon file is in the format (tab separated): `\u003cx (m)\u003e \u003cy (m)\u003e \u003cz (m)\u003e \u003cVe_pulse (V)\u003e`\n\n### Example\n\n```bash\ncd build/bin/\n./mrg_axon_model activateF.txt 1 3 3 2 2.5\n```\n\n![Example visualization](reference/example_screenshot.png \"Example visualization\")\n\n\n## History\n\nThe original implementation was in NEURON, published in:\n\nMcIntyre, C., Richardson, A. \u0026 Grill, W. (2002). Modeling the excitability of mammalian nerve ﬁbers: Inﬂuence of after potentials on the recovery cycle. J. Neurophysiol., 87, 995–1006.\n\nIt was then reimplemented in MATLAB, published at:\n\nhttps://code.google.com/p/mrg-matlab/\n\nThis is a reimplementation of the MATLAB code (also found in ./reference/) in C++.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmm318%2Fmrg-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmm318%2Fmrg-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmm318%2Fmrg-cpp/lists"}