Skip to main content

Implementation of the BSB framework for cerebellar cortex reconstructions and simulations.

Project description

Build and Test 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

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
 pip install -e .

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cerebellar_models-0.8.1.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cerebellar_models-0.8.1-py3-none-any.whl (58.9 kB view details)

Uploaded Python 3

File details

Details for the file cerebellar_models-0.8.1.tar.gz.

File metadata

  • Download URL: cerebellar_models-0.8.1.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for cerebellar_models-0.8.1.tar.gz
Algorithm Hash digest
SHA256 b18af337699c6df86957e74ba6dfab454aeb5bd0e7d3b1f4bfb6f9f1b81e1807
MD5 08f7b269e68d3802c371beade62720b9
BLAKE2b-256 071bbf1eb7d765fdc71bd0dd81390d993a228e805a7c097eb139f987e3c41a76

See more details on using hashes here.

File details

Details for the file cerebellar_models-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cerebellar_models-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b8ead1ace5f62593e38479c055c5e261ad59c93a989dbcb5f2006b1c12f239e
MD5 f4db921b9e30ccc165b78ed7b8fc71d9
BLAKE2b-256 876427eef18946958703bec0d095391401465895a9663b1ea0833dbefb0bb504

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page