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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

parameters for reject bad epochs are Python dictionaries → not read correctly by BL

APP UNDER DEVELOPMENT PRIVATE APP ON BL

This App epochs the data thanks to mne.Epochs.

 

GitHub repository

https://github.com/AuroreBussalb/app-make-epochs

 

Brainlife datatype used:

 

Inputs of the App

Files

Format

Datatype

Description

Optional

MEG signals

.fif

meg/fif

The data we want to epoch

No

events

.tsv

meg/fif or meg/fif-override

BIDS compliant events.tsv

no

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

MEG signals

.fif

meg/fif

Epoch data

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.

With the MNE function used to create epoch, it is possible to directly removed epoch based on their amplitude with the parameters reject and flat. Unfortunately, these parameters can’t be used on BL (it’s set to “READ ONLY”) because they are dictionaries and BL doesn’t handle Python dictionaries as parameter values and no conversion script has been written in the python file of this app (see Parameters conversion to make an App run on BL

 

Next improvements

  • Be able to use the flat and reject parameters: register this parameter as a STRING in BL and convert it into a Python dict in make_epochs.py

  • Make sure that epochs are correctly created with an events.tsv from meg/fif datatype and from events.tsv extracted from the fif file with app-get-events

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.