Back to the main page.

Bug 2942 - ft_clusterplot in Tutorial on cluster permutation for event related stats does not work

Status CLOSED FIXED
Reported 2015-08-07 12:15:00 +0200
Modified 2019-08-10 12:31:15 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: All
Operating System: All
Importance: P5 major
Assigned to: Tzvetan Popov
URL:
Tags:
Depends on:
Blocks:
See also:

Rajat Thomas - 2015-08-07 12:15:53 +0200

I followed the tutorial on http://www.fieldtriptoolbox.org/tutorial/eventrelatedstatistics?s[]=cluster&s[]=permutation at the very end, I wanted to do the ft_clusterplot but then I did not get topoplots as a function of time as in the tutorial and instead just got one plot. Is there something wrong in the way the parameters are set in the tutorial. The last part is as follows: % make a plot cfg = []; cfg.highlightsymbolseries = ['*','*','.','.','.']; cfg.layout = 'CTF151.lay'; cfg.contournum = 0; cfg.markersymbol = '.'; cfg.alpha = 0.05; cfg.parameter='stat'; cfg.zlim<http://www.mathworks.com/access/helpdesk/help/techdoc/ref/zlim.html> = [-5 5]; ft_clusterplot(cfg,stat); Any input will be very helpful. Thanks. Rajat


Tzvetan Popov - 2015-08-07 15:15:45 +0200

Transmitting file data. Committed revision 10573


Robert Oostenveld - 2015-08-19 15:55:29 +0200

hmm, I missed this one on bugzilla. I made some changes and replied some days back on the fieldtrip mailing list. See below for a copy of my email. I do believe that it is resolved by now. ------------------------------------------------ On 17 Aug 2015, at 15:20, Robert Oostenveld wrote: Hi Rajat and Stephen Please see my inline reply below. On 06 Aug 2015, at 16:32, Rajat Thomas wrote: I followed the tutorial on http://www.fieldtriptoolbox.org/tutorial/eventrelatedstatistics?s[]=cluster&s[]=permutation at the very end, I wanted to do the ft_clusterplot but then I did not get topoplots as a function of time as in the tutorial and instead just got one plot. Is there something wrong in the way the parameters are set in the tutorial. The code for ft_clusterplot was recently extended to be able to handle more types of data, but apparently it broke for the existing type of data. I have fixed it (see https://code.google.com/p/fieldtrip/source/detail?r=10603), it now supports chan, chan_time, chan_freq and chan_freq_time (but only if either time or freq has length 1). The fixed version is available from github or svn, or this evening on ftp. On 07 Aug 2015, at 16:43, Stephen Politzer-Ahles wrote: Also, is it just me or is http://www.fieldtriptoolbox.org/tutorial/eventrelatedstatistics#permutation_test_based_on_cluster_statistics essentially duplicating (with what looks like a more recent example and code) what's in http://www.fieldtriptoolbox.org/tutorial/cluster_permutation_timelock ? Would it be worthwhile to reconcile these two (and maybe replace one with a link to the other, so they don't get out of sync again)? Content-wise they are similar, but we use the eventrelatedstatistics tutorial in training settings (e.g. workshops) as gentle introduction into statistics in general with only towards the end the clustering, whereas cluster_permutation_timelock goes more in depth. So they serve different goals. Since the code should now be working again for the 1st, I hope it also works for the 2nd. best regards, Robert


Robert Oostenveld - 2019-08-10 12:31:15 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on https://github.com/fieldtrip/fieldtrip/issues.