Re-referencing when one of the reference channels is not in the channels list #191
-
Hi Bruno, this is probably a silly question: I want to re-reference to the average of the two mastoids but I'm using a different BrainVision setup where the online reference (right mastoid = RM) does not appear in the Channels list of the .vhdr file. It's listed separately as "Reference Channel Name" (see line 101 of attached header file). When I load the eeg data, the online reference doesn't appear in |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
no, but you can simply do It'll be useful to see other BV files anyway just in case. |
Beta Was this translation helpful? Give feedback.
-
oh, I don't know what's happening, but if the data is originally referenced to RM, then it means that you subtract RM from every channel, that means that RM channel must be zero. So that cannot be wrong. |
Beta Was this translation helpful? Give feedback.
-
I think you're right, it's just the scale. Any tip on how to set it manually? I tried scale_y_continuous() and ylim() but nothing changed. I think the scale is why V/HEOG look weird (they're just really zoomed in, they weren't re-referenced). |
Beta Was this translation helpful? Give feedback.
-
@bnicenboim would it be possible to add a convenience parameter to I also noticed that Keep up the very good work! :) |
Beta Was this translation helpful? Give feedback.
no, but you can simply do
data %>% eeg_mutate(RM = channel_dbl(0))
, since it's referenced to it, it must be zero.But if you have a minimal example with the vhdr, vmrk and the dat files (preferably a short dat file), I can make it automatic for the next time.
It'll be useful to see other BV files anyway just in case.