-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Related to mne-tools/mne-bids#961 and mne-tools/mne-bids#962.
Both EEG and iEEG data can be stored in any of the template coordinate frames in BIDS https://bids-specification.readthedocs.io/en/stable/99-appendices/08-coordinate-systems.html#eeg-specific-coordinate-systems. If one of these coordinate frames is used, MNE-Python could have an internal representation for it in transforms.py. The question is what would we need? What comes to mind are 1) a mapping in FIF for roundtrip save/load, 2) the fiducials in this coordinate frame to transform it to other coordinate frames and 3) optionally, the template MR image itself for examples (and potentially also the freesurfer recon but that's going to be quite a bit of data).
Once this is done, a montage object could have apply_trans used and be in that coordinate frame to save to BIDS using mne_bids.write_raw_bids and then could also be read out using mne_bids.read_raw_bids and it would have an official named integer representation and work just like the other coordinate frames.
I think the hardest part would be figuring out the representation in the FIF standard. Do you know if this would be easy or very hard @larsoner or @agramfort?