OSCR

Biophysically inspired mean-field model of neuronal populations driven by ion-exchange mechanisms.

Code ↔ Paper

10 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

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. [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. [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. [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. [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. [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. [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. [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. [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. [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. [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

  1. #!/usr/bin/env python
  2. """Figure 4 -- slow extracellular-potassium oscillations with bursts on top.
  3. (a) mean-field model with slow ion dynamics: C_m = 16, tau_n = 8,
  4. epsilon = 1e-4, gamma = 2.5e-4, J = 0.01, R- = 0.001, R+ = -0.01
  5. ([K+]_bath = 15.5, 15 min of simulated time; the last 12 min are shown)
  6. (b) network of N = 3000 HH-type neurons with rescaled parameters
  7. (C_m = 10, tau_n = 2.4, J = 1, Delta = 1, [K+]_bath = 15.5) -- shorter
  8. bursting period, same qualitative picture
  9. (c, d) in vitro LFP + [K+]_ext recordings: plotted if csv files are found in
  10. data/in_vitro/ (see data/in_vitro/README.md), otherwise skipped
  11. (e) an emergent mean-field regime with isolated bursts in the up state
  12. (J = 2, R- = 0.5, R+ = -0.5, [K+]_bath = 15.5; Supplementary File 1,
  13. column labelled "Fig. 5c" in the preprint numbering)
  14. """
  15. import glob
  16. import os
  17. import matplotlib.pyplot as plt
  18. import numpy as np
  19. from _common import parser, cached, DATA_DIR
  20. from ionmf import population as pop, mean_field as mf, params as P
  21. from ionmf.plotting import strip, save, scalebar, V_COLOR, K_COLOR
  22. p = parser(__doc__)
  23. p.add_argument("--N", type=int, default=3000)
  24. args = p.parse_args()
  25. N = args.N if not args.quick else 300
  26. def two_traces(t, V, K, title, bar_s, name):
  27. fig, (a1, a2) = plt.subplots(2, 1, figsize=(3.2, 1.9), sharex=True)
  28. a1.plot(t, V, color=V_COLOR, lw=0.5); a1.set_ylabel("V"); a1.set_title(title)
  29. a2.plot(t, K, color=K_COLOR, lw=0.8); a2.set_ylabel("$[K^+]_{ext}$")
  30. strip(a1); strip(a2)
  31. scalebar(a2, t[0], bar_s, f"{bar_s:g} s" if bar_s < 60 else f"{bar_s/60:g} min")
  32. save(fig, args.out, name)
  33. # ---------------------------------------------------------------- panel a
  34. par_a = P.make(Cm=16.0, tau_n=8.0, gamma=0.00025, epsilon=0.0001)
  35. coef_a = P.parabola(R_minus=0.001, R_plus=-0.01)
  36. dur_a = 15 * 60_000.0 if not args.quick else 3 * 60_000.0
  37. sa = cached(f"fig4a_mf_slow_{dur_a:g}", lambda: mf.simulate(
  38. 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),
  39. duration_ms=dur_a, dt_ms=1.0, coef=coef_a, par=par_a), not args.no_cache)
  40. n_show = int(len(sa["t"]) * 12 / 15)
  41. two_traces(sa["t"][-n_show:] / 1000, sa["V"][-n_show:], sa["Kext"][-n_show:],
  42. "Mean-field simulation", 120, "Fig4a_meanfield_slow")
  43. # ---------------------------------------------------------------- panel b
  44. par_b = P.make(Cm=10.0, tau_n=2.4)
  45. dur_b = 20_000.0 if not args.quick else 4_000.0
  46. sb = cached(f"fig4b_pop_N{N}_T{dur_b:g}", lambda: pop.simulate(
  47. N=N, K_bath=15.5, J=1.0, Delta=1.0, eta_bar=0.0, E=0.0, Vth=-50.0,
  48. duration_ms=dur_b, dt_ms=0.01, z0=(-81.78, 0.03, -4.92, -14.88), par=par_b,
  49. seed=0, report="text"), not args.no_cache)
  50. cut = int(len(sb["t"]) * 0.2)
  51. two_traces(sb["t"][cut:] / 1000, sb["V_mean"][cut:], sb["Kext_mean"][cut:],
  52. "Neural network simulation", 1, "Fig4b_network_rescaled")
  53. # ---------------------------------------------------------------- panels c, d
  54. files = sorted(glob.glob(os.path.join(DATA_DIR, "in_vitro", "*.csv")))
  55. if not files:
  56. print("panels c-d: no in vitro csv found in data/in_vitro/ -- skipped")
  57. for f in files:
  58. d = np.genfromtxt(f, delimiter=",", names=True)
  59. name = os.path.splitext(os.path.basename(f))[0]
  60. two_traces(d["time_s"], d["lfp"], d["k_ext_mM"], f"In-vitro experiment ({name})",
  61. 60 if d["time_s"][-1] > 300 else 5, f"Fig4cd_invitro_{name}")
  62. # ---------------------------------------------------------------- panel e
  63. coef_e = P.parabola(R_minus=0.5, R_plus=-0.5)
  64. se = cached("fig4e_mf_emergent_J2", lambda: mf.simulate(
  65. 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),
  66. duration_ms=20_000.0, dt_ms=1.0, coef=coef_e), not args.no_cache)
  67. sl = slice(-6000, None)
  68. two_traces(se["t"][sl] / 1000, se["V"][sl], se["Kext"][sl], "Mean-field simulation", 6,
  69. "Fig4e_meanfield_emergent")

fig4_slow_potassium.py at commit 681e45c, under MIT · at the source

Overview

Authors: Giovanni Rabuffo1, Abhirup Bandyopadhyay1, Carmela Calabrese1, Kashyap Gudibanda1, Damien Depannemaecker1, Lavinia Mitiko Takarabe1, Sourin Chatterjee1, Maria Luisa Saggio1, Mathieu Desroches2,3, Anton Ivanov1, Marja-Leena Linne4, Christophe Bernard1, Spase Petkoski1, Viktor Jirsa1
  1. Aix Marseille University, Institut de Neurosciences des Systèmes, UMR 1106, INSERM Marseille France
  2. MathNeuro, INRIA, University of Montpellier Montpellier France
  3. MCENteam, Basque Center for Applied Mathematics (BCAM) Bilbao Spain
  4. Faculty of Medicine and Health Technology, Tampere University Tampere Finland
Journal: eLife, volume 14, article RP104249
Dates: published online 30 September 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.104249 · PMID 42814608 · PMCID PMC13626649 · OpenAlex W4407103898
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: mouse (organism), epilepsy (population), computational (subfield)
Methods: Single-unit activity, calcium imaging
Keywords: Hodgkin–Huxley-type neurons, biophysical neural mass, epilepsy, multiscale mechanisms, mean-field model, Mouse
MeSH: Brain*, Models, Neurological*, Neurons*, Action Potentials, Animals, Computer Simulation, Ions, Nerve Net (* major topic)
Journal subjects: Neuroscience
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: European Commission (10.3030/945539, 10.3030/826421, 10.3030/101137289, 10.3030/101147319, 10.3030/101199894); Agence Nationale de la Recherche (10.67599/anr-22-pesn-0012, 10.67599/anr-24-rrii-0005, ANR-17-CE37-0001-01, ANR-20-NEUC-0005-02); Eusko Jaurlaritza (BERC 2022-2025); Agencia Estatal de Investigación (BCAM Severo Ochoa accreditation CEX2021-001142-S / MICIU / AEI / 10.13039/501100011033)
Citations: not cited yet (Europe PMC); 122 references in the paper

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

License: MIT
State: the link answers, verified on 3 October 2026
Evidence: files inventoried
Commit: 681e45cf501afbd7be82ffd86be52ae02da20fe9, 22 September 2026
Languages: Python (16), Shell (1)
Size: 62 files, 17 scripts
Software Heritage: archived
Found in: “Data availability”
Holds: README, license file, environment (pyproject.toml, requirements.txt)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: NumPy (13 files), Matplotlib (7 files), SciPy (5 files), Brian 2 (1 file), NetworkX (1 file), The Virtual Brain (1 file)
Availability: 1 check, the latest on 3 October 2026: the link answers
  • 3 October 2026: the link answers
19 files

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://github.com/grabuffo/ion-exchange-neural-mass, copy archived at Rabuffo, 2026.

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://doi.org/10.7554/elife.104249

BibTeX

@article{rabuffo2026biophysically,
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/elife.104249},
url = {https://doi.org/10.7554/elife.104249},
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/09/30
VL - 14
SP - RP104249
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.104249
UR - https://doi.org/10.7554/elife.104249
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.104249",
"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": "eLife",
"volume": "14",
"page": "RP104249",
"DOI": "10.7554/elife.104249",
"PMID": "42814608",
"PMCID": "PMC13626649",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.104249",
"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: eLife
In 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: eLife
In 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 America
In 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 reports
In 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 biology
In 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 science
In 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 biology
In 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 biology
In 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.7554/elife.104249.svg)](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:end
HTML
<!-- 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.