<div dir="ltr">Hi Wanze,<div><br></div><div>Sorry to hear you didn't get a response last year, but thanks for sharing yours! Indeed, that seems to be the most elegant work-around to me as well. I'll probably do that. Thanks!</div><div><br></div><div>Stephen</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 July 2017 at 19:38, Xie Wanze <span dir="ltr"><<a href="mailto:xiew1202@gmail.com" target="_blank">xiew1202@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I mean manually calculated the filter with ft source analysis. Sorry for my typo in my last email.</div><div><br></div><div>Good luck.</div><div><br></div><div>Wanze<br><div class="gmail_quote"><span class=""><div>Stephen Whitmarsh <<a href="mailto:stephen.whitmarsh@gmail.com" target="_blank">stephen.whitmarsh@gmail.com</a>><wbr>于2017年7月4日 周二上午9:52写道:<br></div></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Lorenzo,<div><div class="h5"><div><br></div><div>Thanks, I will give it a try tomorrow, but the documentation suggest that it's not what I want: Just for clarity, I would like to use the same filter on separate trials.</div><div><br></div><div>Best wishes,</div><div>Stephen</div></div></div></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 4 July 2017 at 18:32, Lorenzo Magazzini <span><<a href="mailto:magazzinil@gmail.com" target="_blank">magazzinil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi Stephen,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Perhaps you could try to add the option cfg.rawtrial = 'yes'.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I'm not entirely sure, but maybe by using a precomputed filter, the same filter is applied to each single trial separately (rather than constructing a different filter individually for each trial, which I guess is not what you want to do).</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Lorenzo </div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-4059937116171881051m_-2709218621764051901m_1086833255222565741gmail_signature" data-smartmail="gmail_signature"><div><div><div><div><div><div><div><div><div><div><div><div><div><p style="margin:0cm 0cm 0.0001pt"><font face="arial, helvetica, sans-serif" size="2"><br></font></p><p style="margin:0cm 0cm 0.0001pt"><font face="arial, helvetica, sans-serif" size="2"><br></font></p><p style="margin:0cm 0cm 0.0001pt"><font face="arial, helvetica, sans-serif" size="1">Lorenzo Magazzini, PhD</font></p><p style="margin:0cm 0cm 0.0001pt"><font face="arial, helvetica, sans-serif" size="1">Research Associate</font></p><p style="margin:0cm 0cm 0.0001pt"><font face="arial, helvetica, sans-serif" size="1">CUBRIC</font></p><p style="margin:0cm 0cm 0.0001pt"><span style="font-family:arial,helvetica,sans-serif"><font size="1">Cardiff University</font></span></p><p style="margin:0cm 0cm 0.0001pt"><font size="1"><font face="arial, helvetica, sans-serif">Cardiff </font><span style="font-family:arial,helvetica,sans-serif">CF24 4HQ</span></font></p><p style="margin:0cm 0cm 0.0001pt"><font face="arial, helvetica, sans-serif" size="1">Tel: <a href="tel:+44%2029%202087%200090" value="+442920870090" target="_blank">+44 (0)2920 870090</a></font></p><p style="margin:0cm 0cm 0.0001pt"><font color="#0000ee" face="arial, helvetica, sans-serif" size="1"><u><a href="http://psych.cf.ac.uk/contactsandpeople/magazzinil.php" target="_blank">http://psych.cf.ac.uk/<wbr>contactsandpeople/magazzinil.<wbr>php</a></u></font><br></p><p style="margin:0cm 0cm 0.0001pt"><font face="verdana, sans-serif" size="1"><br><br></font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="m_-4059937116171881051m_-2709218621764051901h5">On 4 July 2017 at 17:03, Stephen Whitmarsh <span><<a href="mailto:stephen.whitmarsh@gmail.com" target="_blank">stephen.whitmarsh@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-4059937116171881051m_-2709218621764051901h5">



<div>
<div>
<div>
<div>
<div>Hi everyone,<br>
<br>
<span style="font-family:arial,helvetica,sans-serif">I am now trying to use the DICS method for sourceanalysis, with 'powandcsd' output from ft_freqanalysis as its input and using a precomputed filter and leadfield. However, I would like to keep my separate
 trial estimates in the final source analysis, and while the documentation suggests I should be able to get that with cfg.keeptrials, but this doesn't have the expected effect.<br>
<br>
</span></div>
<span style="font-family:arial,helvetica,sans-serif">I previously made workaround using PCC on fourier data instead (see below), I think to deal with this issue. I was wondering if this is still the recommended option, i.e. workaround? Alternatively, and perhaps
 preferably, would someone have a suggestion for a solution consistent with the DICS implementation?</span><br>
<br>
</div>
Thanks for your time,<br>
</div>
Stephen<br>
<div>
<div><span style="font-family:monospace,monospace"><br>
</span></div>
<div><span style="font-family:monospace,monospace">% source analysis<br>
</span></div>
<div><span style="font-family:monospace,monospace">cfg.method           = 'pcc';<br>
...<br>
cfg.keeptrials       = 'yes';<br>
cfg.pcc.keepmom      = 'yes';<br>
cfg.pcc.fixedori     = 'no';<br>
source_control       = ft_sourceanalysis(cfg, FFT);   <br>
<br>
and then:<br>
<br>
% project moment and tapers<br>
cfg = [];<br>
cfg.projectmom = 'no';<br>
cfg.keeptrials = 'yes';<br>
cfg.powmethod  = 'lambda1';<br>
source         = ft_sourcedescriptives(cfg,<wbr>source);<br>
</span><br>
<br>
</div>
</div>
</div>
</div>

<br></div></div>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>
______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a></div></div></blockquote></div></div>
<br>______________________________<wbr>_________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/<wbr>mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>