bluepyemodel

Blue Brain Python Electrical Modeling Pipeline

https://github.com/openbraininstitute/bluepyemodel

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 14 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.6%) to scientific vocabulary

Keywords

analyse build emodel modelling neuron neuroscience optimisation parameters python simulation singlecell workflow
Last synced: 6 months ago · JSON representation ·

Repository

Blue Brain Python Electrical Modeling Pipeline

Basic Info
Statistics
  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • Open Issues: 1
  • Releases: 6
Topics
analyse build emodel modelling neuron neuroscience optimisation parameters python simulation singlecell workflow
Created about 1 year ago · Last pushed 7 months ago
Metadata Files
Readme Changelog Contributing License Citation Authors Zenodo

README.rst

|banner|

BluePyEModel: Blue Brain Python Electrical Modeling Pipeline
============================================================

+----------------+------------+
| Latest Release | |pypi|     |
+----------------+------------+
| Documentation  | |docs|     |
+----------------+------------+
| License        | |license|  |
+----------------+------------+
| Build Status 	 | |tests|    |
+----------------+------------+
| 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 <./CITATION.cff>`_ file.

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

- Optimisation and Validation:
   - ``BluePyOpt``: `Van Geit et al., 2016 `_
   - ``NEURON``:  The NEURON Book: Carnevale and Hines 2006 : https://doi.org/10.1017/CBO9780511541612

- Feature Extraction:
   - ``eFEL``: `Zenodo DOI: 10.5281/zenodo.593869 `_
   - ``BluePyEfe``: `Zenodo DOI: 10.5281/zenodo.3728191 `_

- Ion Channel Selector: `Me-Features-to-Mo-ID Mapping `_: paper: `Roussel et al., 2023 `_

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:

.. code-block:: python

    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
-------------------------------------------------

.. image:: https://raw.githubusercontent.com/openbraininstitute/BluePyEModel/main/doc/images/pipeline.png
   :alt: 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
-----------------------------------

.. image:: https://raw.githubusercontent.com/openbraininstitute/BluePyEModel/main/doc/images/classes_schema.png
   :alt: 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).


Copyright
---------

Copyright (c) 2023-2024 Blue Brain Project/EPFL

Copyright (c) 2025 Open Brain Institute

This work is licensed under `Apache 2.0 `_


.. |license| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
                :target: https://github.com/openbraininstitute/BluePyEModel/blob/main/LICENSE.txt

.. |tests| image:: https://github.com/openbraininstitute/BluepyEModel/actions/workflows/test.yml/badge.svg
   :target: https://github.com/openbraininstitute/BluepyEModel/actions/workflows/test.yml
   :alt: CI

.. |pypi| image:: https://img.shields.io/pypi/v/bluepyemodel.svg
               :target: https://pypi.org/project/bluepyemodel/
               :alt: latest release

.. |docs| image:: https://readthedocs.org/projects/bluepyemodel/badge/?version=latest
               :target: https://bluepyemodel.readthedocs.io/
               :alt: latest documentation

.. |coverage| image:: https://codecov.io/github/openbraininstitute/BluePyEModel/coverage.svg?branch=main
                   :target: https://codecov.io/gh/openbraininstitute/bluepyemodel
                   :alt: coverage

.. |zenodo| image:: https://zenodo.org/badge/651152332.svg
                 :target: https://zenodo.org/badge/latestdoi/651152332

..
    The following image is also defined in the index.rst file, as the relative path is
    different, depending from where it is sourced.
    The following location is used for the github README
    The index.rst location is used for the docs README; index.rst also defined an end-marker,
    to skip content after the marker 'substitutions'.

.. substitutions
.. |banner| image:: https://raw.githubusercontent.com/openbraininstitute/BluePyEModel/main/doc/source/logo/BluePyEModelBanner.jpg

Owner

  • Name: Open Brain Institute
  • Login: openbraininstitute
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "BluePyEModel"
doi: 10.5281/zenodo.8283490
url: https://doi.org/10.5281/zenodo.8283490
abstract: "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."
authors:
  - family-names: "Mandge"
    given-names: "Darshan"
  - family-names: "Jaquier"
    given-names: "Aurélien"
  - family-names: "Damart"
    given-names: "Tanguy"
  - family-names: "Kilic"
    given-names: "Ilkan"
  - family-names: "Tuncel"
    given-names: "Anil"
  - family-names: "Arnaudon"
    given-names: "Alexis"
  - family-names: "Van Dorp"
    given-names: "Stijn"
  - family-names: "Ficarelli"
    given-names: "Gianluca"
  - family-names: "Kanari"
    given-names: "Lida"
  - family-names: "Markram"
    given-names: "Henry"
  - family-names: "Van Geit"
    given-names: "Werner"
date-released: 2023-08-25
publisher: "Zenodo"

GitHub Events

Total
  • Create event: 15
  • Release event: 6
  • Watch event: 1
  • Delete event: 6
  • Issue comment event: 4
  • Member event: 2
  • Push event: 13
  • Pull request review comment event: 9
  • Pull request review event: 14
  • Pull request event: 8
  • Fork event: 1
Last Year
  • Create event: 15
  • Release event: 6
  • Watch event: 1
  • Delete event: 6
  • Issue comment event: 4
  • Member event: 2
  • Push event: 13
  • Pull request review comment event: 9
  • Pull request review event: 14
  • Pull request event: 8
  • Fork event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 hour
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.4
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 5
  • Average time to close issues: N/A
  • Average time to close pull requests: about 1 hour
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.4
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • AurelienJaquier (4)
  • ilkilic (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 726 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 143
  • Total maintainers: 4
pypi.org: bluepyemodel

Blue Brain Python Electrical Modeling Pipeline

  • Homepage: https://github.com/openbraininstitute/BluePyEModel
  • Documentation: https://bluepyemodel.readthedocs.io/
  • License: BluePyEModel is licensed under the Apache License, unless noted otherwise, e.g., for external dependencies. See file COPYING for the full license. The examples are under the CC-BY-NC-SA license, as specified by the LICENSE.txt file. Copyright 2023-2024 Blue Brain Project / EPFL Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
  • Latest release: 1.0.37
    published 7 months ago
  • Versions: 143
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 726 Last month
Rankings
Dependent packages count: 7.5%
Downloads: 14.5%
Stargazers count: 28.1%
Average: 30.0%
Forks count: 30.2%
Dependent repos count: 69.8%
Last synced: 7 months ago

Dependencies

.github/workflows/release.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • anothrNick/github-tag-action 1.64.0 composite
  • pypa/gh-action-pypi-publish release/v1 composite
  • softprops/action-gh-release v1 composite
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
pyproject.toml pypi
  • bluepyefe >=2.2.0
  • bluepyopt >=1.14.10
  • configparser *
  • currentscape >=0.0.11
  • efel >=5.5.5
  • fasteners >=0.16
  • gitpython *
  • ipyparallel >=6.3
  • jinja2 >=3.0.3
  • morph_tool >=2.8
  • morphio *
  • neurom >=3.0
  • neuron >=8.0
  • numpy *
  • pandas *
  • pyyaml *
  • scipy *
  • tqdm *