This is a collaborative space. In order to contribute, send an email to maximilien.chaumon@icm-institute.org
On any page, type the letter L on your keyboard to add a "Label" to the page, which will make search easier.

app-resampling

APP under development private app on bl

This App aims at resample MEG/EEG signals on epoched or continuous data. To do so, the MNE Python functions raw.resample and Epoch.resample are used.

  • This App can be applied on EEG data when it is stored in a .fif.

  • The resample function is the same for epoched and raw data but the value of the pad parameter is not the same if the data is continuous or epoched.

 

GitHub repository

AuroreBussalb/app-resampling

 

Brainlife datatype used:

 

Inputs of the App

Files

Format

Datatype

Description

Optional

Files

Format

Datatype

Description

Optional

MEG signals

.fif

meg/fif

The data can be continuous or epoched. Notch filtering and resampling can have been applied beforehand.

No

events file

.tsv

meg/fif-override or meg/fif

BIDS compliant tsv file containng event data

yes

This events file can be obtained thanks to the app-get-events (if so, the file will be linked to the meg/fif-override datatype) or can be directly available with the meg.fif in the meg/fif datatype. If there are two events.tsv (one from meg/fif datatype and the other from meg/fif-override datatype, only the file from the meg/fif-override will be used (see How to use the meg/fif-override datatype).

 

Outputs of the App:

Files

Format

Datatype

Description

Optional

Files

Format

Datatype

Description

Optional

MEG signals

.fif

meg/fif

Data after filtering

no

events file

.tsv

meg/fif

BIDS compliant tsv file containing the events jointly resampled with the signals

yes

Besides, in the output directory, there are the optional files that can be used in a next App (see How to run Apps one after another).

 

Parameters of the App

The parameters of the App correspond to the parameters passed to the Python functions used in the App. Their default values proposed in Brainlife or in config.json.example correspond to the default values of MNE Python 0.23.

 

Next improvements

  • Make sure that the App returns a good events.tsv when event.tsv comes from the meg/fif datatype (i.e. when the data is staged) and when the events.tsv is computed with app-get-events when the fif file is not a resting state file (i.e. when events are extracting from it).