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-make-epochs
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:
For input: neuro/meg/fif and neuro/meg/fif-override
For outputs: neuro/meg/fif
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
andreject
parameters: register this parameter as aSTRING
in BL and convert it into a Python dict inmake_epochs.py
Make sure that epochs are correctly created with an
events.tsv
frommeg/fif
datatype and fromevents.tsv
extracted from the fif file withapp-get-events