bioRxiv Science⌕ Search

bioRxiv · 10.1101/789842

NeuroPycon: A free Python toolbox for fast multi-modal and reproducible brain connectivity pipelines

Abstract

Recent years have witnessed a massive push towards reproducible research in neuroscience. Unfortunately, this endeavor is often challenged by the large diversity of tools used, project-specific custom code and the difficulty to track all user-defined parameters. NeuroPycon is an open-source multi-modal brain data analysis toolkit which provides Python-based template pipelines for advanced multi-processing of MEG, EEG, functional and anatomical MRI data, with a focus on connectivity and graph theoretical analyses. Importantly, it provides shareable parameter files to facilitate replication of all analysis steps. NeuroPycon is based on the NiPype framework which facilitates data analyses by wrapping many commonly-used neuroimaging software tools into a common Python environment. In other words, rather than being a brain imaging software with is own implementation of standard algorithms for brain signal processing, NeuroPycon seamlessly integrates existing packages (coded in python, Matlab or other languages) into a unified python framework. Importantly, thanks to the multi-threaded processing and computational efficiency afforded by NiPype, NeuroPycon provides an easy option for fast parallel processing, which critical when handling large sets of multi-dimensional brain data. Moreover, its flexible design allows users to easily configure analysis pipelines by connecting distinct nodes to each other. Each node can be a Python-wrapped module, a user-defined function or a well-established tool (e.g. MNE-Python for MEG analysis, Radatools for graph theoretical metrics, etc.). Last but not least, the ability to use NeuroPycon parameter files to fully describe any pipeline is an important feature for reproducibility, as they can be shared and used for easy replication by others. The current implementation of NeuroPycon contains two complementary packages: The first, called ephypype, includes pipelines for electrophysiology analysis and a command-line interface for on the fly pipeline creation. Current implementations allow for MEG/EEG data import, pre-processing and cleaning by automatic removal of ocular and cardiac artefacts, in addition to sensor or source-level connectivity analyses. The second package, called graphpype, is designed to investigate functional connectivity via a wide range of graph-theoretical metrics, including modular partitions. The present article describes the philosophy, architecture, and functionalities of the toolkit and provides illustrative examples through interactive notebooks. NeuroPycon is available for download via github (https://github.com/neuropycon) and the two principal packages are documented online (https://neuropycon.github.io/ephypype/index.html. and https://neuropycon.github.io/graphpype/index.html). Future developments include fusion of multi-modal data (eg. MEG and fMRI or intracranial EEG and fMRI). We hope that the release of NeuroPycon will attract many users and new contributors, and facilitate the efforts of our community towards open source tool sharing and development, as well as scientific reproducibility.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Meunier, D., Pascarella, A., Altukhov, D., Jas, M., Combrisson, E., Lajnef, T., Bertrand-Dubois, D., Hadid, V., Alamian, G., Alves, J., Barlaam, F., Saive, A.-L., Dehgan, A., Jerbi, K.. 2019-10-02. NeuroPycon: A free Python toolbox for fast multi-modal and reproducible brain connectivity pipelines. https://doi.org/10.1101/789842

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Next generation Human Neocortical Neurosolver model with biophysically realistic somatic, dendritic and synaptic dynamics

The Human Neocortical Neurosolver (HNN) is an open-source biophysical modeling tool for multiscale interpretation of human electroencephalography (EEG) and magnetoencephalography (MEG) signals. HNN's foundation is a pre-tuned canonical neocortical circuit model consisting of excitatory pyramidal neurons and inhibitory interneurons in supra- (L2/3) and infragranular (L5) layers. This model was originally developed based on studies in rodent and non-human primate cortices when dynamics of human neurons were poorly characterized. Yet recent advances in recordings from human tissue now provide unprecedented detail to update the model. Here, we present a significantly updated model for use in the HNN software, with electrophysiological properties and synaptic connections tuned to human tissue. Beyond reproducing biologically realistic somatic dynamics, the pyramidal cells simulate dendritic calcium (Ca2+) spikes in the L5 extratelencephalic-projecting (ET) neurons, and shorter dendritic spikes in the L2/3 pyramidal neurons. We demonstrate how the updated circuitry and new features in the HNN software can be used to disentangle somatic, synaptic, and dendritic contributions to human E-/MEG signatures. The model is distributed with workflows to simulate event-related responses and oscillations, and tutorials demonstrating how membrane potentials, Ca2+ dynamics, and synaptic currents can be recorded and visualized. These enhancements allow extensive model validations based on in vitro and in vivo electrophysiology, voltage and Ca2+ imaging, and provide users with novel insights on the mechanisms underlying E-/MEG signals.

neuroscience↗

A biological light sheet links cellular voltage to mesoscopic brain dynamics

Membrane voltage is the fundamental currency of neural computation, yet cellular-resolution voltage imaging of large neuronal populations in vivo remains limited by trade-offs among imaging speed, field of view, and optical sectioning. We overcome this challenge by encoding a biological light sheet in the brain: Selective Plane Expression (SPress) restricts fluorescent indicator expression to a user-defined, 20-m-thick plane, suppressing background at its source. Following one-time two-photon photoactivation, SPress enables standard widefield microscopes to capture high-contrast kilohertz voltage dynamics from hundreds of densely labeled neurons across millimeter-scale cortical sheets and columns in vivo. These recordings reveal mesoscopic subthreshold waves that flexibly reorganize population-wide spike timing, together with cellularscale wavefront microstructure that preserves stereotyped local recruitment biases. By shifting optical sectioning from instrumentation to gene expression, SPress makes kilohertz cellular resolution voltage imaging accessible across mesoscopic scales.

neuroscience↗

Persistent hippocampal traces of lifelong spatial memory

Memory presents a biological paradox: the brain changes continuously, yet a brief experience can influence behavior for a lifetime. How such memories are stored in brain circuits remains unclear. Here we show that two days in a binary-tree maze leave mice with spatial memories that survive repeated 90-day absences over as much as a year. Across return visits, mice explored the maze more efficiently than when naive and resumed direct runs to a reward location sooner, both by a factor of 3. Chronic calcium imaging of the same hippocampal CA1 neurons showed that although most neurons had changed their preferred locations, the population activity at a given maze location still resembled the pattern from 90 days earlier. Furthermore, even when a neuron's place fields changed location, they tended to remain at the same branching level of the binary tree, reflecting the local geometry of the maze. In return sessions where the neural tuning for branching level was preserved more accurately, the mouse explored the environment more efficiently. Population patterns were best preserved near the reward location, and more reliable neural activity there accompanied earlier direct runs to the reward. With repeated experience, spatial representations changed less, both within a visit and across the long absences. A brief experience thus left selective hippocampal traces that survived months of absence despite drift, grew more durable with each return, and were correlated with memory in navigation behavior.

neuroscience↗