Back to the main page.

Bug 3096 - make a graphical channel selection

Status ASSIGNED
Reported 2016-03-15 15:28:00 +0100
Modified 2017-08-23 08:51:04 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also: http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3033http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=2837http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3334

Robert Oostenveld - 2016-03-15 15:28:34 +0100

this should probably be part of ft_channelselection, or possibly in private/select_channel_list The idea is that ft_databrowser, but also other functions, would show a dialog in which the user selects channels from a topography, just like selecting them in a multiplot.


Robert Oostenveld - 2016-03-16 10:10:35 +0100

I implemented this. I now realize that the disadvantage is that sometimes not all channels are present in the layout (e.g. EOG and trigger channels). Hence I added a cfg.selectchannel=list/layout option to ft_databrowser, so that the user can specify either GUI. mac011> git commit -a [bug3096 1f0d4c8] ENH - implemented GUI for channel selection on basis of the layout, see http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3096 3 files changed, 226 insertions(+), 102 deletions(-) mac011> git push --set-upstream origin bug3096 X11 forwarding request failed on channel 0 Counting objects: 106, done. Delta compression using up to 4 threads. Compressing objects: 100% (25/25), done. Writing objects: 100% (25/25), 5.60 KiB | 0 bytes/s, done. Total 25 (delta 18), reused 0 (delta 0) To git@github.com:robertoostenveld/fieldtrip.git * [new branch] bug3096 -> bug3096 Branch bug3096 set up to track remote branch bug3096 from origin.


Robert Oostenveld - 2016-03-16 10:11:40 +0100

note that the default channel selection GUI has not changed


Robert Oostenveld - 2016-03-16 10:20:15 +0100

I have been testing with elekta data, which has magnetometers, gradiometers and electrodes. I realize that the GUI selection is suboptimal. I wish I could do cfg.layout = {'neuromag306mag.lay', 'neuromag306planar.lay', 'eeg1010.lay'} and have them appear side by side. This relates to bug 3033 and to 2837.


Robert Oostenveld - 2016-03-16 12:17:01 +0100

(In reply to Robert Oostenveld from comment #3) I have now implemented this in ft_prepare_layout.


Robert Oostenveld - 2016-03-16 12:19:41 +0100

(In reply to Robert Oostenveld from comment #4) this has a number of interesting side-effects. It is possible to select the different types of channels, but also in ft_databrowser to make a multiplotER and subsequent topoplots. The vertical scaling is however very different and therefore the figures don't look good. But each channel type separately (mag, planar, eeg) work fine.


Robert Oostenveld - 2016-03-16 16:10:23 +0100

It is extending well beyond channel selection. The reason for starting this is to demo video MEG on a Elekta dataset that includes EEG+MAG+GRAD channels. I am now continuing to implement scaling and multi/topoplotting with a super-layout, i.e. one that consists of three layouts (for the EEG, MAG and GRAD) side-by-side. mac011> git commit -a [bug3096 e0bf959] Enhancements to handling of multiple layouts, for channel selection, multiplot and for topoplot. The channel scaling is now done using ft_apply_montage. Small change in EEG selection in ft_channelselection. Use mask_individual instead of mask for interplim in ft_plot_topo. 8 files changed, 95 insertions(+), 72 deletions(-)