Brainlife App to reject bad data segments and/or channels MNE-Python raw.info['bads'], and mne.Annotations.
- a MEG file in fif format (mne/raw).
-
Bads
: str , The comma-separated channels to reject (e.g. "MEG2422,MEG2321"). -
annotations
: str , A multiline text describing segments to discard, following a format compatible with mne.Annotations: "start, duration, description[, channels]"For instance:
2, 1, bad_segment 5, 1, more_selective, MEG2422, MEG2321
will create two annotations, one named "bad_segment" starting at 2s, with duration 1s, and second one named "more_selective" focused on channels MEG2422 and MEG2321, starting at 5s, with duration 1s.
- the updated MEG file in fif format (mne/raw), where
raw.info['bads']
has been updated, and with addedraw.annotations
.
brainlife.io is publicly funded and for the sustainability of the project it is helpful to Acknowledge the use of the platform. We kindly ask that you acknowledge the funding below in your code and publications. Copy and past the following lines into your repository when using this code.
- Avesani, P., McPherson, B., Hayashi, S. et al. The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services. Sci Data 6, 69 (2019). https://doi.org/10.1038/s41597-019-0073-y