Skip to main content

Blue Brain Python Electrical Modeling Pipeline

Project description

banner

BluePyEModel: Blue Brain Python Electrical Modeling Pipeline

Latest Release

latest release

Documentation

latest documentation

License

license

Build Status

CI

Coverage

coverage

Citation

zenodo

Introduction

The Blue Brain Python Electrical Modeling Pipeline (BluePyEModel) is a Python package facilitating the configuration and execution of electrical neuron model (e-model) building tasks. It covers tasks such as extraction of electrical features from electrophysiology data, e-model parameters optimisation and model validation. As such, it builds on top of eFEL, BluePyEfe and BluePyOpt.

For a general overview and example of electrical model building, please refer to the paper: A universal workflow for creation, validation and generalization of detailed neuronal models.

Note that this package only covers e-model building based on patch-clamp data and that it relies solely on the NEURON simulator.

How to cite

If you use this repository in your work, please use the Cite this repository button at the top of the repository page to get various citation formats, including APA and BibTeX.

For detailed citation information, please refer to the CITATION.cff file.

Additionally, to cite software used for different steps of the pipeline, please use these :

Requirements

  • Python 3.11+

  • numpy

  • scipy >= 1.16.1

  • pandas

  • ipyparallel >= 6.3

  • tqdm

  • pyyaml

  • gitpython

  • bluepyopt >= 1.14.10

  • bluepyefe >= 2.3.48

  • neurom >= 3.0

  • efel >= 5.5.5

  • configparser

  • neuron >= 8.0

  • morph_tool >= 2.8

  • morphio

  • fasteners >= 0.16

  • jinja2 >= 3.0.3

  • currentscape >= 0.0.11

Installation

BluePyEModel can be pip installed with the following command:

pip install bluepyemodel[all]

If you do not wish to install all dependencies, specific dependencies can be selected by indicating which ones to install between brackets in place of ‘all’ (If you want multiple dependencies, they have to be separated by commas). The available dependencies are:

  • luigi

  • nexus

  • all

To get started with the E-Model building pipeline

E-Model building pipeline

This section presents a general picture of the pipeline. For a detailed picture and how to use it, please refer to the L5PC example and its README.

The pipeline is divided in 6 steps:

  • extraction: extracts e-features from ephys recordings and averages the results e-feature values along the requested targets.

  • optimisation: builds a NEURON cell model and optimises its parameters using as targets the efeatures computed during e-feature extraction.

  • storage of the model: reads the results of the extraction and stores the models (best set of parameters) in a local json file.

  • validation: reads the models and runs the optimisation protocols and/or validation protocols on them. The e-feature scores obtained on these protocols are then passed to a validation function that decides if the model is good enough.

  • plotting: reads the models and runs the optimisation protocols and/or validation protocols on them. Then, plots the resulting traces along the e-feature scores and parameter distributions.

  • exporting: read the parameter of the best models and export them in files that can be used either in NEURON or for circuit building.

These six steps are to be run in order as for example validation cannot be run if no models have been stored. Steps validation, plotting and exporting are optional. Step extraction can also be optional in the case where the file containing the protocols and optimisation targets is created by hand or if it is obtained from an older project.

For an example of how to run the pipeline with the Nexus access point, see the Nexus example

Schematics of BluePyEModel classes

Schematics of BluePyEModel classes

Acknowledgment

This work was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology. This work has been partially funded by the European Union Seventh Framework Program (FP7/2007­2013) under grant agreement no. 604102 (HBP), and by the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreements No. 720270 (Human Brain Project SGA1) and No. 785907 (Human Brain Project SGA2) and by the EBRAINS research infrastructure, funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3).

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

bluepyemodel-1.0.39.tar.gz (13.0 MB view details)

Uploaded Source

Built Distribution

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

bluepyemodel-1.0.39-py3-none-any.whl (13.4 MB view details)

Uploaded Python 3

File details

Details for the file bluepyemodel-1.0.39.tar.gz.

File metadata

  • Download URL: bluepyemodel-1.0.39.tar.gz
  • Upload date:
  • Size: 13.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bluepyemodel-1.0.39.tar.gz
Algorithm Hash digest
SHA256 a6b65c354e892ea29f36e5cfe23f57836c14bc77320212f5e470093b3fc644ee
MD5 a05bef29cd5807ecba539ba4a317a71d
BLAKE2b-256 a0b950a06838631064d41df12d433841ac0f7ad5fb1bb2cbd90ffd5d0792e50f

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluepyemodel-1.0.39.tar.gz:

Publisher: release.yml on openbraininstitute/BluePyEModel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bluepyemodel-1.0.39-py3-none-any.whl.

File metadata

  • Download URL: bluepyemodel-1.0.39-py3-none-any.whl
  • Upload date:
  • Size: 13.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for bluepyemodel-1.0.39-py3-none-any.whl
Algorithm Hash digest
SHA256 f6689393fad7afb5481ddb56517f33083688bf696824eb093e1a0e99952aeb02
MD5 e7740e31a62a9a59c4aeb4c58fba6ed3
BLAKE2b-256 8a41a41dc759e3da58e688660c4cf8e751e8a12e3f1fa91417a02ef45cc9e99c

See more details on using hashes here.

Provenance

The following attestation bundles were made for bluepyemodel-1.0.39-py3-none-any.whl:

Publisher: release.yml on openbraininstitute/BluePyEModel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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