Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add skip_by_annotation to notch_filter and resample #10447

Open
jasmainak opened this issue Mar 20, 2022 · 3 comments · May be fixed by #11408
Open

add skip_by_annotation to notch_filter and resample #10447

jasmainak opened this issue Mar 20, 2022 · 3 comments · May be fixed by #11408
Labels
Milestone

Comments

@jasmainak
Copy link
Member

We have TMS-EEG data at MGH for which we're trying to figure what is the best processing pipeline. The TMS pulses are recorded as triggers, so we can create annotations of 10 ms around those triggers and use that to exclude from operations such as ICA and raw.filter. This seems to work well but we noticed that skip_by_annotation is not supported in notch_filter and resample. Would it make sense to add these functionality to these functions as well? It would also make the API more consistent.

@jasmainak jasmainak added the ENH label Mar 20, 2022
@larsoner
Copy link
Member

Agreed this would be useful!

@jasmainak
Copy link
Member Author

Thinking about this more, if resample function was to have skip_by_annotation, how is the "skipped" segment to be handled? Would there still be decimation but no filter since MNE-Python only supports a single sampling frequency ...

@larsoner
Copy link
Member

how is the "skipped" segment to be handled? Would there still be decimation but no filter since MNE-Python only supports a single sampling frequency ...

Yes there would be no need, it would just get subsampled somehow. An upfirdn (with no filter / a delta) could do it as you suggest

@larsoner larsoner added this to the 1.4 milestone Dec 20, 2022
@jasmainak jasmainak linked a pull request Jan 5, 2023 that will close this issue
@larsoner larsoner modified the milestones: 1.4, 1.5 Apr 21, 2023
@larsoner larsoner modified the milestones: 1.5, 1.6 Jul 31, 2023
@larsoner larsoner modified the milestones: 1.6, 1.7 Nov 7, 2023
@larsoner larsoner modified the milestones: 1.7, 1.8 Apr 9, 2024
@larsoner larsoner modified the milestones: 1.8, 1.9 Jul 15, 2024
@larsoner larsoner modified the milestones: 1.9, 1.10 Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants