Skip to content

Brainlife app to mark bad channels and segments in a raw MNE by hand.

License

Notifications You must be signed in to change notification settings

BrainlifeMEEG/app-mark_bad-raw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mark bad segments and channels

Brainlife App to reject bad data segments and/or channels MNE-Python raw.info['bads'], and mne.Annotations.

Documentation

Input files are:

  • a MEG file in fif format (mne/raw).

Input parameters are:

  • 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.

Ouput files are:

  • the updated MEG file in fif format (mne/raw), where raw.info['bads'] has been updated, and with added raw.annotations.

Authors

Funding Acknowledgement

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.

NSF-BCS-1734853 NSF-BCS-1636893 NSF-ACI-1916518 NSF-IIS-1912270 NIH-NIBIB-R01EB029272

Citations

  1. 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

About

Brainlife app to mark bad channels and segments in a raw MNE by hand.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 2.8%