Skip to content

A minimal POC to demonstrate the LFPy integration with Modular Science - Multiscale Co-simulation

License

Notifications You must be signed in to change notification settings

multiscale-cosim/Cosim-LFPy

Repository files navigation

Modular Science: Multi-scale Co-simulation

 

Modular Science: Multi-scale Co-simulation

Github top language Github language count Repository size License Github issues Github forks Github stars

Multi-scale Co-simulation - NEST-LFPy


About   |   Technologies   |   Getting Started   |   License   |   Author   |   Acknowledgement


About

Neural activity is simulated at different levels of biological detail, and to make experimentally testable predictions it should be possible to calculate measurable brain signals from these simulations. However, simulations using simplified representations of neurons (levels II and III in the figure below) are often not in a principled way able to predict brain signals like LFP, EEG, or MEG signals. The motivation for this usecase is to enable calculation of LFP, EEG, and MEG signals directly from neural simulations with point neurons (like in NEST), or firing rate models (like in TVB).

Motivation for Co-simulation with brain signal prediction

This usecase demonstrates how to use the Co-simulation framework to calculate Local Field Potentials (LFPs) in real time, based on spike events streamed from the NEST simulator.

We used the cortical microcircuit model by Potjans and Diesmann, available from https://nest-simulator.readthedocs.io/en/stable/auto_examples/Potjans_2014/

The LFP signals are calculated from the spike events by applying the so-called kernel approach, as outlined in Hagen et al. (2022): https://doi.org/10.1371/journal.pcbi.1010353

This usecase can be used as a starting point for applying the Co-simulation framework to other network models in NEST or TVB, and also for simulating other brain signals like EEG, MEG, or ECoG signals.

Technologies

The following tools were used in this project:

Getting Started

The Modular Science Co-simulaiton framework and usecase can be installed and launched on:

  • Local systems: e.g. a virtual machine (VM) on a laptop. We support the useage of Virtualbox and Vagrant.

Installation

Please check HERE for installation details.

How to run

The framework and usecase can be launched in two different following ways:

  • From within the cloned repo:
    • go to run_usecase/local directory and run this script from there e.g.

      vagrant@ubuntu-focal:~multiscale-cosim/Cosim-LFPy/run_usecase/local$ sh ./run_on_local.sh
      
  • From outside of the cloned repo:
    • On the VM (see Installation guide above) you will find two following scripts in /home/vagrant/multiscale-cosim:

      1. Cosim-LFPy.source and
      2. run_on_loacl.sh

      run them as following:

      vagrant@ubuntu-focal:~multiscale-cosim$ source Cosim-LFPy.source
      vagrant@ubuntu-focal:~multiscale-cosim$ ./run_on_loacl.sh
      

Simulation Results: The simulation results, logs, and the resource usage stats can be found in directory Cosimulation_outputs created by Modular Science during the execution at the same location where the execution script is run.


License

This project is under license from Apache License, Version 2.0. For more details, see the LICENSE file.

Made by Multiscale Co-simulation team.

Acknowledgement

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 785907 (HBP SGA2), from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (HBP SGA3) and from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3)

 

Back to top

About

A minimal POC to demonstrate the LFPy integration with Modular Science - Multiscale Co-simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •