[Mne_analysis] Spatio-temporal clusters permutation test

Stillerman, Benjamin BSTILLERMAN at partners.org
Thu Sep 18 17:01:04 EDT 2014
Search archives:

Ah yes, it appears that was the problem.
Thanks for the help,
Ben

On Sep 16, 2014, at 7:24 AM, Eric Larson <larson.eric.d at gmail.com<mailto:larson.eric.d at gmail.com>> wrote:

Have you tried doing just two time points? This should only take about twice as long as the spatial case. Then try three, four, etc. -- it could be that you have far too many times points (e.g. if n_times=1000, then 15 minutes * 1000 time points is more than 10 days). If that's the case, you could benefit from choosing a stricter initial t-value threshold, smaller source space, or temporally downsampling.

Also, you should probably use the function `ttest_1samp_no_p` -- it is quite a bit faster than the `scipy` equivalent because our version does not calculate the corresponding p values (which is very slow).

Eric


On Mon, Sep 15, 2014 at 10:42 AM, Stillerman, Benjamin <BSTILLERMAN at partners.org<mailto:BSTILLERMAN at partners.org>> wrote:
Hello,

I'm trying to run the non-parametric permutation test using the spatio_temporal_cluster_1samp_test function. I'm first setting the connectivity with:
connectivity = spatio_temporal_tris_connectivity(grade_to_tris(5), n_times)
The call is to the stats function is:
T_obs, clusters, cluster_pv, H0 = mem.cache(spatio_temporal_cluster_1samp_test,
                                                ignore=['n_jobs'])(X1 - X2,
                                                threshold=t,
                                                n_permutations=n_permutations,
                                                tail=0,
                                                stat_fun=stat_fun,
                                                connectivity=connectivity,
                                                n_jobs=n_jobs, seed=0)
(Where stat_fun is the scipy t-test: scipy.ttest_1samp.)

When this line is encountered, it appears to stall forever. It's been stuck on this line for several days. When I run the analogous script for spatial clusters only (averaging over a time window), it works and executes in about 15 minutes. Any ideas?

Thank you,
Ben


_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto:Mne_analysis at nmr.mgh.harvard.edu>
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto:Mne_analysis at nmr.mgh.harvard.edu>
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140918/c2d54634/attachment.html 


More information about the Mne_analysis mailing list