-
Notifications
You must be signed in to change notification settings - Fork 87
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
store digitization for (non-existing) reference channel(s) #1012
Comments
I haven't dealt much with needing to store reference chs, can you educate us a bit on what the purpose of storing an empty reference channel is in |
Is the reference channel listed in the VHDR file? To my knowledge it might show up under "impedances", but not otherwise 🤔 Do you have a re: impedances: These are parsed and saved to apart from this: I think there was a discussion once whether tracking EEG reference channels in mne-python might be possible. It'd be quite nice also to fill the |
👍 |
@sappelhoff : yes, I recorded channel positions (with a polhemus fasttrack device, in this case). sorry if this didnt come through!
well, in my case the ref is listed in the "Amplifier Setup" section, but not otherwise (brainvision recorder V. 1.23.0003). the impedance list only holds the name of the ref channel (not marked as ref) and
here is a full example header file (masked as i found this curious, because if I read the header correctly i'd also expect the Ref to be listed in the Channel info for each channel
above, you see the reference channel value is empty (same for all my channels), even though the recorder obviously had this information.. by the way, i just noticed that the procedure i described above (preloading data, adding ref and montage, writing BIDS from MNE object) does change another thing besides omitting the additional info from the header:
good to know, thanks! it even takes the correct impedance for the recently added ref channel!
yes, i also saw this: mne-tools/mne-python#8962 |
It did come through - thanks for the info on the used device -- I was most interested whether you also got the coordinates to show up in the VHDR file itself ... as opposed to having a separate polhemus file with the coordinates.
damn these headers really differ a lot in terms of included information by used software, hardware, and their versions
I think you (accidentally?) posted the pybv converted header :)
yes, that's to be expected based on our code, it's a precaution against loss of precision:
overall I am not sure what we could practically do right now. |
urgs, sorry! no coordinates in the vhdr file |
Describe the problem
hi all,
I noticed that it is not straight forward to store the digitization for an EEG reference channel if this channel is not present in the raw recorded data (as is the case for my raw data recorded with brainvision recorder).
while it makes sense to only store digitization points for channels that are present, it still feels like a minor bug to me.
in the end, the digitization for the ref channel(s) was recorded and would be lost when sharing the raw BIDS formatted data.
Describe your solution
it is possible to acchieve storage of the ref channel location(s) by first adding an empty ref channel to the raw data, and then attaching the montage:
however, this requires preloading, changes the data and is hence not optimal.
also, in my case of brainvision-recorder-files, the comments in the header (including impedance measures etc) are lost this way.
Describe possible alternatives
what do you think, is there an easy way to support this?
The text was updated successfully, but these errors were encountered: