[FieldTrip] Extracting time x frequency x channel information from posclusterslabelmat

Julie Schneider juschnei at udel.edu
Thu May 30 12:33:37 CEST 2019


Hi Jan-Mathijs,

Thank you so much! You certainly would not want to compare this to my much less fluid code.
I greatly appreciate your help.

All the best,
Julie
Julie M. Schneider, PhD Postdoctoral Research Fellow | Department of Linguistics and Cognitive Science | The University of Delaware | 125 E. Main St. | (302) 831-3851| juschnei at udel.edu <mailto:juschnei at udel.edu> | https://sites.udel.edu/jmschneider <https://sites.udel.edu/jmschneider>

> On May 30, 2019, at 6:28 AM, Schoffelen, J.M. (Jan Mathijs) <jan.schoffelen at donders.ru.nl> wrote:
> 
> Hi Julie,
> 
> channels = data.label(sum(sum(data.posclusterslabelmat==1,3),2)>0);
> timepoints = data.time(squeeze(sum(sum(data.posclusterslabelmat==1,2),1))>0);
> freqpoints = data.freq(squeeze(sum(sum(data.posclusterslabelmat==1,3),1))>0);
> 
> does not sound like too much heavy lifting to me.
> 
> Jan-Mathijs
> 
> 
>> On 30 May 2019, at 12:21, Julie Schneider <juschnei at udel.edu <mailto:juschnei at udel.edu>> wrote:
>> 
>> Hi Sophie,
>> 
>> 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. 
>> 
>> Thanks so much!
>> Julie
>> Julie M. Schneider, PhD Postdoctoral Research Fellow | Department of Linguistics and Cognitive Science | The University of Delaware | 125 E. Main St. | (302) 831-3851| juschnei at udel.edu <mailto:juschnei at udel.edu> | https://sites.udel.edu/jmschneider <https://sites.udel.edu/jmschneider>
>> 
>> 
>>> On May 30, 2019, at 3:29 AM, Arana, S.L. (Sophie) <S.Arana at donders.ru.nl <mailto:S.Arana at donders.ru.nl>> wrote:
>>> 
>>> Hi Julie,
>>> 
>>> 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.
>>> 
>>> Is this what you were looking for? I think this tutorial should be relevant for you: http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq/ <http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_freq/> 
>>> It also contains some examples for how to plot your cluster stats on top of topographies.
>>> 
>>> Cheers,
>>> Sophie
>>> From: fieldtrip <fieldtrip-bounces at science.ru.nl <mailto:fieldtrip-bounces at science.ru.nl>> on behalf of Julie Schneider <juschnei at udel.edu <mailto:juschnei at udel.edu>>
>>> Sent: Wednesday, May 29, 2019 9:57 PM
>>> To: fieldtrip at science.ru.nl <mailto:fieldtrip at science.ru.nl>
>>> Subject: [FieldTrip] Extracting time x frequency x channel information from posclusterslabelmat
>>>  
>>> Greetings,
>>> 
>>> 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.
>>> 
>>> Best,
>>> Julie
>>> Julie M. Schneider, PhD Postdoctoral Research Fellow | Department of Linguistics and Cognitive Science | The University of Delaware | 125 E. Main St. | (302) 831-3851| juschnei at udel.edu <mailto:juschnei at udel.edu> | https://sites.udel.edu/jmschneider <https://sites.udel.edu/jmschneider>
>>> 
>>> 
>> 
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip <https://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
>> https://doi.org/10.1371/journal.pcbi.1002202
> 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190530/08e2eaad/attachment-0002.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202


More information about the fieldtrip mailing list