Brian 2, an intuitive and efficient neural simulator
Abstract
Brian 2 allows scientists to simply and efficiently simulate spiking neural network models. These models can feature novel dynamical equations, their interactions with the environment, and experimental protocols. To preserve high performance when defining new models, most simulators offer two options: low-level programming or description languages. The first option requires expertise, is prone to errors, and is problematic for reproducibility. The second option cannot describe all aspects of a computational experiment, such as the potentially complex logic of a stimulation protocol. Brian addresses these issues using runtime code generation. Scientists write code with simple and concise high-level descriptions, and Brian transforms them into efficient low-level code that can run interleaved with their code. We illustrate this with several challenging examples: a plastic model of the pyloric network, a closed-loop sensorimotor model, a programmatic exploration of a neuron model, and an auditory model with real-time input.
Data availability
Source code to replicate Figures 1-7, as well as the simulations shown in Appendix 4, are provided in a github repository (https://github.com/brian-team/brian2_paper_examples). Source code to run benchmarks as presented in Figure 8 is provided as a supplementary file together with this submission (benchmark_code.zip)
Article and author information
Author details
Funding
Agence Nationale de la Recherche (Axode ANR-14-CE13-0003)
- Romain Brette
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Copyright
© 2019, Stimberg et al.
This article is distributed under the terms of the Creative Commons Attribution License permitting unrestricted use and redistribution provided that the original author and source are credited.
Metrics
-
- 13,853
- views
-
- 1,435
- downloads
-
- 517
- citations
Views, downloads and citations are aggregated across all versions of this paper published by eLife.
Download links
Downloads (link to download the article as PDF)
Open citations (links to open the citations from this article in various online reference manager services)
Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)
Further reading
-
- Neuroscience
The amygdala is a subcortical region in the mesiotemporal lobe that plays a key role in emotional and sensory functions. Conventional neuroimaging experiments treat this structure as a single, uniform entity, but there is ample histological evidence for subregional heterogeneity in microstructure and function. The current study characterized subregional structure-function coupling in the human amygdala, integrating post-mortem histology and in vivo MRI at ultra-high fields. Core to our work was a novel neuroinformatics approach that leveraged multiscale texture analysis as well as non-linear dimensionality reduction techniques to identify salient dimensions of microstructural variation in a 3D post-mortem histological reconstruction of the human amygdala. We observed two axes of subregional variation in this region, describing inferior-superior as well as mediolateral trends in microstructural differentiation that in part recapitulated established atlases of amygdala subnuclei. Translating our approach to in vivo MRI data acquired at 7 Tesla, we could demonstrate the generalizability of these spatial trends across 10 healthy adults. We then cross-referenced microstructural axes with functional blood-oxygen-level dependent (BOLD) signal analysis obtained during task-free conditions, and revealed a close association of structural axes with macroscale functional network embedding, notably the temporo-limbic, default mode, and sensory-motor networks. Our novel multiscale approach consolidates descriptions of amygdala anatomy and function obtained from histological and in vivo imaging techniques.
-
- Neuroscience
The circadian clock enables organisms to synchronize biochemical and physiological processes over a 24 hr period. Natural changes in lighting conditions, as well as artificial disruptions like jet lag or shift work, can advance or delay the clock phase to align physiology with the environment. Within the suprachiasmatic nucleus (SCN) of the hypothalamus, circadian timekeeping and resetting rely on both membrane depolarization and intracellular second-messenger signaling. Voltage-gated calcium channels (VGCCs) facilitate calcium influx in both processes, activating intracellular signaling pathways that trigger Period (Per) gene expression. However, the precise mechanism by which these processes are concertedly gated remains unknown. Our study in mice demonstrates that cyclin-dependent kinase 5 (Cdk5) activity is modulated by light and regulates phase shifts of the circadian clock. We observed that knocking down Cdk5 in the SCN of mice affects phase delays but not phase advances. This is linked to uncontrolled calcium influx into SCN neurons and an unregulated protein kinase A (PKA)-calcium/calmodulin-dependent kinase (CaMK)-cAMP response element-binding protein (CREB) signaling pathway. Consequently, genes such as Per1 are not induced by light in the SCN of Cdk5 knock-down mice. Our experiments identified Cdk5 as a crucial light-modulated kinase that influences rapid clock phase adaptation. This finding elucidates how light responsiveness and clock phase coordination adapt activity onset to seasonal changes, jet lag, and shift work.