OSCR

Critical neuronal avalanches arise from excitation-inhibition balanced spontaneous activity.

Code ↔ Paper

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

5 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.

The 8 matches · 7 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
  1. [1] § STAR★Methods › Method details › Network model ↔ SpikesToFluoresence.m, the whole file · a weak match · score 0.98 · double exponential kernel, synthetic fluorescence signal, latent variable, external noise, phenomenological model, sigmoidal function · block oscr:b:NYWDD3DE09R1T-X · Report a mismatch
  2. [2] § STAR★Methods › Method details › Network model ↔ Gillespie_EImodel.m, the whole file · a weak match · score 0.87 · stochastic Wilson Cowan, quiescent state, transition rate, connectivity matrix, vectors, dimensional · block oscr:b:WMVGKJ2WX5Q7B-T · Report a mismatch
  3. [3] § Results › E-I network model suggests that neuronal avalanches emerge through balanced amplification ↔ run_EImodel.m, lines 1 to 39 · score 0.84 · nonlinear response function, model spiking activity, neurons interact, exponentially decreased, transients, distance · block oscr:b:AVR78A9GTGMCM-O · Report a mismatch
  4. [4] § STAR★Methods › Method details › Neuronal avalanches ↔ Get_NonSpatialAvalanches.m, the whole file · a weak match · score 0.71 · summed population activity, recorded neurons, definition, threshold, bins, Neuronal avalanche · block oscr:b:K8TA0K2QPR08S-K · Report a mismatch
  5. [5] § Results › E-I network model suggests that neuronal avalanches emerge through balanced amplification ↔ Get_NonSpatialAvalanches.m, the whole file · a weak match · score 0.64 · spatially unconstrained definition, sum activity, population activities, neuronal avalanches, neurons · block oscr:b:K8TA0K2QPR08S-K · Report a mismatch
  6. [6] § STAR★Methods › Method details › Network model ↔ Gillespie_EImodel.m, the whole file · a weak match · score 0.63 · transition rate, Gillespie, quiescent, algorithm, dt, simulated · block oscr:b:WMVGKJ2WX5Q7B-T · Report a mismatch
  7. [7] § STAR★Methods › Method details › Network model ↔ Get_Connectivity_matrix.m, the whole file · a weak match · score 0.58 · spatial embedded, connectivity matrix, NI, coupling, neurons · block oscr:b:C1MJZQZ69XDRD-6 · Report a mismatch
  8. [8] § STAR★Methods › Method details › Network model ↔ Get_Connectivity_matrix.m, the whole file · a weak match · score 0.50 · balanced amplification, Schur, rI, trace, wI, coupling · block oscr:b:C1MJZQZ69XDRD-6 · 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

