Skip to main content

corebmtk

A module to allow BMTK to function with Core Neuron before official support.

Currently, BMTK uses h.run and extracellular NEURON mechanisms, which are both incompatible with CoreNeuron.

corebmtk uses pc.psolve and takes an alternate approach to recording and storing output. The goal of this project was to maintain all of BMTK's functionality while allowing for the use of CoreNeuron. Recording modules remove the step phase and integrate into initialize and finalize to be compatilbe with pc.psolve.

Installation

pip install --upgrade corebmtk

Usage

In your run_network.py BMTK script replace your BioSimulator with a CoreBioSimulator.

import corebmtk

# sim = bionet.BioSimulator.from_config(conf, network=graph)
sim = corebmtk.CoreBioSimulator.from_config(conf, network=graph)

When using MPI you'll have to replace your config as well. This wrapper prevents loading of mechanisms prior to running with x86_64/special.

# conf = bionet.Config.from_json(config_file, validate=True)
conf = corebmtk.Config.from_json(config_file, validate=True)

Limitations

Some recoring mechanisms are not yet implemented. See run output for more info.

Implemented recording modules:

  1. reports.SpikesReport
  2. netcon_report
  3. reports.MembraneReport (report.params['sections'] == 'soma')
  4. reports.ECPReport

Modules NOT implemented

  1. mods.MembraneReport (general)
  2. reports.ClampReport
  3. save_synapses

Troubleshooting

When using ECP recording: CoreNEURON cannot simulate a model that contains the extracellular mechanism

Change your ecp report to use "module": "ecp" instead of "module": "extracellular"

    "ecp": {
      "cells": "all",
      "variable_name": "v",
      "module": "ecp",
      "electrode_positions": "./components/recXelectrodes/linear_electrode.csv",
      "file_name": "ecp.h5",
      "electrode_channels": "all"
    }

Acknowledgments

Thanks @gregglickert for kicking this project off.

BMTK

Metadata

Release files for corebmtk 0.1.1

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

Source distribution (sdist)

Source distribution for corebmtk 0.1.1
File Size Uploaded Provenance
corebmtk-0.1.1.tar.gz 6.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for corebmtk 0.1.1
File Interpreter ABI Platform
corebmtk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.5 kB

Release files / corebmtk-0.1.1.tar.gz

Download URL corebmtk-0.1.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
58adbc3547c1bc8c4424c6506db44ff73a15c180ef70f517227580e77098d626
BLAKE2b-256 checksum
How to use checksums
0d3bac11a1621799656bd191890d1c77f66da1491f0b5e44702d14bc937666a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / corebmtk-0.1.1-py3-none-any.whl

Download URL corebmtk-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
569d6ffbcc32a12ceb0bd98645c4cb35f77ec924fc788773eca473ea242d0f7e
BLAKE2b-256 checksum
How to use checksums
592ac7c1c9e987197d153114d372ecb7e748a247559f6e236d20a71553b587df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for corebmtk 0.1.1

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