Biophysically inspired mean-field model of neuronal populations driven by ion-exchange mechanisms.
The 10 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
- [1] § Results › Comparison with in vitro experiments ↔ scripts/fig4_slow_potassium.py, lines 1 to 29 · score 0.82 · shorter bursting period, isolated bursts, extracellular potassium, slow potassium, vitro, LFP · Report a mismatch
- [2] § Results › Biophysically inspired mean-field model ↔ scripts/figS1_bimodal_and_psd.py, lines 1 to 19 · score 0.79 · power spectral density, supra threshold activity, nullcline geometry, parabola coefficients, bimodal, membrane potential · Report a mismatch
- [3] § Results › Biophysically inspired mean-field model ↔ scripts/fig2_single_neuron.py, lines 32 to 68 · score 0.77 · sustained ictal activity, depolarization block, tonic spiking, single neuron, events, seizure · Report a mismatch
- [4] § Results › Coupled neural masses ↔ scripts/fig6_network.py, lines 1 to 28 · score 0.68 · global coupling, pathological activity, structural connections, neural masses, weights, node · Report a mismatch
- [5] § Results › Comparison with neural network simulations ↔ scripts/fig2_single_neuron.py, lines 32 to 68 · score 0.63 · depolarization block, tonic spiking, single neuron, events, regimes, seizure · Report a mismatch
- [6] § Results › Comparison with neural network simulations ↔ ionmf/population.py, lines 1 to 71 · score 0.63 · synaptic strength, heterogeneous excitability, coupled HH, single neuron, width, network · Report a mismatch
- [7] § Results › Comparison with in vitro experiments ↔ scripts/fig4_slow_potassium.py, lines 1 to 29 · score 0.61 · rescaled parameters, extracellular potassium, shorter, isolated, vitro, LFP · Report a mismatch
- [8] § Materials and methods › Biophysical neuron model ↔ ionmf/single_neuron.py, lines 1 to 14 · score 0.59 · ion exchange, gating variable, variation, buffering, membrane potential, intracellular · Report a mismatch
- [9] § Results › Coupled neural masses ↔ scripts/fig6_network.py, lines 1 to 28 · score 0.54 · pathological activity, structural connectivity, propagate, weighted, bursting, network · Report a mismatch
- [10] § Results › Biophysically inspired mean-field model ↔ ionmf/__init__.py, the whole file · a weak match · score 0.54 · Hodgkin Huxley, nullcline geometry, coefficients, inspired, Neuronal, parabola · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 80 lines · 3.8 KB · MIT · 2 matches
- #!/usr/bin/env python
- """Figure 4 -- slow extracellular-potassium oscillations with bursts on top.
- (a) mean-field model with slow ion dynamics: C_m = 16, tau_n = 8,
- epsilon = 1e-4, gamma = 2.5e-4, J = 0.01, R- = 0.001, R+ = -0.01
- ([K+]_bath = 15.5, 15 min of simulated time; the last 12 min are shown)
- (b) network of N = 3000 HH-type neurons with rescaled parameters
- (C_m = 10, tau_n = 2.4, J = 1, Delta = 1, [K+]_bath = 15.5) -- shorter
- bursting period, same qualitative picture
- (c, d) in vitro LFP + [K+]_ext recordings: plotted if csv files are found in
- data/in_vitro/ (see data/in_vitro/README.md), otherwise skipped
- (e) an emergent mean-field regime with isolated bursts in the up state
- (J = 2, R- = 0.5, R+ = -0.5, [K+]_bath = 15.5; Supplementary File 1,
- column labelled "Fig. 5c" in the preprint numbering)
- """
- import glob
- import os
- import matplotlib.pyplot as plt
- import numpy as np
- from _common import parser, cached, DATA_DIR
- from ionmf import population as pop, mean_field as mf, params as P
- from ionmf.plotting import strip, save, scalebar, V_COLOR, K_COLOR
- p = parser(__doc__)
- p.add_argument("--N", type=int, default=3000)
- args = p.parse_args()
- N = args.N if not args.quick else 300
- def two_traces(t, V, K, title, bar_s, name):
- fig, (a1, a2) = plt.subplots(2, 1, figsize=(3.2, 1.9), sharex=True)
- a1.plot(t, V, color=V_COLOR, lw=0.5); a1.set_ylabel("V"); a1.set_title(title)
- a2.plot(t, K, color=K_COLOR, lw=0.8); a2.set_ylabel("$[K^+]_{ext}$")
- strip(a1); strip(a2)
- scalebar(a2, t[0], bar_s, f"{bar_s:g} s" if bar_s < 60 else f"{bar_s/60:g} min")
- save(fig, args.out, name)
- # ---------------------------------------------------------------- panel a
- par_a = P.make(Cm=16.0, tau_n=8.0, gamma=0.00025, epsilon=0.0001)
- coef_a = P.parabola(R_minus=0.001, R_plus=-0.01)
- dur_a = 15 * 60_000.0 if not args.quick else 3 * 60_000.0
- sa = cached(f"fig4a_mf_slow_{dur_a:g}", lambda: mf.simulate(
- 15.5, J=0.01, eta=0.0, Delta=1.0, E=0.0, z0=(36.8, -70.8, 0.053, -0.231, 7.93),
- duration_ms=dur_a, dt_ms=1.0, coef=coef_a, par=par_a), not args.no_cache)
- n_show = int(len(sa["t"]) * 12 / 15)
- two_traces(sa["t"][-n_show:] / 1000, sa["V"][-n_show:], sa["Kext"][-n_show:],
- "Mean-field simulation", 120, "Fig4a_meanfield_slow")
- # ---------------------------------------------------------------- panel b
- par_b = P.make(Cm=10.0, tau_n=2.4)
- dur_b = 20_000.0 if not args.quick else 4_000.0
- sb = cached(f"fig4b_pop_N{N}_T{dur_b:g}", lambda: pop.simulate(
- N=N, K_bath=15.5, J=1.0, Delta=1.0, eta_bar=0.0, E=0.0, Vth=-50.0,
- duration_ms=dur_b, dt_ms=0.01, z0=(-81.78, 0.03, -4.92, -14.88), par=par_b,
- seed=0, report="text"), not args.no_cache)
- cut = int(len(sb["t"]) * 0.2)
- two_traces(sb["t"][cut:] / 1000, sb["V_mean"][cut:], sb["Kext_mean"][cut:],
- "Neural network simulation", 1, "Fig4b_network_rescaled")
- # ---------------------------------------------------------------- panels c, d
- files = sorted(glob.glob(os.path.join(DATA_DIR, "in_vitro", "*.csv")))
- if not files:
- print("panels c-d: no in vitro csv found in data/in_vitro/ -- skipped")
- for f in files:
- d = np.genfromtxt(f, delimiter=",", names=True)
- name = os.path.splitext(os.path.basename(f))[0]
- two_traces(d["time_s"], d["lfp"], d["k_ext_mM"], f"In-vitro experiment ({name})",
- 60 if d["time_s"][-1] > 300 else 5, f"Fig4cd_invitro_{name}")
- # ---------------------------------------------------------------- panel e
- coef_e = P.parabola(R_minus=0.5, R_plus=-0.5)
- se = cached("fig4e_mf_emergent_J2", lambda: mf.simulate(
- 15.5, J=2.0, eta=0.0, Delta=1.0, E=0.0, z0=(0.1, -15.0, 0.45, -5.0, -16.0),
- duration_ms=20_000.0, dt_ms=1.0, coef=coef_e), not args.no_cache)
- sl = slice(-6000, None)
- two_traces(se["t"][sl] / 1000, se["V"][sl], se["Kext"][sl], "Mean-field simulation", 6,
- "Fig4e_meanfield_emergent")
fig4_slow_potassium.py at commit 681e45c, under MIT · at the source
Overview
- Aix Marseille University, Institut de Neurosciences des Systèmes, UMR 1106, INSERM Marseille France
- MathNeuro, INRIA, University of Montpellier Montpellier France
- MCENteam, Basque Center for Applied Mathematics (BCAM) Bilbao Spain
- Faculty of Medicine and Health Technology, Tampere University Tampere Finland
Abstract
Whole-brain simulations are a valuable tool for gaining insight into the multiscale processes that regulate brain activity. Due to the complexity of the brain, it is impractical to include all microscopic details in a simulation. Hence, researchers often simulate the brain as a network of coupled neural masses, each described by a mean-field model. These models capture the essential features of neuronal populations while approximating most biophysical details. However, it may be important to include certain parameters that significantly impact brain function. The concentration of ions in the extracellular space is one key factor to consider, as its fluctuations can be associated with healthy and pathological brain states. In this paper, we develop a new mean-field model of a population of Hodgkin–Huxley-type neurons, retaining a microscopic perspective on the ion-exchange mechanisms driving neuronal activity. This allows us to maintain biophysical interpretability while bridging the gap between micro- and macro-scale mechanisms. Our model is able to reproduce a wide range of activity patterns, also observed in large neural network simulations. Specifically, slow-changing ion concentrations modulate the fast neuroelectric activity, a feature of our model that we validated through in vitro experiments. By studying how changes in extracellular ionic conditions can affect whole-brain dynamics, this model serves as a foundation to measure biomarkers of pathological activity and provide potential therapeutic targets in cases of brain dysfunctions like epilepsy.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 10 matches between paragraphs and lines of code.
grabuffo/ion-exchange-neural-mass
681e45cf501afbd7be82ffd86be52ae02da20fe9, 22 September 2026Availability: 1 check, the latest on 3 October 2026: the link answers
- 3 October 2026: the link answers
19 files
- ionmf/
__init__.py , Python, 16 lines, 1 match - ionmf/
mean_field.py , Python, 59 lines - ionmf/
network.py , Python, 108 lines - ionmf/
nullcline.py , Python, 70 lines - ionmf/
params.py , Python, 71 lines - ionmf/
plotting.py , Python, 43 lines - ionmf/
population.py , Python, 142 lines, 1 match - ionmf/
single_neuron.py , Python, 70 lines, 1 match - run_all.sh, Shell, 12 lines
- scripts/
_common.py , Python, 75 lines - scripts/
fig2_single_neuron.py , Python, 120 lines, 2 matches - scripts/
fig3_population_vs_meanf , Python, 107 linesield.py - scripts/
fig4_slow_potassium.py , Python, 80 lines, 2 matches - scripts/
fig6_network.py , Python, 57 lines, 2 matches - scripts/
figS1_bimodal_and_psd.py , Python, 68 lines, 1 match - scripts/
figS2_first_moment_error , Python, 85 lines.py - tvb/
model_HH_ABH.py , Python, 320 lines - LICENSE, License, 21 lines
- README.md, Text, 112 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 17 scripts, each with its path and the digest of its content;
- 10 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
All code and data used in this study are publicly available on GitHub at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 3 October 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 14 authors, 6 keywords, 8 MeSH terms, 4 funders, 120 references.
Cite
This paper
Rabuffo, G., Bandyopadhyay, A., Calabrese, C., Gudibanda, K., Depannemaecker, D., Takarabe, L. M., Chatterjee, S., Saggio, M. L., Desroches, M., Ivanov, A., Linne, M.-L., Bernard, C., Petkoski, S., & Jirsa, V. (2026). Biophysically inspired mean-field model of neuronal populations driven by ion-exchange mechanisms. eLife, 14, RP104249. https://
BibTeX
@article{rabuffo2026biop
author = {Rabuffo, Giovanni and Bandyopadhyay, Abhirup and Calabrese, Carmela and Gudibanda, Kashyap and Depannemaecker, Damien and Takarabe, Lavinia Mitiko and Chatterjee, Sourin and Saggio, Maria Luisa and Desroches, Mathieu and Ivanov, Anton and Linne, Marja-Leena and Bernard, Christophe and Petkoski, Spase and Jirsa, Viktor},
title = {{Biophysically inspired mean-field model of neuronal populations driven by ion-exchange mechanisms}},
journal = {eLife},
year = {2026},
month = sep,
volume = {14},
pages = {RP104249},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42814608},
pmcid = {PMC13626649}
}
RIS
TY - JOUR
AU - Rabuffo, Giovanni
AU - Bandyopadhyay, Abhirup
AU - Calabrese, Carmela
AU - Gudibanda, Kashyap
AU - Depannemaecker, Damien
AU - Takarabe, Lavinia Mitiko
AU - Chatterjee, Sourin
AU - Saggio, Maria Luisa
AU - Desroches, Mathieu
AU - Ivanov, Anton
AU - Linne, Marja-Leena
AU - Bernard, Christophe
AU - Petkoski, Spase
AU - Jirsa, Viktor
TI - Biophysically inspired mean-field model of neuronal populations driven by ion-exchange mechanisms
T2 - eLife
J2 - eLife
PY - 2026
DA - 2026/
VL - 14
SP - RP104249
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Biophysically inspired mean-field model of neuronal populations driven by ion-exchange mechanisms",
"container-title": "eLife",
"author": [
{
"family": "Rabuffo",
"given": "Giovanni"
},
{
"family": "Bandyopadhyay",
"given": "Abhirup"
},
{
"family": "Calabrese",
"given": "Carmela"
},
{
"family": "Gudibanda",
"given": "Kashyap"
},
{
"family": "Depannemaecker",
"given": "Damien"
},
{
"family": "Takarabe",
"given": "Lavinia Mitiko"
},
{
"family": "Chatterjee",
"given": "Sourin"
},
{
"family": "Saggio",
"given": "Maria Luisa"
},
{
"family": "Desroches",
"given": "Mathieu"
},
{
"family": "Ivanov",
"given": "Anton"
},
{
"family": "Linne",
"given": "Marja-Leena"
},
{
"family": "Bernard",
"given": "Christophe"
},
{
"family": "Petkoski",
"given": "Spase"
},
{
"family": "Jirsa",
"given": "Viktor"
}
],
"container-title-short":
"volume": "14",
"page": "RP104249",
"DOI": "10.7554/
"PMID": "42814608",
"PMCID": "PMC13626649",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
9,
30
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.7554/elife.106194 [code]
- Virtual Brain Inference (VBI), a flexible and integrative toolkit for efficient probabilistic inference on whole-brain models.Journal: eLifeIn common: NetworkX, SciPy, Matplotlib, 1 other tool, computational, 21 references, 2 authors
- [2] doi:10.7554/elife.98920 [code]
- Spatiotemporal brain complexity quantifies consciousness outside of perturbation paradigms.Journal: eLifeIn common: The Virtual Brain, SciPy, Matplotlib, 1 other tool, 6 references, 3 authors
- [3] doi:10.1073/pnas.2405706122 [code]
- Mapping global brain reconfigurations following local targeted manipulations.Journal: Proceedings of the National Academy of Sciences of the United States of AmericaIn common: NetworkX, SciPy, Matplotlib, 1 other tool, mouse, 6 references, 3 authors
- [4] doi:10.1038/s41598-024-83542-w [code]
- Symmetry breaking organizes the brain's resting state manifold.Journal: Scientific reportsIn common: computational, 11 references, 2 authors
- [5] doi:10.1162/netn_a_00231 [code]
- Normalizing the brain connectome for communication through synchronization.Journal: Network neuroscience (Cambridge, Mass.)In common: 10 references, 2 authors
- [6] doi:10.1371/journal.pcbi.1011642 [code]
- Parameter estimation in a whole-brain network model of epilepsy: Comparison of parallel global optimization solvers.Journal: PLoS computational biologyIn common: SciPy, Matplotlib, NumPy, computational, epilepsy, 11 references, author Viktor Jirsa
- [7] doi:10.1038/s43588-025-00841-6 [code]
- Virtual brain twins for stimulation in epilepsy.Journal: Nature computational scienceIn common: The Virtual Brain, SciPy, Matplotlib, 1 other tool, epilepsy, 8 references, author Viktor Jirsa
- [8] doi:10.1162/netn.a.543 [code]
- High-resolution Bayesian Virtual Epileptic Patient using neural field models.Journal: Network neuroscience (Cambridge, Mass.)In common: The Virtual Brain, SciPy, Matplotlib, 1 other tool, computational, epilepsy, 8 references, author Viktor Jirsa
- [9] doi:10.1371/journal.pcbi.1011903 [code]
- Bifurcations and bursting in the Epileptor.Journal: PLoS computational biologyIn common: epilepsy, 10 references, author Viktor Jirsa
- [10] doi:10.1371/journal.pcbi.1012647 [code]
- Whole brain functional connectivity: Insights from next generation neural mass modelling incorporating electrical synapses.Journal: PLoS computational biologyIn common: 12 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 17 scripts, and 10 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:1289d84762580297…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.7554/elife.104249)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.7554/elife.104249.svg
:target: https://openscicode.org/badge/doi/10.7554/elife.104249
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.104249"><img src="https://openscicode.org/badge/doi/10.7554/elife.104249.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
