Skip to main content

CI status Documentation Status Code style: black codecov

DBBS Cerebellar models: Models of the cerebellum, using the BSB.

This repository provides the code, configuration and morphology data to reconstruct and simulate cerebellar cortex circuits using the Brain Scaffold Builder framework. These models are based on the iterative work of the Department of Brain and Behavioral Sciences (DBBS) of the university of Pavia.

:closed_book: Read the documentation on https://cerebellar-models.readthedocs.io/en/latest

Installation

cerebellar-models is a package that contains implementation of connectivity or placement rules for BSB. The cerebellar-models package requires Python 3.10+.

Pre-requirements

BSB parallelizes the network reconstruction using MPI, and translates simulator instructions to the simulator backends with it as well, for effortless parallel simulation. To use MPI from Python the mpi4py package is required, which in turn needs a working MPI implementation installed in your environment.

On your local machine you can install OpenMPI:

sudo apt-get update && sudo apt-get install -y libopenmpi-dev openmpi-bin

Then, depending on the types of simulations, you want to perform you will need to install the simulator(s) of your interest. Please follow the instructions:

Cerebellar-models installation

pip

Cerebellar-models can be installed from PyPI through pip:

pip install cerebellar-models

To include simulation support for NEST and/or NEURON:

    pip install cerebellar-models[nest]  # For NEST
    pip install cerebellar-models[neuron]  # For NEURON

Developers

Developers best use pip's editable install. This creates a live link between the installed package and the local git repository:

 git clone git@github.com:dbbs-lab/cerebellar-models
 cd cerebellar_models
 # do not forget to add the optional simulators supports required.
 pip install -e .[nest]

Contents

Morphologies

Cerebellar cortex neuron morphology reconstructions used in our microcircuits are stored in the morphologies folder. The folder contains also more information about each file.

BSB configuration files for cerebellar cortex circuits

In this repository, the BSB configurations are stored in the configurations folder. Sub-folders within configurations corresponds to different species reconstructions. Each specie have its default configuration to reconstruct the models as well as extensions that can be added to override or extend the default one. This includes the different simulation' paradigms.

Building a circuit

Depending on the circuit you wish to obtain and/or simulate, the process will vary. This package provides a command-line interface to generate the BSB configuration of the canonical circuits developed by the DBBS based on a few choices.

Assuming you are in the cerebellar-models folder, run the following command in your terminal:

cerebellar-models configure

Once you filled the forms provided by the command within your terminal, your BSB configuration should be ready to be compiled:

bsb compile circuit.yaml -v4 --clear

This command will produce the desired circuit of the cerebellar cortex and store it in an .hdf5 file. This process might take a while depending on your machine.

Running a simulation

As for the previous paragraph the following command might vary depending on your reconstruction and simulation.

Assuming you are in the cerebellar-models folder, and you want to run the simulation simulation_name, run the following command in your terminal:

bsb simulate cerebellum.hdf5 simulation_name -o output_file_name -v4

Acknowledgements

This research has received funding from the European Union’s Horizon 2020 Framework Program for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3) and Specific Grant Agreement No. 785907 (Human Brain Project SGA2) and from Centro Fermi project “Local Neuronal Microcircuits” to ED. The project is also receiving funding from the Virtual Brain Twin Project under the European Union's Research and Innovation Program Horizon Europe under grant agreement No 101137289.

We acknowledge the use of EBRAINS platform and Fenix Infrastructure resources, which are partially funded from the European Union’s Horizon 2020 research and innovation programme under the Specific Grant Agreement No. 101147319 (EBRAINS 2.0 Project) and through the ICEI project under the grant agreement No. 800858 respectively.

Metadata

Release files for cerebellar-models 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cerebellar-models 0.13.0
File Size Uploaded Provenance
cerebellar_models-0.13.0.tar.gz 558.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cerebellar-models 0.13.0
File Interpreter ABI Platform
cerebellar_models-0.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / cerebellar_models-0.13.0.tar.gz

Download URL cerebellar_models-0.13.0.tar.gz
Size 558.1 kB
Tags Source
SHA-256 checksum
How to use checksums
660719034e133f58a0346c4751c7881ad1990a74673b5d9b797240c324aca83e
BLAKE2b-256 checksum
How to use checksums
201f5d15f541e8a4e49a27baf3faca585950e4faebc81a08de82a0b40f452a31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / cerebellar_models-0.13.0-py3-none-any.whl

Download URL cerebellar_models-0.13.0-py3-none-any.whl
Size 502.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c71d85f7579c1e530efd68036e1d78381e66ba7d1d33a7c8c64a1529272b281e
BLAKE2b-256 checksum
How to use checksums
a1fa0e557b27689b302e4c3a34a24e6371e026b36506fcd38b5be801af5e73fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for cerebellar-models 0.13.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page