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

Revision 0cc496ef13b5db7a51b3a1d2c7b06403916bacb7 authored by Ling KANG on 10 March 2023, 03:33:14 UTC, committed by GitHub on 10 March 2023, 03:33:14 UTC
Create LICENSE
1 parent c0feac8
  • Files
  • Changes
  • 310170d
  • /
  • README.md
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.

  • revision
  • directory
  • content
revision badge
swh:1:rev:0cc496ef13b5db7a51b3a1d2c7b06403916bacb7
directory badge
swh:1:dir:310170d5a4a6ae04f71196690e91da077d43f518
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.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
README.md
## 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.
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

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