Added option for bipolar re-referencing before analysis#1
Open
usuario1marc wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
bipolar_montage, a boolean which defaults toFalse. WhenTrue, input channels will be re-referenced to a bipolar setting before computing metrics.process_subset()function from_erdetect.pynow checks this option, and ifTrue, usesload_data_epochs()instead ofload_data_epochs_averages(), and applies a bipolar rereferencing.utils/misc.py:mount_bipolar, which takes as an input monopolar channels and turns them into a bipolar setting.Modified
Hello! This is my first time doing a PR, so excuse me if I used non-orthodox language for explaining my changes. I used ERDETECT in an internship for my Biomedical Engineering bachelor in a project about locating CCEPs. I had to modify the module to be able to use it in a bipolar setting. After reaching out to Dora Hermes to talk to her about this project, she encouraged me to make a pull request, so here I am. I hope you can find it useful. Cheers!