<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 style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Jan-Mathijs,
<div><br>
</div>
<div>Very good to know, thank you!</div>
<div><br>
</div>
<div>Peter<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div><font size="2">__________________________</font></div>
<div><font size="2">Peter Goodin, </font>
<div>
<div>
<div>BSc (Hons), Ph.D Candidate.</div>
<div><br>
</div>
<div><font size="2">Brain and Psychological Sciences Research Centre (BPsych)</font></div>
<div>Swinburne University, </div>
<div>Hawthorn, Vic, 3122</div>
</div>
<div><br>
</div>
<div><font size="2">Monash Alfred Psychiatry Research Centre (MAPrc)</font></div>
Level 4, 607 St Kilda Road, <br>
Melbourne 3004</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF173968" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> fieldtrip-bounces@science.ru.nl [fieldtrip-bounces@science.ru.nl] on behalf of jan-mathijs schoffelen [jan.schoffelen@donders.ru.nl]<br>
<b>Sent:</b> Tuesday, 12 November 2013 7:06 PM<br>
<b>To:</b> FieldTrip discussion list<br>
<b>Subject:</b> Re: [FieldTrip] help<br>
</font><br>
</div>
<div></div>
<div>Dear all,
<div><br>
</div>
<div>As a comment to Peter's reply: the fastica code internally applies PCA to the data by removing all small signal components. In this respect runica does not behave differently if you specify cfg.runica.pca = 70 (provided that fastica estimates the number
of components to retain is 70).</div>
<div><br>
</div>
<div>Best,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
<div>
<div>On Nov 12, 2013, at 4:41 AM, Peter Goodin wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hi Sendy, <br>
<br>
TL;DR - Use fastica. <br>
<br>
Long version: The problem is due to Max filtering your data. You think you should have 305 components (n channels - 1) but due to the removal of some components during the Max filtering process it's more like 70 (tsss changes that figure again). There's been
some discussion on this list previously about it where the suggestion was to use PCA to limit the components to ~70. On the EEGlab mailing list however there's talk that apparently using PCA can effect data quality. To get around this, instead of using an
algorithm like runica, I use fastica. It automatically accounts for the reduced rank of the data using a co-variance matrix and produces comparable results (from my own tinkering).
<br>
<br>
Hope this helps, <br>
<br>
Peter<br>
<br>
__________________________<br>
Peter Goodin,<br>
BSc (Hons), Ph.D Candidate.<br>
<br>
Brain and Psychological Sciences Research Centre (BPsych)<br>
Swinburne University,<br>
Hawthorn, Vic, 3122<br>
<br>
Monash Alfred Psychiatry Research Centre (MAPrc)<br>
Level 4, 607 St Kilda Road,<br>
Melbourne 3004<br>
<br>
________________________________________<br>
From: <a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a> [fieldtrip-bounces@science.ru.nl] on behalf of Sendy Caffarra [s.caffarra@bcbl.eu]<br>
Sent: Tuesday, 12 November 2013 3:33 AM<br>
To: FieldTrip discussion list<br>
Cc: FieldTrip discussion list<br>
Subject: Re: [FieldTrip] help<br>
<br>
Hi Fieldtrip users,<br>
<br>
I tried to select MEG as channels and I reduced the rank of my data, as following:<br>
<br>
cfg=[];<br>
cfg.runica.pca = 306;<br>
cfg.channel = 'MEG';<br>
comp = ft_componentanalysis(cfg, data);<br>
<br>
...but I still get the same error as before.<br>
Are there any other reasons that could produce this error?<br>
<br>
Thanks in advance,<br>
Sendy<br>
<br>
<br>
Sendy Caffarra<br>
Postdoctoral researcher BCBL<br>
<a href="http://www.bcbl.eu" target="_blank">www.bcbl.eu</a><br>
<br>
----- Original Message -----<br>
From: "Max Cantor" <mcantor@umich.edu><br>
To: "FieldTrip discussion list" <fieldtrip@science.ru.nl><br>
Sent: Monday, November 11, 2013 4:46:53 PM<br>
Subject: Re: [FieldTrip] help<br>
<br>
<br>
<br>
I'm having this issue as well, only with EEG data, and at resamplefs = 150. I've added '-refchan' to my cfg.channel for ft_componentanalysis, and also set path for EEGlab toolbox, but the issue persists. Any help would be greatly appreciated.<br>
<br>
<br>
Thank you,<br>
Max<br>
<br>
<br>
<br>
On Fri, Nov 8, 2013 at 5:14 AM, Stephen Whitmarsh < stephen.whitmarsh@gmail.com > wrote:<br>
<br>
<br>
<br>
Hi Sendy, JM,<br>
<br>
<br>
In addition, that error also happens (or used to, at least) when you have not selected MEG as channels, therefor applying ICA e.g. also on your EOG channels etc. as well.<br>
<br>
<br>
Cheers,<br>
Stephen<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 8 November 2013 11:08, jan-mathijs schoffelen < jan.schoffelen@donders.ru.nl > wrote:<br>
<br>
<br>
<br>
<br>
<br>
<br>
Hi Sendy,<br>
<br>
<br>
You may want to have a look at the following link:<br>
<br>
<br>
http://fieldtrip.fcdonders.nl/faq/why_does_my_ica_output_contain_complex_numbers?s[]=component<br>
<br>
<br>
I assume that your data has been passed through the MaxFilter, which massively reduces the rank of your data, causing the ICA algorithm to spit out complex valued numbers.<br>
You need to reduce the rank of your data prior to running the component decomposition, to be less that then true rank in your data.<br>
<br>
<br>
Best<br>
Jan-Mathijs<br>
<br>
<br>
<br>
<br>
On Nov 8, 2013, at 10:47 AM, Sendy Caffarra wrote:<br>
<br>
<br>
<br>
Hi,<br>
<br>
<br>
I'm using Fieldtrip to analyze my Meg data.<br>
Actually, I'm trying to reject ocular artifacts by using ICA.<br>
I decreased the sample rate to 300 and I performed the ICA analysis as following:<br>
<br>
cfg = [];<br>
cfg.resamplefs = 300;<br>
cfg.detrend = 'no';<br>
data_1_rspl = ft_resampledata(cfg, data_1);<br>
%ICA<br>
cfg = [];<br>
cfg.method = 'runica';<br>
comp = ft_componentanalysis(cfg, data_1_rspl);<br>
<br>
<br>
It worked, but now when I try to visualize the different ICA components using:<br>
<br>
cfg = [];<br>
cfg.layout = 'neuromag306mag.lay'; % specify the layout file that should be used for plotting<br>
cfg.viewmode = 'component';<br>
ft_databrowser(cfg, comp);<br>
<br>
I can see how the waves look like, but I cannot see the topographic distribution of them.<br>
<br>
And Matlab gives me this error:<br>
<br>
??? Error using ==> surf at 78<br>
X, Y, Z, and C cannot be complex.<br>
<br>
Error in ==> ft_plot_topo at 251<br>
h = surf(Xi-deltax/2,Yi-deltay/2,zeros(size(Zi)), Zi, 'EdgeColor', 'none', 'FaceColor',<br>
shading);<br>
<br>
Error in ==> ft_databrowser>redraw_cb at 1850<br>
ft_plot_topo(chanx, chany, chanz, 'mask', ...<br>
<br>
Error in ==> ft_databrowser at 671<br>
redraw_cb(h);<br>
<br>
<br>
Could you help me in solving this problem?<br>
I also downloaded the latest version of fieldtrip but it still does not work.<br>
<br>
Thanks for your help.<br>
<br>
Sendy<br>
<br>
<br>
Sendy Caffarra<br>
Postdoctoral researcher BCBL<br>
www.bcbl.eu<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Jan-Mathijs Schoffelen, MD PhD<br>
<br>
<br>
Donders Institute for Brain, Cognition and Behaviour,<br>
Centre for Cognitive Neuroimaging,<br>
Radboud University Nijmegen, The Netherlands<br>
<br>
<br>
Max Planck Institute for Psycholinguistics,<br>
Nijmegen, The Netherlands<br>
<br>
<br>
J.Schoffelen@donders.ru.nl<br>
Telephone: +31-24-3614793<br>
<br>
<br>
http://www.hettaligebrein.nl<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
fieldtrip@donders.ru.nl<br>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br>
</div>
</blockquote>
</div>
<br>
<div><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"><span class="Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-size:medium; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px">
<div style="word-wrap:break-word">
<div>Jan-Mathijs Schoffelen, MD PhD </div>
<div><br>
</div>
<div>Donders Institute for Brain, Cognition and Behaviour, <br>
Centre for Cognitive Neuroimaging,<br>
Radboud University Nijmegen, The Netherlands</div>
<div><br>
</div>
<div>Max Planck Institute for Psycholinguistics,</div>
<div>Nijmegen, The Netherlands</div>
<div><br>
</div>
<div><a href="mailto:J.Schoffelen@donders.ru.nl" target="_blank">J.Schoffelen@donders.ru.nl</a></div>
<div>Telephone: +31-24-3614793</div>
<div><br>
</div>
<div><a href="http://www.hettaligebrein.nl" target="_blank">http://www.hettaligebrein.nl</a></div>
</div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></div>
</span></span></div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>