<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Jan-Mathijs,<div class=""><br class=""></div><div class="">Thank you so much! You certainly would not want to compare this to my much less fluid code.</div><div class="">I greatly appreciate your help.</div><div class=""><br class=""></div><div class="">All the best,</div><div class="">Julie<br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;"><p class="MsoNormal"><b style="text-decoration: none;" class=""><span style="font-size: 11pt; color: rgb(68, 114, 196);" class="">Julie M. Schneider, PhD </span></b><span style="text-decoration: none; font-size: 10pt; color: rgb(51, 63, 72);" class="">Postdoctoral Research Fellow</span><span style="text-decoration: none; font-size: 10pt;" class=""> | Department of </span><span style="text-decoration: none; font-size: 10pt; color: rgb(51, 63, 72);" class="">Linguistics and Cognitive Science</span><span style="text-decoration: none; font-size: 10pt;" class=""> | </span><span style="text-decoration: none; font-size: 10pt; color: rgb(68, 114, 196);" class="">The University of Delaware </span><span style="font-size: 13.333333015441895px;" class="">| </span><span style="font-size: 10pt; color: rgb(51, 63, 72);" class="">125 E. Main St.</span><span style="font-size: 10pt;" class=""> | </span><span style="font-size: 10pt; color: rgb(51, 63, 72);" class="">(302) 831-3851</span><span style="font-size: 10pt;" class="">| </span><span style="font-size: 10pt; color: rgb(5, 99, 193);" class=""><u class=""><a href="mailto:juschnei@udel.edu" class="">juschnei@udel.edu</a></u> | </span><a href="https://sites.udel.edu/jmschneider" class="">https://sites.udel.edu/jmschneider</a></p><p class="MsoNormal"><span style="font-size: 10pt; color: rgb(68, 114, 196);" class=""><o:p class=""></o:p></span></p><p class="MsoNormal" style="text-decoration: none;"><span style="font-family: Calibri, sans-serif; font-size: 10pt;" class=""><span style="color: rgb(51, 63, 72);" class=""></span></span></p></div></div></div></div></div></div></div></div></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On May 30, 2019, at 6:28 AM, Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">



<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi Julie,</div>
<div class=""><br class="">
</div>
channels = data.label(sum(sum(data.posclusterslabelmat==1,3),2)>0);
<div class="">timepoints = data.time(squeeze(sum(sum(data.posclusterslabelmat==1,2),1))>0);</div>
<div class="">freqpoints = data.freq(squeeze(sum(sum(data.posclusterslabelmat==1,3),1))>0);</div>
<div class=""><br class="">
</div>
<div class="">does not sound like too much heavy lifting to me.</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 30 May 2019, at 12:21, Julie Schneider <<a href="mailto:juschnei@udel.edu" class="">juschnei@udel.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Sophie,
<div class=""><br class="">
</div>
<div class="">Currently I have a script that manually does what you are suggesting. Basically, this script identifies where in the massive array of 0’s a cluster exists in the posclusterlabelmat matrix, then it aligns this with the respective freq, time, and
 channel files to isolate at which points this effect is occurring. I should have clarified better though as I was wondering if this has already been programmed into field trip. Is there a field in my structure or a certain function one can call upon that would
 extract this information more easily? Currently this takes substantial manual heavy lifting/programming experience to get this information. </div>
<div class=""><br class="">
</div>
<div class="">Thanks so much!</div>
<div class="">Julie<br class="">
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; 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; -webkit-text-stroke-width: 0px;" class=""><p class="MsoNormal"><b style="text-decoration: none;" class=""><span style="font-size: 11pt; color: rgb(68, 114, 196);" class="">Julie M. Schneider, PhD </span></b><span style="text-decoration: none; font-size: 10pt; color: rgb(51, 63, 72);" class="">Postdoctoral
 Research Fellow</span><span style="text-decoration: none; font-size: 10pt;" class=""> | Department of </span><span style="text-decoration: none; font-size: 10pt; color: rgb(51, 63, 72);" class="">Linguistics and Cognitive Science</span><span style="text-decoration: none; font-size: 10pt;" class=""> | </span><span style="text-decoration: none; font-size: 10pt; color: rgb(68, 114, 196);" class="">The
 University of Delaware </span><span style="font-size: 13.333333015441895px;" class="">| </span><span style="font-size: 10pt; color: rgb(51, 63, 72);" class="">125 E. Main St.</span><span style="font-size: 10pt;" class=""> | </span><span style="font-size: 10pt; color: rgb(51, 63, 72);" class="">(302)
 831-3851</span><span style="font-size: 10pt;" class="">| </span><span style="font-size: 10pt; color: rgb(5, 99, 193);" class=""><u class=""><a href="mailto:juschnei@udel.edu" class="">juschnei@udel.edu</a></u> | </span><a href="https://sites.udel.edu/jmschneider" class="">https://sites.udel.edu/jmschneider</a></p><p class="MsoNormal"><span style="font-size: 10pt; color: rgb(68, 114, 196);" class=""><o:p class=""></o:p></span></p>