MATLAB · 137 lines · 4.5 KB · no license · 2 matches

  1. function [spike_times,spike_ids,network_state] = Gillespie_EImodel(W,response_fn,beta,alpha,I,t_min,t_max,init_state)
  2. % This function is based on Edward Wallace's code, publicly available here:
  3. % https://github.com/ewallace/stochsimcode
  4. %
  5. % This code simulates a stochastic Wilson-Cowan model with the Gillespie algorithm.
  6. % The connectivity of E and I neurons is given by matrix W (N-by-N, where N = NE + NI).
  7. % The background inputs are given by I (N-dimensional).
  8. % State transition rates are given by alpha and the tranfert function (response_fn, handle function)
  9. %
  10. %
  11. % Inputs:
  12. % -W: connectivity matrix, N-by-N: W(i,j) is synaptic
  13. % weight from the jth neuron to the ith neuron.
  14. % -response_fn: handle for response function (sigmoid, hyperbolic tan, etc.)
  15. % -I: backgound inputs, N-dimensional array
  16. % -alpha: rate at which active neurons decay to quiescent state, N-dimensional array
  17. % -beta: is the height of the response function, N-dimensional array
  18. % -init_state: is the initial state vector, 2-by-N
  19. %
  20. % Outputs:
  21. % - spike_times: spike times
  22. % - spike_ids: neuron IDs associated to spike times
  23. % - network_state: last network state (useful for batches)
  24. %
  25. % References:
  26. % Citation: Benayoun M, Cowan JD, van Drongelen W, Wallace E (2010)
  27. % Avalanches in a Stochastic Model of Spiking Neurons.
  28. % PLoS Comput Biol 6(7): e1000846.
  29. % https://doi.org/10.1371/journal.pcbi.1000846
  30. %
  31. % Wallace E, Benayoun M, van Drongelen W, Cowan JD.
  32. % Emergent Oscillations in Networks of Stochastic Spiking Neurons
  33. % PLoS ONE, May 6, 2011. DOI: 10.1371/journal.pone.0014804
  34. %--------------------------------------------------------------------------
  35. N = size(W,1);
  36. % Calculate expected number of events
  37. factor=10;
  38. expected_events=N*(t_max-t_min)*factor;
  39. % Initialize vectors for update times, label of updated neuron,
  40. % and new state of updated neuron
  41. times = zeros(1, expected_events);
  42. updates = times;
  43. new_states = zeros(2, expected_events);
  44. % Set event counter to 0 and simulation time to initial time.
  45. event_no = 0;
  46. curr_time = t_min;
  47. dt = 0;
  48. % initialize network state vector - we'll keep one vector
  49. % for the active neurons and another for the quiescent ones
  50. network_state = init_state;
  51. active = init_state(1,:)';
  52. quiescent = init_state(2,:)';
  53. % Calculate vector of transition rates at initial time
  54. currents = W*active + I;
  55. trans = beta .* (active==0) .*feval(response_fn,currents) + ...
  56. alpha.*(active==1);
  57. cum_trans=cumsum(trans);
  58. % Main loop: update according to Gillespie algorithm, with rates
  59. % specified by trans, until time t_max is exceeded.
  60. while (curr_time < t_max)
  61. curr_time = curr_time + dt;
  62. % Call gillespie to pick update time, neuron updated, and new state
  63. % Calculates total network transition rate, as sum of transition
  64. % rates of all neurons, i.e. last element of cum_trans.
  65. total_trans = cum_trans(end);
  66. % timestep is exponential R.V. with parameter total_trans
  67. dt = -log(rand)/total_trans;
  68. % pick random variable uniform on (0, total_trans), and select
  69. % neuron with number i_update as least i with
  70. % test_variable < cum_trans(i)
  71. test_variable = total_trans*rand;
  72. i_update = find(cum_trans >= test_variable,1,'first');
  73. % Pick new state for neuron i_update
  74. new_state = double(~network_state(:,i_update));
  75. active(i_update) = new_state(1);
  76. quiescent(i_update) = new_state(2);
  77. % change transition rates of neurons affected by spike
  78. if(new_state(1) == 1)
  79. currents = currents + W(:,i_update);
  80. elseif(new_state(1)==0)
  81. currents = currents - W(:,i_update);
  82. end
  83. trans = beta .* (active==0) .*feval(response_fn,currents) + ...
  84. alpha.*(active==1);
  85. % calculate cumulative sum of transition probabities
  86. cum_trans=cumsum(trans);
  87. event_no=event_no+1;
  88. times(event_no)=curr_time+dt;
  89. updates(event_no) = i_update;
  90. new_states(:, event_no)=new_state;
  91. network_state = [ active' ; quiescent' ];
  92. % If network can make no further transitions, end simulation.
  93. if(cum_trans(N)==0)
  94. break
  95. end
  96. end
  97. % End of main simulation loop
  98. event_no = event_no - 1;
  99. times=times(1:event_no);
  100. updates=updates(1:event_no);
  101. new_states=new_states(:, 1:event_no);
  102. % Takes vectors of all times, updates, and new states, outputs
  103. % reduced vector containing only spike times and info, i.e.
  104. % transitions from quiescent to active.
  105. spikes = find(new_states(1,:));
  106. spike_times = times(spikes);
  107. spike_ids = updates(spikes);
  108. return

Gillespie_EImodel.m at commit cbfcd64, no license · at the source

Overview

Authors: Maxime Janbon1, Mateo Amortegui1, Enrique Carlos Arnoldo Hansen1, Sarah Nourin1, Virginie Candat1, Germán Sumbre1, Adrián Ponce-Alvarez2,3,4
  1. Institut de Biologie de l’ENS (IBENS), Département de biologie, École normale supérieure, CNRS, INSERM, Université PSL, 75005 Paris, France
  2. Departament de Matemàtiques, Universitat Politècnica de Catalunya, 08028 Barcelona, Spain
  3. Institut de Matemàtiques de la UPC - Barcelona Tech (IMTech), Barcelona, Spain
  4. Centre de Recerca Matemàtica, Barcelona, Spain
