Back to the main page.

Bug 1298 - trials not kept after ft_sourceanalysis with cfg.keeptrials='yes'

Reported 2012-01-31 13:50:00 +0100
Modified 2012-08-22 17:32:43 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: All
Operating System: All
Importance: P3 normal
Assigned to: Johanna
Depends on:
See also:

Johanna - 2012-01-31 13:50:53 +0100

according to Rene, and an example he showed me. For now, this is a placeholder/reminder to question into it further. My initial guess is that trials are not meant to be kept depending on the data and bf type that was called (hence not a bug), but perhaps they should/can be kept?

Jan-Mathijs Schoffelen - 2012-01-31 13:52:59 +0100

this functionality is implemented in ft_sourceanalysis with cfg.rawtrial/cfg.singletrial

Jörn M. Horschig - 2012-02-01 09:36:36 +0100

this relates a bit to bug 1067, in that there seems to be a difference in naming of configuration options between sensor- and sourcelevel functions. maybe we should rethink some of these names?

Johanna - 2012-02-29 16:17:45 +0100

Hi Rene, At the moment, ft_sourceanalysis is under major restructuring, but for now the recommended way to keep out trials is this: first call ft_sourceanalysis with keepfilter='yes' and then call it again with this cfg.grid.filter and also with both cfg.rawtrial='yes' and cfg.keeptrials='yes'; Then you will get out source.trial. Note the cfg.singletrial is broken and not recommended at the moment. Documention in ft_sourceanalysis updated to reflect this. New error added to ft_sourceanalysis so it fails if user calls rawtrial='yes' without a grid.filter. FT dev note: see test_bug1298 svn update: 5337