<div style="text-decoration: none;" class=""><span style="font-family: Calibri, sans-serif; font-size: 10pt;" class=""><span style="color: rgb(51, 63, 72);" class=""></span></span><br class="webkit-block-placeholder">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On May 30, 2019, at 3:29 AM, Arana, S.L. (Sophie) <<a href="mailto:S.Arana@donders.ru.nl" class="">S.Arana@donders.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
Hi Julie,<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
Next to your postclusterslabelmat field your structure should also contain a dimord field which tells you what the dimensions relate to for example a dimord: 'chan_freq_time' tells you that the first dimension of your posclusterslabelmat is the channel dimension,
 2nd one frequencies etc... And then you have to compare with the respective fields 'labels', 'freq' and 'time' to know what the indices refer to exactly.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
Is this what you were looking for? I think this tutorial should be relevant for you: <a href="http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq/" class="">http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq/</a> <br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
It also contains some examples for how to plot your cluster stats on top of topographies.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
Cheers,<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none;" class="">
Sophie<br class="">
</div>
<div style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; 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; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class="">
<hr tabindex="-1" style="display: inline-block; width: 819.265625px;" class="">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" class="">fieldtrip-bounces@science.ru.nl</a>>
 on behalf of Julie Schneider <<a href="mailto:juschnei@udel.edu" class="">juschnei@udel.edu</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, May 29, 2019 9:57 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span><a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>[FieldTrip] Extracting time x frequency x channel information from posclusterslabelmat</font>
<div class=""> </div>
</div>
<div class="">Greetings,
<div class=""><br class="">
<div class="">I am inquiring about the most efficient method for identifying the time, frequency, and channel information for each cluster identified as significant by the permutation analysis. I currently have three clusters in my posclusterslabelmat structure,
 but am curious about which time points, frequencies, and channels these clusters correspond to. Any advice or assistance as to how this information can be extracted from Fieldtrip would be greatly appreciated.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Julie<br class="">
<div class="">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; line-break: after-white-space;">
<div dir="auto" class="" style="word-wrap: break-word; line-break: after-white-space;">
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><b class="" style="text-decoration: none;"><span class="" style="font-size: 11pt; color: rgb(68, 114, 196);">Julie M. Schneider, PhD </span></b><span class="" style="text-decoration: none; font-size: 10pt; color: rgb(51, 63, 72);">Postdoctoral
 Research Fellow</span><span class="" style="text-decoration: none; font-size: 10pt;"> | Department of </span><span class="" style="text-decoration: none; font-size: 10pt; color: rgb(51, 63, 72);">Linguistics and Cognitive Science</span><span class="" style="text-decoration: none; font-size: 10pt;"> | </span><span class="" style="text-decoration: none; font-size: 10pt; color: rgb(68, 114, 196);">The
 University of Delaware </span><span class="" style="font-size: 13.333333015441895px;">| </span><span class="" style="font-size: 10pt; color: rgb(51, 63, 72);">125 E. Main St.</span><span class="" style="font-size: 10pt;"> | </span><span class="" style="font-size: 10pt; color: rgb(51, 63, 72);">(302)
 831-3851</span><span class="" style="font-size: 10pt;">| </span><span class="" style="font-size: 10pt; color: rgb(5, 99, 193);"><u class=""><a href="mailto:juschnei@udel.edu" class="">juschnei@udel.edu</a></u> | </span><a href="https://sites.udel.edu/jmschneider" class="">https://sites.udel.edu/jmschneider</a></div><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px;"><span class="" style="font-size: 10pt; color: rgb(68, 114, 196);"></span></p><p class="MsoNormal" style="margin-top: 0px; margin-bottom: 0px; text-decoration: none;">
<span class="" style="font-family: Calibri, sans-serif; font-size: 10pt;"><span class="" style="color: rgb(51, 63, 72);"></span></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>

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