Channel names in neuromag Triux has no space between 'MEG' and channel number
The channels names in fif files from Elekta Neuromag Triux have no space between 'MEG' and the channel number, e.g. 'MEG0723' which the Vectorview has, e.g. 'MEG 0723'.
indeed. How did you come up with this problem? we have a _clean_names method in viz.py for this when plotting.
I ran the "Permutation T-test on sensor data" example on my own data and got no significant sensors on the plot. With a modified layout file there was no problem.
can you send us a patch that fixes the topomap plot? a pull request is the best or just the files. Or even the broken script should help...
thanks for the bug report.
Hi
After going through the example of the permutation T-test on sensor data in more detail. I located the problem of the script more precisely
The names of the channels are taken directly from the raw structure
# Extract mask and indices of active sensors in layout
significant_sensors = picks[p_values <= 0.05]
significant_sensors_names = [raw.info['ch_names'][k]
for k in significant_sensors]
So, they bypass the _clean_names method. When using these names idx_of_sensors become empty as no match is found, as the loop is written now.
# load sensor layout
from mne.layouts import read_layout
layout = read_layout('Vectroview-grad')
idx_of_sensors = [layout.names.index(name)
for name in significant_sensors_names
if name in layout.names]
The problem is not then with the mne-python code but in the way the visualisation works in the example. So, I don't know if you will find it worth pursuing or better just to leave it.
I personally find it fine to use a layout-file for the Triux system, i.e. with no spaces, and I will be happy to share my layout-files if it can be useful.
thanks, mads
@MadsJensen Thanks for inquiring. We're certainly very interested in getting this improved but we are also trying to find a more systematic fix. For this example to work on your box, you should be able to say:
significant_sensors_names = mne.viz._clean_names(significant_sensors_names)
layout.names = mne.viz._clean_names(layout.names)
Let me know whether this works for you. Also feel free to put your layout files in a gist and link them here, so others can find it 'in context'.
Best, Denis
alright. If the issue is fixed by changing the example slightly I think we're good.
Closing this. Thanks for the feedback.
Just a clarification:
Only the early Vectorview systems have spaces in the channel names. The second version of the Vectorview and Triux have omitted the spaces.
- Matti
On Jul 30, 2013, at 1:12 PM, Alexandre Gramfort [email protected] wrote:
alright. If the issue is fixed by changing the example slightly I think we're good.
Closing this. Thanks for the feedback. — Reply to this email directly or view it on GitHub.
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.