The system used to acquire the MEG data I’m working with had 275 MEG axial gradiometers, however, in the info data structure this is indicated as channel type ‘mag’. Is there a way to change all channel types from ‘mag’ to ‘grad’, preferably within the evoked data file?
I am working with:
Raw, Epochs or Evoked all have a set_channel_types method.
e.g. mne.Evoked — MNE 1.0.0 documentation
It can be used by providing a mapping with the key being the channel names the value the new channel type.
Hi Mathieu!
Thanks for responding to me.
However, the documentation of the set_channel_types method doesn’t say it supports the channel types ‘grad’ and ‘mag’, so I am not sure what to do there…
Kind regards,
Janne
@Janne - By the number of channels and having axial gradiometers - it appears that you have a CTF system. The axial gradiometers are treated a magnetometers in the MNE software. I am assuming this is because they have a more similar signal profile to mag than the planar gradiometers in Elekta/Megin. You do not need to convert these to grad - just use them as ‘mags’ in MNE. Below is from the CTF system at NIMH (271 out of 275 good channels) - it shows the gradiometers as ‘mags’. I think that there is another post in the MNE forums about this.
@agramfort Do you think we should issue an informative log message when this happens during reading CTF data? As we see here, it’s confusing, albeit being documented (?) behavior.
Thank you for responding. It is indeed a CTF system.
Eventually, I changed the channel type to ‘grad’ because I had trouble when computing the adjacency matrix for cluster analysis. I got an error when the channel type was ‘mag’, so I changed the channels to ‘grad’, and then it worked.
Otherwise, just using them as ‘mag’ in MNE should work fine too.