Skip to content

OHBA-analysis/meg-simulation

Repository files navigation

Scripts to simulate MEG data

Here, we simulate source space data and project it to MEG sensors. We then perform source reconstruction with OSL to check we recover the ground truth.

We use the leadfields from a real forward model to project the source data to the sensors.

Installation

To run these scripts you need to install OSL (as well as other dependencies such as FSL). To do this, please follow the instructions here.

Results

We simulate 1/f noise and add 10 Hz activity in occiptial parcels and 20 Hz activity in motor parcels. We get the following parcel-space PSD after source reconstructing the simulated sensor data:

Source reconstructed power map and coherence network for 9-11 Hz activity:

Source reconstructed power map and coherence network for 19-21 Hz activity:

About

Scripts to simulate MEG data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages