[FieldTrip] Warning about fixed orientation in source localisation using DICS
DREW , ALICE ALEXANDRA
alicealexandra.drew at upf.edu
Mon Mar 13 15:15:15 CET 2023
Hello,
I am performing source localisation on EEG data using DICS. I am using the
latest version of fieldtrip (20230309). In my analysis, I am contrasting
two time windows of interest and I use the parameter:
cfg.dics.fixedori ='yes';
However, when running the analysis the following Warning appears in my
command window which indicates that this parameter is not being used.
"Warning: with precomputed spatial filters a fixed orientation constraint
or weight normalization options are not applied"
Does anyone know what may be causing this? Here is my code:
%% Windows of interest
cfg = [];
cfg.toilim = [-0.5 0];
cfg.keepsampleinfo='no';
dataPre = ft_redefinetrial(cfg, data);
cfg.toilim = [0.19 0.69];
dataPost = ft_redefinetrial(cfg, data);
dataAll = ft_appenddata([], dataPre, dataPost);
%% Frequency analysis
cfg = [];
cfg.method = 'mtmfft';
cfg.output = 'powandcsd';
cfg.taper = 'hanning';
cfg.foilim = [5 7];
cfg.pad = 1;
freqPre = ft_freqanalysis(cfg, dataPre);
freqPost = ft_freqanalysis(cfg, dataPost);
freqAll = ft_freqanalysis(cfg, dataAll);
%% Average over frequencies
cfg=[];
cfg.avgoverfreq = 'yes';
freqPre = ft_selectdata(cfg, freqPre);
freqPost = ft_selectdata(cfg, freqPost);
freqAll = ft_selectdata(cfg, freqAll);
% Source reconstruction for all trials
cfg=[];
cfg.method='dics';
cfg.headmodel=vol;
cfg.dics.keepfilter = 'yes';
cfg.dics.lambda = '5%';
cfg.dics.fixedori ='yes';
cfg.dics.realfilter = 'yes';
cfg.sourcemodel = grid;
cfg.dics.projectnoise = 'yes';
cfg.sourcemodel.leadfield = grid.leadfield;
sourceAll=ft_sourceanalysis(cfg, freqAll);
% DICS for each condition using the common filter
cfg.sourcemodel.filter = sourceAll.avg.filter;
sourcePre=ft_sourceanalysis(cfg, freqPre);
sourcePost=ft_sourceanalysis(cfg, freqPost);
Thank you in advance!
All the best,
Alice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230313/c1b5fb0b/attachment.htm>
More information about the fieldtrip
mailing list