[FieldTrip] Spatio-temporal cluster-based permutation analysis on EEG sources
Stan van Pelt
s.vanpelt at fcdonders.ru.nl
Mon Nov 3 16:54:15 CET 2014
Hi Emma,
I am unfamiliar with this type of error.
It seems however that you still have an inconsistency in your data. You
define “data{i}.avg.pow”, but later on use “cfg.parameter = 'pow';”. You
should change one of the two (e.g. use cfg.parameter = 'avg.pow';)
Hope that helps.
Stan
From: Emma Holmes [mailto:eh776 at york.ac.uk]
Sent: maandag 3 november 2014 14:02
To: fieldtrip at science.ru.nl
Cc: s.vanpelt at fcdonders.ru.nl
Subject: Spatio-temporal cluster-based permutation analysis on EEG sources
Hi Stan,
Thanks for the suggestion.
When I try that, I get the following error
??? Error using ==> ft_datatype_source at 173
unsupported version "upcoming" for source datatype
Error in ==> ft_sourcegrandaverage at 82
varargin{i} = ft_datatype_source(varargin{i}, 'version', 'upcoming');
I am unsure why this occurs.
My data is now structured in the following way:
data = <20x1 cell> % one cell array for each participant, n=20
data{i}.pos = [902629x3 double] % x,y,z positions
data{i}.dim = [91 109 91]
data{i}.time = [1 x 11 double] % vector of time points
data{i}.avg.pow = [902629 x 11 double] % source estimates
The following is the method I use:
cfg = [];
cfg.keepindividual = 'yes';
cfg.parameter = 'pow';
grandavgA = ft_sourcegrandaverage(cfg, data{:});
Best,
Emma
On 31 October 2014 16:02, Stan van Pelt
<mailto:fieldtrip%40science.ru.nl?Subject=Re%3A%20%5BFieldTrip%5D%20Spatio-temporal%20cluster-based%20permutation%20analysis%0A%09on%09EEG%20sources&In-Reply-To=%3C075001cff75a%245487d8a0%24fd9789e0%24%40vanpelt%40fcdonders.ru.nl%3E>
<s.vanpelt at fcdonders.ru.nl> wrote:
> Hi Emma,
>
>
>
> Try using data{i}.avg.pow instead of data{i}.pow.avg
>
>
>
> (or use cfg.funparameter = 'pow.avg' instead of cfg.funparameter =
> 'avg.pow')
>
>
>
> Best,
>
> Stan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20141103/ebd6e7b9/attachment-0002.html>
More information about the fieldtrip
mailing list