question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

visualization of autoreject results in MNE

See original GitHub issue

Currently, the autoreject code hacks into MNE by copying the epochs plotting code and adding two parameters. Unfortunately this is a bit unwieldy to maintain on the autoreject side as we’re using a ton of private functions in MNE and duplicating almost 1000 lines of code …

are people open to adding these parameters to epochs.plot in MNE, or alternatively some code to interpret the drop_log in a special way if it starts with the keyword AUTOREJECT. I can make a PR with the existing diff and iterate the API from there if people are okay with this.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
drammockcommented, Sep 4, 2019

no objection from me. I can work on this with you at the upcoming sprint if you want… it may have been my recent changes to the plotting code that caused this in the first place

0reactions
jasmainakcommented, Sep 5, 2019

What does bad_epoch_idx actually do, then? If all it does is change the color, then that would already be handled by the proposed epoch_colors arg.

yep I think so

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preprocessing workflow with autoreject and ICA
This example demonstrates how to visualize data when preprocessing with autoreject and discusses decisions about when and which other ...
Read more >
EEG processing pipeline with autoreject - Support & Discussions
Hi all. I am working on an approach to automatically process resting state EEG recordings from many participants before extracting some features.
Read more >
autoreject/plot_autoreject_workflow.py at master - GitHub
Preprocessing workflow with ``autoreject`` and ICA ... This example demonstrates how to visualize data when preprocessing. with :mod:`autoreject` and ...
Read more >
Rejecting bad data spans and breaks - MNE-Python
The plot_drop_log() method is a visualization of an Epochs attribute, namely epochs.drop_log , which stores empty lists for retained epochs ...
Read more >
Autoreject: Automated artifact rejection for MEG and EEG data
Histogram of sensor-specific thresholds in gradiometers for the MNE sample dataset (see Results). C. Normalized kernel density plots of maximum ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found