Journal: iScience, volume 29, issue 9, article 117212
Dates: received 5 November 2025; accepted 30 July 2026; published online 14 August 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1016/j.isci.2026.117212 · PMID 42633153 · PMCID PMC13499105 · OpenAlex W7203452248
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Methods: Connectivity, Statistics, Single-unit activity, calcium imaging, Spectral & time-frequency
Keywords: zebrafish, optic tectum, calcium imaging, light-sheet microscopy, immunostaining, neuronal avalanches, excitation-inhibition balance, stochastic network model, critical neuronal dynamics
Topic: Neural dynamics and brain function (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: State Agency of Research (PID2022-137708NB-I00, RYC2020-029117-I, CEX2020-001084-M); European Research Council (726280); Federación Española de Enfermedades Raras
Citations: cited by 1 paper (Europe PMC); 88 references in the paper

Abstract

Neuronal avalanches are sequences of neural activations exhibiting scale-invariant statistics, indicative of critical dynamics. Theoretical studies proposed that the balance between excitation (E) and inhibition (I), along with neuromodulation, are key factors influencing this critical behavior. Here, we performed in vivo studies to investigate the role of E and I neurons in generating neuronal avalanches in the optic tectum of zebrafish larvae. For this, we used double-transgenic zebrafish larvae expressing cell-type-specific fluorescent proteins and GCaMP6f, combined with immunostaining and selective-plane illumination microscopy to monitor spontaneous neuronal activity and neurotransmitter identity. We found that neural activity exhibited avalanches with critical exponents at balanced and slightly excitation-dominated E–I ratios, whereas imbalanced ratios led to faster-decaying avalanches. A stochastic network model operating at a critical point, where excitation and inhibition couplings are balanced and balanced amplification drives network avalanches, reproduced the observed statistics of neuronal avalanches and their dependence on E-I ratio fluctuations.

Reproduced under the paper's license (CC BY-NC), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 8 matches between paragraphs and lines of code.

adrianponce/ExcInh_Neuronal_Avalanches

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: cbfcd64521944fa5b13910ae3ca9bcdf708de2cd, 21 October 2025
Languages: MATLAB (7)
Size: 9 files, 7 scripts
Software Heritage: not archived
Found in: “Data and code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
8 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;
  • 7 scripts, each with its path and the digest of its content;
  • 8 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 and code availability

All data reported in this article is available upon reasonable request.

The codes to detect and analyze the neuronal avalanches and to model them are available at: https://github.com/adrianponce/ExcInh_Neuronal_Avalanches.

Any additional information required to reanalyze the data reported in this paper is available from the lead contact upon request.

Reproduced under the paper's license (CC BY-NC), 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 2, 28 September 2026

  • Authors: added Adrián Ponce-Alvarez (0000-0003-1446-7392); removed Adrián Ponce-Alvarez

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 7 authors, 9 keywords, 3 funders, 88 references.

Cite

This paper

Janbon, M., Amortegui, M., Hansen, E. C. A., Nourin, S., Candat, V., Sumbre, G., & Ponce-Alvarez, A. (2026). Critical neuronal avalanches arise from excitation-inhibition balanced spontaneous activity. iScience, 29(9), 117212. https://doi.org/10.1016/j.isci.2026.117212

BibTeX

@article{janbon2026critical,
author = {Janbon, Maxime and Amortegui, Mateo and Hansen, Enrique Carlos Arnoldo and Nourin, Sarah and Candat, Virginie and Sumbre, Germán and Ponce-Alvarez, Adrián},
title = {{Critical neuronal avalanches arise from excitation-inhibition balanced spontaneous activity}},
journal = {iScience},
year = {2026},
month = aug,
volume = {29},
number = {9},
pages = {117212},
publisher = {Elsevier},
issn = {2589-0042},
doi = {10.1016/j.isci.2026.117212},
url = {https://doi.org/10.1016/j.isci.2026.117212},
pmid = {42633153},
pmcid = {PMC13499105}
}

RIS

TY - JOUR
AU - Janbon, Maxime
AU - Amortegui, Mateo
AU - Hansen, Enrique Carlos Arnoldo
AU - Nourin, Sarah
AU - Candat, Virginie
AU - Sumbre, Germán
AU - Ponce-Alvarez, Adrián
TI - Critical neuronal avalanches arise from excitation-inhibition balanced spontaneous activity
T2 - iScience
J2 - iScience
PY - 2026
DA - 2026/08/14
VL - 29
IS - 9
SP - 117212
SN - 2589-0042
PB - Elsevier
DO - 10.1016/j.isci.2026.117212
UR - https://doi.org/10.1016/j.isci.2026.117212
LA - en
ER -

CSL-JSON

{
"id": "10.1016/j.isci.2026.117212",
"type": "article-journal",
"title": "Critical neuronal avalanches arise from excitation-inhibition balanced spontaneous activity",
"container-title": "iScience",
"author": [
{
"family": "Janbon",
"given": "Maxime"
},
{
"family": "Amortegui",
"given": "Mateo"
},
{
"family": "Hansen",
"given": "Enrique Carlos Arnoldo"
},
{
"family": "Nourin",
"given": "Sarah"
},
{
"family": "Candat",
"given": "Virginie"
},
{
"family": "Sumbre",
"given": "Germán"
},
{
"family": "Ponce-Alvarez",
"given": "Adrián"
}
],
"container-title-short": "iScience",
"volume": "29",
"issue": "9",
"page": "117212",
"DOI": "10.1016/j.isci.2026.117212",
"PMID": "42633153",
"PMCID": "PMC13499105",
"ISSN": "2589-0042",
"publisher": "Elsevier",
"URL": "https://doi.org/10.1016/j.isci.2026.117212",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
14
]
]
}
}

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.1038/s42003-023-05001-y [code]
Critical scaling of whole-brain resting-state dynamics.
Journal: Communications biology
In common: Statistics and Machine Learning Toolbox, 18 references, author Adrián Ponce-Alvarez
[2] doi:10.1371/journal.pcbi.1010678 [code]
Sampling effects and measurement overlap can bias the inference of neuronal avalanches.
Journal: PLoS computational biology
In common: 21 references
[3] doi:10.3389/fncom.2026.1744991 [code]
Symmetry breaking and avalanche shapes in modular neural networks.
Journal: Frontiers in computational neuroscience
In common: 20 references
[4] doi:10.1016/j.isci.2023.107840 [code]
Criticality of neuronal avalanches in human sleep and their relationship with sleep macro- and micro-architecture.
Journal: iScience
In common: 16 references
[5] doi:10.1038/s41467-023-41020-3 [code]
Critical dynamics arise during structured information presentation within embodied in vitro neuronal networks.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, 15 references
[6] doi:10.1126/sciadv.adj9303 [code]
Low-dimensional criticality embedded in high-dimensional awake brain dynamics.
Journal: Science advances
In common: Statistics and Machine Learning Toolbox, 15 references
[7] doi:10.1038/s42003-026-10132-z [code]
Hippocampal criticality tracks cognitive demand and shifts with memory impairment.
Journal: Communications biology
In common: 15 references
[8] doi:10.1371/journal.pcbi.1009848 [code]
Criticality enhances the multilevel reliability of stimulus responses in cortical neural networks.
Journal: PLoS computational biology
In common: Statistics and Machine Learning Toolbox, 14 references
[9] doi:10.1073/pnas.2417010122 [code]
Genetic contributions to brain criticality and its relationship with human cognitive functions.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: Statistics and Machine Learning Toolbox, 14 references
[10] doi:10.1016/j.celrep.2023.113162
Beyond pulsed inhibition: Alpha oscillations modulate attenuation and amplification of neural activity in the awake resting state.
Journal: Cell reports
In common: 14 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.1016/j.isci.2026.117212.svg)](https://openscicode.org/badge/doi/10.1016/j.isci.2026.117212)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117212.svg
   :target: https://openscicode.org/badge/doi/10.1016/j.isci.2026.117212
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117212"><img src="https://openscicode.org/badge/doi/10.1016/j.isci.2026.117212.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.