Vectorview channel groups

Iā€™m sure Iā€™ve been able to pick MEG sensor groups from Vectorview data (ā€˜left-temporalā€™, ā€˜right-frontalā€™ etc) before, but I cannot find it any more. Any quick tips?

Thanks,

Olaf

You mean in raw.plot()? I believe raw.plot(group_by='selection') should do what you want.

I was too brief. I would like to pick channels (names or indices) for MEG sensor groups (basically like labels in source space).

I donā€™t know of any public function to do so. Thereā€™s a private function that should do what you want though:

@agramfort we should have a public API for thisā€¦

Thanks. I think mne.selection.read_selection is what I remembered :slight_smile:

Oh, right thatā€™s perfect!
btw you can use it directly from the mne namespace, i.e., mne.read_selection().

you also have a selection parameter in mne.pick_types

Alex

But that would serve a different purpose, unless Iā€™m mistaken? @olafhauk wanted to select channels based on location, whereas mne.pick_typesā€™s selection parameter simply restricts the picked channels to a provided list of channel names ā€“ but doesnā€™t help with finding out where on the head these channels are located. Am I missing something?

indeed. You are right @richard

my bad

Alex

1 Like