-
Notifications
You must be signed in to change notification settings - Fork 161
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
Adding "EEGLAB" keyword as valid coordinate system for EEG #701
Comments
hi @arnodelorme 👋 thanks for raising this issue.
Where do you get that impression from? Currently the only "accepted" keywords for EEG are If you have a well defined and commonly used coordinate system, it would be great if we could add that to the BIDS specification, so that users may choose between Please note that we are asking for exactly that in the appendix: It says:
It seems like that, that's true. However, the issue arises not because the specification has changed, but because the validator is now covering parts that it did not cover before. Thus, old issues that passed silently so far, are now revealed. RAS / ARS were always "invalid" as values for the I mentioned the two solutions above (using Finally, please have a look at #700 where I want to remedy several aspects for CoordinateSystems. |
Thank you @sappelhoff,
Could it be at (0, 0, 0) based on the coordinate system used for the electrodes? Then the coordinate system would only specify axes' orientations but not the coordinate of the origin. I am reluctant to use "Others" and then add a text description to "EEGCoordinateSystemDescription". The goal is to be able to export/import channel coordinates automatically (and unambiguously). Could we add "EEGLAB" as a keyword for "EEGCoordinateSystem"? Otherwise, what would you recommend? |
Adding eeglab as a keyword would be fine with me, if there is a commonly used coordinate system that eeglab uses internally. However it would have to be properly documented, including a description of where the origin is. I think robert may be able to chime in on this in a couple of days. I recommend that you take a look at the documentation of the captrak coordinate system in the fieldtrip wiki (link is in the appendix viii that I linked to above). You'll see that there is not too much information required. |
Thanks. We could potentially use Captrack. I will see if it is compatible with the EEGLAB format.
|
Comment contributed by @cll008 I think we previously determined the EEGLAB system is closest to the CTF (or 4D Bti if ignoring units). i.e. nose +X, origin exactly between LPA and RPA: Captrack nose is +Y and the origin is not exactly in between LPA and RPA: This means the system is not the same from 90-degree rotation around the Z-axis. We would need the 3 fiducial points to recalculate the coordinate system. |
I personally think it would not be intuitive for users to store files with the CTF coordinate systems and would vote to have "EEGLAB" keyword as well. |
Yes, that would be fine with me. Could you perhaps prepare a page on your SCCN wiki (which I assume is the main EEGLAB documentation) about the "EEGLAB" coordinate system? That page would have to include all necessary information, similar to the entries in the fieldtrip wiki. Then, afterwards, we could prepare a PR to BIDS specification to introduce "EEGLAB" as a valid keyword, and link from the BIDS specification to the SCCN wiki/EEGLAB documentation. What do you think? |
OK, that sounds good. Let me get back to you in a week or two. |
progress is also tracked here: sccn/EEG-BIDS#51 |
We implemented the EEGLAB keyword with @cll008 . Is it possible to add this as a recognized keyword for the BIDS validator? |
yes, thanks for the news @arnodelorme and @cll008. Do you have a wiki entry / website now that is describing the "EEGLAB" keyword? That is, its axes, origin, and units that are conventionally being used? Then we can make a PR to this repo (bids-specification), and bids-validator ... and potentially even release this as part of the upcoming (in a few weeks) 1.6 release. |
It seems there is a new requirement of the BIDS validator that channel locations should be in the RAS coordinate system.
I was under the impression that we could specify the coordinate system but, apparently, “RAS” is the only coordinate system allowed now (which makes defining the field "EEGCoordinateSystem" useless).
Note that of the 40 EEG datasets on OpenNeuro, NONE uses the RAS system right now (to my knowledge) and all use the ARS coordinate system. This new requirement seems it will create problems in terms of backward compatibility.
I have talked to people who exported some EEG data recently. Since the BIDS validator generated an error on defining the coordinate system as ARS, then simply removed the "EEGCoordinateSystem" JSON field (so now BIDS assumes by default channel locations are in the RAS coordinate system, while they are in fact the ARS one).
@robertoostenveld @sappelhoff please share your thoughts.
The text was updated successfully, but these errors were encountered: