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
Issues computing connectivity with CTF system #6069
Comments
for MEG we use fieldtrip neighbors files: https://github.com/fieldtrip/fieldtrip/tree/master/template/neighbours I don't see any file for CTF 270. any idea how to know what CTF system is used, maybe given the channel names? |
okay so apparently it's a CTF-275 system with 5 bad channels |
Arfff
What’s the expected behavior then? I would personally interpolate
|
@jasmainak - Fieldtrip neighbours structure gives adjacency information by channel name so you should still be able to use those files. Can you choose channels when reading connectivity in mne? |
Yes, you are correct. This is what I realized after posting the issue. I think it's not technically a bug but more a surprising behavior. As people expect the same number of channels in the connectivity matrix as the info. Regarding this particular data, the info did not have these 5 channels from the beginning (as far as I know). |
we could subselect the neighbors structure but it means having holes or
maybe disconnected components...
|
@agramfort In the extreme that is possible, but I doubt it would be a common scenario. We could warn when some channels from adjacency are not present in info (and maybe the other way too). Disconnected components are already allowed at the source level (left and right hemi). |
so warning and subsampling?
… |
Yes - and there is another benefit of accepting the ch_names present in info: if the order of channels is different in fieldtrip neighbours file and the info - they would be sorted in the correct order (I'm not sure it is done now). |
that would be fine with me.
+1 for PR on this
… |
I got a report that the connectivity computation was problematic. If you have a CTF-270 system, the function find_ch_connectivity gives you the connectivity of the CTF-275 system. Code to reproduce:
here is the file: https://www.dropbox.com/s/bae8rjdu068ws14/S1_discrimination_conds-ave.fif?dl=0.
My suggestion would be to make _compute_ch_connectivity public and deprecate the find_ch_connectivity function. The guesswork in the function introduces more problems than solves.
The text was updated successfully, but these errors were encountered: