-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DigMontages: information on coordinate systems; Document transform_to_head
in API docs
#12904
Comments
Rather than add our own I'd prefer to point to this as it seems like an excellent reference https://www.fieldtriptoolbox.org/faq/coordsys/ But adding a table with this minimal information for the coord frames we support plus a link to that FAQ would work, too!
Typically in MNE we have tried to just get sensor positions to the Neuromag head coordinate frame as much as possible. And it happens automatically when you do We could expand this, at least for (probably?) |
@larsoner I actually found that we already do have a function to rescale to "head", it is just not exposed: mne-python/mne/channels/montage.py Lines 700 to 738 in e06873d
https://mne.tools/stable/search.html?q=transform_to_head Can we perhaps expose this function and document it in our API?
yes, that is the only time this function is called outside of tests. mne-python/mne/channels/montage.py Lines 1059 to 1066 in e06873d
mne-python/mne/channels/montage.py Lines 1105 to 1144 in e06873d
|
transform_to_head
in API docs
I just got some sensor positions in a text file that are in the "CTF" coordinate system. Naturally, I wanted to turn this into a DigMontage. However, when trying to find an appropriate value for the
coord_frame
parameter, I was faced with two choices:ctf_meg
ctf_head
I could not easily find any documentation on the differences between these two coordinate systems. Ideally we would have a page where each coordinate system that we support is described with mentioning at least the origin, and the direction of the three axes (x,y,z) with reference to fiducials/anatomical landmarks, wherever possible. What do you think?
Furthermore, I think
mne.channels.DigMontage
should get a method called.transform_to
(or similar) that takes as input the string label of any supported coordinate system in mne. Alternatively (or additionally), this functionality could also become a parameter upon instantiation of the DigMontage..apply_trans
seems a bit tricky to use for that. Opinions on this?The text was updated successfully, but these errors were encountered: