<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>Dear All, </div>
<div><br>
</div>
<div>I've been doing some testing with elekta neuromag data in Fieldtrip using different sensor types (meg, meggrad, megmag) and different preprocessing steps (tSSS 0.9 corr limit, no tSSS).</div>
<div><br>
</div>
<div>A step that was proposed at the MEG UK 2015 demo was to use PCA to compensate for the ill-conditioned estimate of the cov/csd matrix due to maxfilter - could I ask why running a PCA and reducing the number of components further would compensate for this?
 Apologies if this a naive question, however I would assume that you would not want to reduce the rank of your data further? <span style="font-size:10pt">Please see below for the link and code that I'm referring to. </span></div>
<div><span style="font-size:10pt"><br>
</span></div>
<div>
<div><a href="http://www.fieldtriptoolbox.org/workshop/meg-uk-2015/fieldtrip-beamformer-demo" target="_blank"><font size="2">http://www.fieldtriptoolbox.org/workshop/meg-uk-2015/fieldtrip-beamformer-demo</font></a></div>
<div>
<p class="MsoNormal"><font size="2"><br>
</font></p>
</div>
<div><font size="2">%% deal with maxfilter</font></div>
<div><font size="2"> </font></div>
<div><font size="2">% the data has been maxfiltered and subsequently concatenated</font></div>
<div><font size="2">% this results in an ill-conditioned estimate of covariance or CSD</font></div>
<div><font size="2"> </font></div>
<div><font size="2">cfg = [];</font></div>
<div><font size="2">cfg.method = 'pca';</font></div>
<div><font size="2">cfg.updatesens = 'no';</font></div>
<div><font size="2">cfg.channel = 'MEGMAG';</font></div>
<div><font size="2">comp = ft_componentanalysis(cfg, data);</font></div>
<div><font size="2"> </font></div>
<div><font size="2">cfg = [];</font></div>
<div><font size="2">cfg.updatesens = 'no';</font></div>
<div><font size="2">cfg.component = comp.label(51:end);</font></div>
<div><font size="2">data_fix = ft_rejectcomponent(cfg, comp);</font></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Many thanks,</div>
<div>Mike Hall</div>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
<p class="MsoNormal" style="text-autospace:none"><br>
</p>
<p class="MsoNormal" style="text-autospace:none"><font face="Times New Roman" size="3"><span style="font-size:12pt"><font size="2"><span style="font-size:10pt"><br>
</span></font></span></font></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>