<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Dennis,<span class=""><br class="">
Thank you, this is the script I’ve been working from. The problem I am having though, is that as f-stats are &gt;0, they do not indicate which group is larger than the other, which is what I would like to know. I have tried to use scipy.stats.ttest_ind&nbsp;but I get
 this error:<br class="">
</span><span class="">ValueError: could not broadcast input array from shape (1000) into shape (614520)<br class="">
</span><span class=""><br class="">
</span>
<div class="">The command is:</div>
<div class="">&nbsp;T_obs, clusters, cluster_p_values, H0 = clu =\</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>spatio_temporal_cluster_test(all_data, connectivity=connectivity, n_jobs=2, stat_fun= scipy.stats.ttest_ind)</div>
<div class=""><br class="">
</div>
<div class="">all_data is 2 lists (2 groups) of 16 and 19 participants, with 30 time points of 20484 vertices for each participant.</div>
<div class=""><br class="">
</div>
<div class="">I hope that makes sense (and there is a possible work around!). Thanks again for you help,</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Talitha&nbsp;</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
</div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<br class="">
On 12 Jun 2017, at 05:33, Denis-Alexander Engemann &lt;<a href="mailto:denis.engemann@gmail.com" class="">denis.engemann@gmail.com</a>&gt; wrote:</div>
</div>
</div>
</div>
</div>
<div><br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Hi Talitha,
<div class=""><br class="">
</div>
<div class="">you can run the permutation clustering with a wide array of contrasts. This might be what you are looking for:</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://martinos.org/mne/dev/auto_tutorials/plot_stats_cluster_spatio_temporal_2samp.html" class="">http://martinos.org/mne/dev/auto_tutorials/plot_stats_cluster_spatio_temporal_2samp.html</a><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I hope this helps,</div>
<div class="">Denis</div>
<div class=""><br class="">
<div class="gmail_quote">
<div dir="ltr" class="">On Sun, Jun 11, 2017 at 12:00 PM Talitha Ford &lt;<a href="mailto:tcford@swin.edu.au" class="">tcford@swin.edu.au</a>&gt; wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear all,<br class="">
<br class="">
Similar to conducing a pair samples t-test on source data using spatio-temporal clustering, allowing the visualisation of clusters where condition A &gt; condition B and vice versa, is it possible to run an independent samples t-test to visualise differences between
 two groups? The 2 samples permutation tests currently available are limited in that they plot F statistics that don’t give a direction of the difference between the groups. Basically, is it possible to identify clusters that differ significantly between the
 groups, as well as identify/visualise the direction in which they differ?<br class="">
<br class="">
I am currently attempting to extract the cluster values for each participant to get an overall mean for each vertex within the cluster to compare between groups, but this seems very inefficient.<br class="">
<br class="">
Cheers,<br class="">
Talitha<br class="">
<br class="">
_______________________________________________<br class="">
Mne_analysis mailing list<br class="">
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank" class="">Mne_analysis@nmr.mgh.harvard.edu</a><br class="">
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank" class="">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br class="">
<br class="">
<br class="">
The information in this e-mail is intended only for the person to whom it is<br class="">
addressed. If you believe this e-mail was sent to you in error and the e-mail<br class="">
contains patient information, please contact the Partners Compliance HelpLine at<br class="">
<a href="http://www.partners.org/complianceline" rel="noreferrer" target="_blank" class="">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br class="">
but does not contain patient information, please contact the sender and properly<br class="">
dispose of the e-mail.<br class="">
</blockquote>
</div>
</div>
</div>
_______________________________________________<br class="">
Mne_analysis mailing list<br class="">
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" class="">Mne_analysis@nmr.mgh.harvard.edu</a><br class="">
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis<br class="">
<br class="">
<br class="">
The information in this e-mail is intended only for the person to whom it is<br class="">
addressed. If you believe this e-mail was sent to you in error and the e-mail<br class="">
contains patient information, please contact the Partners Compliance HelpLine at<br class="">
http://www.partners.org/complianceline . If the e-mail was sent to you in error<br class="">
but does not contain patient information, please contact the sender and properly<br class="">
dispose of the e-mail.<br class="">
</div>
</div>
<br class="">
</div>
</body>
</html>