[Mne_analysis] spatio_temporal_cluster_1samp_test
Eric Larson
larson.eric.d at gmail.com
Tue Jan 24 09:32:07 EST 2017
>
> It's likely that the way I define Exclude_indices is wrong. It would be
> greatly appreciated if anyone can help me correct this.
>
Yeah, debugging indexing errors is a pain. This is what I might have done
instead, you could compare to what you have:
keep_stc = stc.in_label(label_lh[3] + label_lh[5] + label_rh[6] +
label_rh[8])
exclude_lh = ~np.in1d(All_vertices_lh, keep_stc.vertices[0])
exclude_rh = ~np.in1d(All_vertices_rh, keep_stc.vertices[1])
spatial_exclude = np.concatenate([np.where(exclude_lh)[0],
np.where(exclude_rh)[0] + len(All_vertices_lh))
I'd also recommend making use of e.g. stc_Ocp_lh.plot() along the way
verify that all of the restrictions work properly.
If mine doesn't work either (with any small tweaks necessary to get it
actually working), we might very well have a bug at the MNE end. Could you
try to replicate the issue with the sample dataset and open an MNE GitHub
issue with a minimal example (SSCCE <http://sscce.org/>)?
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170124/8c956a31/attachment.html
More information about the Mne_analysis
mailing list