pyAvalanches: A Python Package for Analyzing Spatiotemporal Propagation in Neuronal Avalanches
M. Marzulli, M. Angiolelli, C. Mannino, M. Demuru, P. Sorrentino, M. -C. Corsi
Abstract
The analysis of neuronal avalanches offers insights into brain dynamics utilizing the framework of criticality, but the reproducibility and comparability of studies are limited by the use of fragmented, lab-specific scripts. To address this issue, we introduce pyAvalanches, an open-source Python package providing a standardized, end-to-end pipeline for avalanche analysis from electrophysiological recordings (e.g., electroencephalography-EEG). Starting from the detection of neuronal avalanches the package provides their core statistical characterization, including size and duration distributions. Beyond this, the main aim of pyAvalanches is to characterize the spatiotemporal organization of activity propagation during avalanches. To this end, the core innovation of pyAvalanches is the compuation of Avalanche Transition Matrices (ATMs) to map spatiotemporal propagation patterns. Building on this, the package derives network-based metrics from the ATMs, bridging the study of the topology and organization of the underlying dynamical interactions with network neuroscience adopting the framework of neuronal avalanches. The entire workflow is encapsulated in a modular and scikit-learn compatible architecture. We demonstrate the utility of pyAvalanches through an illustrative group-level analysis on a public resting-state EEG dataset, comparing propagation patterns across different clinical populations. By providing a user-friendly, tested, and extensible tool, pyAvalanches facilitates reproducible research, enables the development of novel avalanche-based biomarkers, and makes complex avalanche analysis accessible to a broader scientific community. The package is fully documented and distributed via the Python Package Index (PyPI).
Create a lesson
Related papers
Neuronal Identity as an Organizational Basis for Analyzing Neural Population Dynamics
Shared title terminology · Seungjae Han, Joshua Yedam You, Soi Kim et al.
PyGPLA: A Python Package for Generalized Phase Locking Analysis
Shared title terminology · Amir Khani, Christian Beste, Shervin Safavi
metasignal: A Python Package for Comprehensive Metacognitive Analysis and Decision-Making
Shared title terminology · Saurabh Ranjan, Mukesh Makwana, Konstantina Sokratous et al.
Regime-dependent reconstruction of structural connectivity: an in silico study of spatially constrained modular neuronal networks
Shared title terminology · Laia Barjuan, Hideaki Yamamoto, M. Ángeles Serrano et al.
Quantitative Modeling of Action-Potential-Driven Sodium Dynamics in Neurons: From Sodium Influx to Sodium MRI
Shared title terminology · Yongxian Qian
A Planar Switching Neuron Shares Logarithmic First-Spike Latency with Its Three-Dimensional Parent But Not Its Onset Mechanism
Shared title terminology · Giorgio Sonnino, Vadim Shlyonskiy, Thomas Erneux et al.