Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge
swh:1:cnt:56d689dfd75ac9024e53c1f693acc4eb9266bbd5

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
## README

This repository contains the simulation source code and example data analysis scripts for the following article:

L. Kang, J. Ranft, and V. Hakim, Beta oscillations and waves in motor cortex can be accounted for by the interplay of spatially-structured connectivity and fluctuating inputs, eLife (2023)

### Simulation

To run the simulation, simply compile and execute the source code according to

`$ g++ -O3 simulation.cpp -o simulation`

Most standard C++ compilers should work, we tried Apple clang version 14.0.0 (clang-1400.0.29.202), GNU g++ 12.2.0 (Homebrew GCC 12.2.0) and GNU g++ 11.3.0 (Ubuntu 11.3.0-1ubuntu1~22.04).

Then simply run the executable with the command

`$ ./simulation`

Parameters are hardcoded and here chosen as the parameter set SN of the article. By modifying the parameters in the source code, different parameter regimes can be explored.

### Analysis

We performed all data analysis with own Python scripts (tested with Python 3.9 and scipy 1.7.3). 

The script inspect_simulation.py plots the data generated by the simulation; parameters are again hardcoded but can be changed easily. The script furthermore generates .npy files of the data that can be used as input for the wave classification analysis script.

The script wave_classification.py contains all functions to analyze and classify the different wave patterns present in the ‘surrogate-LFP’ simulated by our model, as well as the actual LFP data. To allow the script to be tested without having to run a new simulation, we also provide example data of a 5s simulation run that contains a planar wave episode.

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API