[FieldTrip] Tranform MNE to dSPM

Miguel Granja Espirito Santo Miguel.Granjaespiritosanto at nottingham.ac.uk
Tue Jun 6 13:36:35 CEST 2017


Hello all,

I am currently trying to transform my source-localized MNE individual data into dSPM before conducting group stats. However, I am stuck in the last step. Unfortunately, I am not very good with maths, so I can't replicated Dale et al. (2000) formulas. I had look through previous posts (namely, https://mailman.science.ru.nl/pipermail/fieldtrip/2012-May/005170.html) , and information is a bit vague on how to replicate this process. Does anyone have any information about how to proceed from MNE to dSPM. I currently have the code below ( as per the MNE tutorial) and would appreciate any advice on what to do next:

 %% prepare leadfield

cfg = [];

cfg.grid.unit = 'mm';

cfg.vol  = vol;

cfg.grad = grad;

cgf.reducerank = 2;

cfg.normalize = 'yes';

cfg.grid = sourcespace;

leadfield = ft_prepare_leadfield(cfg);

%% Inverse Solution

 cfg        = [];

cfg.method = 'mne';

cfg.grid   = leadfield;

cfg.vol    = vol;

cfg.mne.normalize = 'yes';

cfg.mne.prewhiten = 'yes';

cfg.mne.keepfilter= 'yes';

cfg.mne.lambda    = 3;

cfg.mne.scalesourcecov = 'yes';

cfg.mne.projectnoise = 'yes';

cfg.mne.keepfilter = 'yes';

mne_hands_Distorted  = ft_sourceanalysis(cfg,tl_DistHands);

mne_hands_Standard  = ft_sourceanalysis(cfg,tl_StdHands);

  %% Plot Results

bnd.pnt = sourcespace.pos;

bnd.tri = sourcespace.tri;

cfg = [];

cfg.projectmom = 'yes';

shDist = ft_sourcedescriptives(cfg,mne_hands_Distorted);

m=shDist.avg.pow(:,700); % Plotting around 170ms

ft_plot_mesh(bnd,'edgecolor', 'k', 'vertexcolor', m);


Thanks for your help.
Best,
Miguel
PhD Student
School of Psychology
University of Nottingham





This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170606/d45bffdc/attachment-0001.html>


More information about the fieldtrip mailing list