<div dir="ltr"><div>Thanks for your answer, Haiteng! It also works for me when I interpolate i.e. 'stat'. However, it would be good to know why 'all' does not work, since it is described in the tutorial...<br>
<br></div>Best,<br><br>Andreas<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/7 Haiteng Jiang <span dir="ltr"><<a href="mailto:haiteng.jiang@gmail.com" target="_blank">haiteng.jiang@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Andreas ,<div> It is annoying that it doesn't work if you specify cfg.parameter 'all' and I don't know why either. However , I have a very simple solution for this by interpolating 'stat' and 'mask' then combining afterwards when you want to plot your statistic result. The FT code is something like this:</div>
<div><br></div><div> cfg = [];<div>cfg.voxelcoord = 'no';</div><div>cfg.parameter = 'stat';</div><div>cfg.interpmethod = 'nearest';</div><div>cfg.coordsys = 'mni';</div>
<div>statplot = ft_sourceinterpolate(cfg, stat,mri); </div><div><br></div><div>cfg = [];</div><div>cfg.voxelcoord = 'no';</div><div>cfg.parameter = 'mask';</div>
<div>cfg.interpmethod = 'nearest';</div><div>cfg.coordsys = 'mni';</div><div>mask = ft_sourceinterpolate(cfg, stat,mri); </div><div>
statplot.mask = mask.mask;</div><div class="gmail_extra"><div class="gmail_quote"><div> Hope this helps.</div><div> </div><div> Best,</div><div> Haiteng </div>
<div> </div><div> </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Message: 3<br>
Date: Sat, 6 Jul 2013 09:53:09 +0200<br>
From: Andreas Sauer <<a href="mailto:sauer.mpih@googlemail.com" target="_blank">sauer.mpih@googlemail.com</a>><br>
To: FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br>
Subject: [FieldTrip] ft_sourceinterpolate with stats data<br>
Message-ID:<br>
<<a href="mailto:CAHLSopWD2Q-RuAMJrvwZJGAajB6aUbDyrDN6_SFMdqu7HOgZ0g@mail.gmail.com" target="_blank">CAHLSopWD2Q-RuAMJrvwZJGAajB6aUbDyrDN6_SFMdqu7HOgZ0g@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<div class="im"><br>
<br>
Dear All,<br>
<br>
after running source statistics I tried to plot the result. However, I<br>
always get the error that cfg.parameter 'all' can't be used since there is<br>
"no such field".</div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">
<br>
I know that I can also specify single parameters, i.e. only the ones I want<br>
to interpolate. However, I would like to know why it doesn't work for me<br>
with all the parameters... Maybe it's only a minor thing, i.e. the FT<br>
version. But I want to make sure that there is no major error in my<br>
pipeline.<br>
<br>
Any help is as always very appreciated! Thanks!<br>
<br>
Best,<br>
<br>
Andreas<br>
<br>
--<br>
Andreas Sauer<br>
Max Planck Institute for Brain Research<br></div>
Deutschordenstra?e 46<div class="im"><br>
60528 Frankfurt am Main<br>
Germany<br>
<br>
T: <a href="tel:%2B49%2069%2096769%20278" value="+496996769278" target="_blank">+49 69 96769 278</a><br>
F: <a href="tel:%2B49%2069%2096769%20327" value="+496996769327" target="_blank">+49 69 96769 327</a><br>
Email: <a href="mailto:sauer.mpih@gmail.com" target="_blank">sauer.mpih@gmail.com</a><br>
<a href="http://www.brain.mpg.de" target="_blank">www.brain.mpg.de</a><br></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130706/b595b2e2/attachment-0001.html" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130706/b595b2e2/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<br>
End of fieldtrip Digest, Vol 32, Issue 11<br>
*****************************************<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div><font face="arial, helvetica, sans-serif">Haiteng Jiang</font></div><div><font face="arial, helvetica, sans-serif">PhD candidate</font></div><div><font face="arial, helvetica, sans-serif">Neuronal Oscillations Group</font></div>
<div><font face="arial, helvetica, sans-serif">Donders Institute for Brain, Cognition and Behaviour</font></div><div><font face="arial, helvetica, sans-serif">Centre for Cognitive Neuroimaging</font></div><div><font face="arial, helvetica, sans-serif">Radboud University Nijmegen</font></div>
<div><span style="line-height:18px"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="line-height:18px"><font face="arial, helvetica, sans-serif">Visiting address</font></span></div>
<div><div style="text-align:left"><div><span style="line-height:18px"><font face="arial, helvetica, sans-serif">Room 2.32</font></span></div><div><span style="line-height:18px"><font face="arial, helvetica, sans-serif">Donders Centre for Cognitive Neuroimaging</font></span></div>
<div><span style="line-height:18px"><font face="arial, helvetica, sans-serif">Kapittelweg 29</font></span></div><div><span style="line-height:18px"><font face="arial, helvetica, sans-serif">6525 EN Nijmegen</font></span></div>
<div><span style="line-height:18px"><font face="arial, helvetica, sans-serif">the Netherlands</font></span></div><div><span style="line-height:18px"><font face="arial, helvetica, sans-serif"><br></font></span></div></div>
</div><div><font face="arial, helvetica, sans-serif"> Tel.: <a href="tel:%2B31%20%280%29243668291" value="+31243668291" target="_blank">+31 (0)243668291</a></font></div></div><div><font face="arial, helvetica, sans-serif"> Web: <a href="https://sites.google.com/site/haitengjiang/" target="_blank">https://sites.google.com/site/haitengjiang/</a></font></div>
</div></div></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br><br clear="all"><br>-- <br><div></div><div>Dipl.-Psych. Andreas Sauer</div>
<div>Max Planck Institute for Brain Research</div><div>Deutschordenstraße 46</div><div>60528 Frankfurt am Main</div><div>Germany</div><div><br></div><div>T: +49 69 96769 278</div><div>F: +49 69 96769 327</div><div>Email: <a href="mailto:sauer.mpih@gmail.com" target="_blank">sauer.mpih@gmail.com</a></div>
<div><a href="http://www.brain.mpg.de" target="_blank">www.brain.mpg.de</a></div>
</div>