Skip to main content

Closed Loop, Electrophysiology, and Optogenetics Simulator: testbed and prototyping kit

Project description

CLEOSim: Closed Loop, Electrophysiology, and Optogenetics Simulator

Test and lint Documentation Status

CLEOSim: Closed Loop, Electrophysiology, and Optogenetics Simulator

Hello there! CLEOSim has the goal of bridging theory and experiment for mesoscale neuroscience, facilitating electrode recording, optogenetic stimulation, and closed-loop experiments (e.g., real-time input and output processing) with the Brian 2 spiking neural network simulator. We hope users will find these components useful for prototyping experiments, innovating methods, and testing observations about a hypotheses in silico, incorporating into spiking neural network models laboratory techniques ranging from passive observation to complex model-based feedback control. CLEOSim also serves as an extensible, modular base for developing additional recording and stimulation modules for Brian simulations.

This package was developed by Kyle Johnsen and Nathan Cruzado under the direction of Chris Rozell at Georgia Institute of Technology.

logo

CL icon Closed Loop processing

CLEOSim allows for flexible I/O processing in real time, enabling the simulation of closed-loop experiments such as event-triggered or feedback control. The user can also add latency to closed-loop stimulation to study the effects of computation delays.

CL icon Electrode recording

CLEOSim provides functions for configuring electrode arrays and placing them in arbitrary locations in the simulation. The user can then specify parameters for probabilistic spike detection or a spike-based LFP approximation developed by Teleńczuk et al., 2020.

CL icon Optogenetic stimulation

By providing an optic fiber-light propagation model, CLEOSim enables users to flexibly add photostimulation to their model. Both a four-state Markov state model of opsin dynamics is available, as well as a minimal proportional current option for compatibility with simple neuron models. Parameters are provided for the common blue light/ChR2 setup.

Getting started

Just use pip to install:

pip install cleosim

Then head to the overview section of the documentation for a more detailed discussion of motivation, structure, and basic usage.

Related resources

Those using CLEOSim to simulate closed-loop control experiments may be interested in software developed for the execution of real-time, in-vivo experiments. Developed by members of Chris Rozell's and Garrett Stanley's labs at Georgia Tech, the CLOCTools repository can serve these users in two ways:

  1. By providing utilities and interfaces with experimental platforms for moving from simulation to reality.
  2. By providing performant control and estimation algorithms for feedback control. Although CLEOSim enables closed-loop manipulation of network simulations, it does not include any advanced control algorithms itself. The ldsCtrlEst library implements adaptive linear dynamical system-based control while the hmm library can generate and decode systems with discrete latent states and observations.

CLOCTools and CLEOSim

Publications

CLOC Tools: A Library of Tools for Closed-Loop Neuroscience
A.A. Willats, M.F. Bolus, K.A. Johnsen, G.B. Stanley, and C.J. Rozell. In prep, 2022.

State-Aware Control of Switching Neural Dynamics
A.A. Willats, M.F. Bolus, C.J. Whitmire, G.B. Stanley, and C.J. Rozell. In prep, 2022.

Closed-Loop Identifiability in Neural Circuits
A. Willats, M. O'Shaughnessy, and C. Rozell. In prep, 2022.

State-space optimal feedback control of optogenetically driven neural activity
M.F. Bolus, A.A. Willats, C.J. Rozell and G.B. Stanley. Journal of Neural Engineering, 18(3), pp. 036006, March 2021.

Design strategies for dynamic closed-loop optogenetic neurocontrol in vivo
M.F. Bolus, A.A. Willats, C.J. Whitmire, C.J. Rozell and G.B. Stanley. Journal of Neural Engineering, 15(2), pp. 026011, January 2018.

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

cleosim-0.6.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

cleosim-0.6.0-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file cleosim-0.6.0.tar.gz.

File metadata

  • Download URL: cleosim-0.6.0.tar.gz
  • Upload date:
  • Size: 36.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for cleosim-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c3fc278a4e0c2d3a79a91d83bb7c69705f4c839086967e966bd39b37167513ac
MD5 e3aa254413e9471044c1a9c8e5e03e72
BLAKE2b-256 776e6da71e3fc03a12a970595b1a8ef6e5deefc20bd1cace6aa418c5c00286bb

See more details on using hashes here.

File details

Details for the file cleosim-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: cleosim-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for cleosim-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 060adcec8448a12e695308c1517a55381e1657303a5920a374d4face5bb253b0
MD5 8f366e0d73a80ce8b1d59a1b401cbfe7
BLAKE2b-256 f64eb5b936d98d03dc1fdef1c9c50a76dc8d78a7d7e654fa2d24c27cbb84340d

See more details on using hashes here.

Supported by

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