<div dir="ltr"><div>Hi Mubeen,</div><div><br></div><div>The cfg.foi field specifies the frequency <i>range</i> in Hz, so the first option you mention.</div><div><br></div><div>This is described in the header of the function ft_selectdata, where you can always find a clear description of the input/output of FieldTrip functions:</div><div>
<span class="gmail-pl-c"><span class="gmail-pl-c">%</span>   cfg.frequency   = scalar or string, can be 'all', or [beg end], specify frequency range in Hz</span>

</div><div><br></div><div>Cheers,</div><div>Stephen<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 29 Mar 2022 at 10:55, mubeen afzal via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
<div dir="ltr">
<div></div>
<div>
<div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255)" dir="ltr">
<span id="gmail-m_1476641561309149463ms-outlook-ios-cursor"></span>Thanks Jan will do. Can I ask if the specification of avgoverfrequency actually averages powspctrm values in all frequency bins if foi is [2 6] or looks at only 4hz the average of 2+6/2. The output says 1 frequency bin
 and stat.freq shows 4 in output when aevraging is done meaning does it only look at 4Hz frequency?</div>
</div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255)" dir="ltr">
<br>
</div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255)" dir="ltr">
Regards</div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255)" dir="ltr">
Mubeen J</div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255)" dir="ltr">
<br>
</div>
<div style="color:rgb(0,0,0);background-color:rgb(255,255,255)" dir="ltr">
<br>
</div>
<div id="gmail-m_1476641561309149463ms-outlook-mobile-signature">
<div><br>
</div>
Get <a href="https://aka.ms/o0ukef" target="_blank">Outlook for iOS</a></div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_1476641561309149463divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" target="_blank">fieldtrip-bounces@science.ru.nl</a>> on behalf of Schoffelen, J.M. (Jan Mathijs) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br>
<b>Sent:</b> Tuesday, March 29, 2022 6:07:37 PM<br>
<b>To:</b> FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>><br>
<b>Cc:</b> Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:janmathijs.schoffelen@donders.ru.nl" target="_blank">janmathijs.schoffelen@donders.ru.nl</a>><br>
<b>Subject:</b> Re: [FieldTrip] plotting clusters</font>
<div> </div>
</div>
<div style="overflow-wrap: break-word;">Hi Mubeen,
<div><br>
</div>
<div>@1 and @2: Perhaps you can start by studying the documentation on internet:</div>
<div><br>
</div>
<div><br>
</div>
<div><a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.fieldtriptoolbox.org%2Ftutorial%2Fcluster_permutation_timelock%2F&data=04%7C01%7C%7C648907107d354f14c1b008da11579901%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637841365169980738%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yYGC6%2BcbFuYKiPQojXCx7HKKw39%2FwbTtJtR1fgDZfDg%3D&reserved=0" target="_blank">https://www.fieldtriptoolbox.org/tutorial/cluster_permutation_timelock/</a></div>
<div><br>
</div>
<div>The output data object is quite extensively described.</div>
<div><br>
</div>
<div>@3: the error message is quite clear I think, so the answer would be ’no’, unless you squeeze out either the frequency or time dimension. This can be done with ft_selectdata, and an appropriate specification of the input cfg. Please refer to the
 function’s help to get you on the way.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On 28 Mar 2022, at 17:20, mubeen afzal via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>> wrote:</div>
<br>
<div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Hi fieldtrip team,</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
I would like to know how to learn more on cluster permutation performed on two groups. </div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<ol>
<li><span>what do positive and negative clusters represent</span></li><li>what is posclusterslabelmat represent</li><li>is there a way to plot positive clusters after wavelet analysis comparisons between two groups without specifying time or frequency as I am getting this error message:<span> </span><i>'this only works if
 either frequency or time is a singleton dimension'</i></li></ol>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
my data currently is comparing frequencies between 2 and 6 Hz for time segments 0:0.2:5 seconds across 19 channels in two groups</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Thanks for any help</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
Mubeen</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span id="gmail-m_1476641561309149463x_cid:cbac47ec-71a1-4b42-80b9-f73c02e95c41"><image.png></span><br>
</div>
<span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">_______________________________________________</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">fieldtrip
 mailing list</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=04%7C01%7C%7C648907107d354f14c1b008da11579901%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637841365169980738%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=QHz3rfVU1QzLRzUNrTO8n2AluF9jCBTpZ1BNnLfYXf0%3D&reserved=0" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202__%3B!!HJOPV4FYYWzcc1jazlU!-EpUOGf67iBC1V52VXArgxdxHSW-85qvC7huhLHkb6b5-_IVanNG206mJVcXUpI-EBpOXK1Q-tbLl1O4Y-BbsQPMn_tttSaYOzx-Kg%24&data=04%7C01%7C%7C648907107d354f14c1b008da11579901%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637841365169980738%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=5AVdMstQl%2FZVXA99fRhW7TeZxk7aj51OHzEQz8wavQA%3D&reserved=0" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-EpUOGf67iBC1V52VXArgxdxHSW-85qvC7huhLHkb6b5-_IVanNG206mJVcXUpI-EBpOXK1Q-tbLl1O4Y-BbsQPMn_tttSaYOzx-Kg$</a><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline"></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>