[Mne_analysis] spatio_temporal_cluster_1samp_test

Emma Chen emma.chen.w at nyu.edu
Wed Jan 25 00:55:23 EST 2017
Search archives:

Hi Eric,

Thanks for your help. Unfortunately, the problem is still there using your
code defining the occipital and temporal vertices.

stc_Ocp_lh.plot() looks perfect though.

Then it's possible that spatio_temporal_cluster_1samp_test is not correctly
restricted within the selected region, as you've doubted.

I will open an MNE GitHub issue soon.

Thanks,
Emma



On Tue, Jan 24, 2017 at 6:32 PM, Eric Larson <larson.eric.d at gmail.com>
wrote:

> 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
>
>
> _______________________________________________
> Mne_analysis mailing list
> 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.
>
>


-- 
------
Emma(Wei) Chen, Ph.D.
Objects and Knowledge Laboratory
New York University Abu Dhabi
PO Box 129188
Abu Dhabi, United Arab Emirates
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20170125/fbba1cb0/attachment.html 


More information about the Mne_analysis mailing list