[FieldTrip] Keeptrials using "pcc" for source analysis

Xie Wanze xiew1202 at gmail.com
Sat Dec 31 15:09:28 CET 2016

Dear Fieldtrip community,
I have a question about using the "keeptrials" option when do the source
analysis with the beamformer ('PCC') method.   The issue I met was that the
cfg.keeptrials = 'yes' did not work, i.e., the calculation was not done for
all the trials but generated averaged output.
 Has anyone met this issue before? And does anyone know how to fix it?
 It did not work for my data nor for the data I downloaded from the FT
database. I attached the codes that I copied from the FT website using the
FT's example data.
 I would like to keep the trials information in the source analysis because
I plan to do the source space connectivity analysis later, which needs the
individual trials information. Or maybe the "crsspctrm" matrix.


 cfg                   = [];

cfg.frequency         = freq.freq;

cfg.method            = 'pcc';

cfg.grid              = lf;

cfg.headmodel         = hdm;

cfg.keeptrials        = 'yes';

cfg.pcc.lambda        = '10%';

cfg.pcc.projectnoise  = 'yes';

cfg.pcc.keepfilter    = 'yes';

cfg.pcc.fixedori      = 'yes';

source = ft_sourceanalysis(cfg, freq);

Output ("source"):

    freq: 10

    cumtapcnt: [268x1 double]

          tri: [16000x3 double]

       inside: [8004x1 logical]

          pos: [8004x3 double]

       method: 'average'

          avg: [1x1 struct]

          cfg: [1x1 struct]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20161231/44579fd0/attachment-0001.html>

More information about the fieldtrip mailing list