<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr">It&#39;s probably worth searching something like &quot;cluster correlations&quot; on MNE&#39;s Discourse forum, this is the first result for example (but there are probably other relevant ones):<div><br></div><div><a href="https://secure-web.cisco.com/1Wv3G9Thqu_oLCxyi15yhRqKEe3lE-vDkD1DcSXJFf1N4Ap6HFFqdoWUkiMqUWQZAPe4DJedmfVzM8pXpiJ_E8EY3KSDyCHNKwalczZkkA5m-plWWyaFskBtHtG999stg5omav3WcErdUrrLMjxH3H8nVmFEivD8oSPS6EjQcRVTvreBUcku76sA3uc3yzaajojS6lsI5uix_eY9wyuTcUznyVcr5-ntAtJ2IqUD9Edre0ergOMfelgMaDh6P2WcLo9Vh_8TnBhJSX8NY6MguiM08TXwD1o122Tp9EALU7ZPTVExHvucVNnAEcVatD4xGAf27cXht37pJmtY6lg4bnQ/https%3A%2F%2Fmne.discourse.group%2Ft%2Fcluster-based-correlations-in-mne%2F1508"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mne.discourse.group/t/cluster-based-correlations-in-mne/1508</a><br></div><div><br></div><div>Eric<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 6, 2023 at 6:00 AM Xia Tao &lt;<a href="mailto:psytao18@connect.hku.hk">psytao18@connect.hku.hk</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-2191724872675439223">




<div dir="ltr"><p><span style="padding:3px 10px;border-radius:5px;color:rgb(255,255,255);font-weight:bold;display:inline-block;background-color:rgb(255,0,0)">        External Email - Use Caution        </span></p><p></p>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-size:12pt">Dear MNE users,</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-size:12pt"><br>
</span></div>
<div>I am trying to explore the relationship between my behavioral outcome and sigma power at all time points. I attempted to conduct a permutation cluster test using Pearson correlation as my statistic, but I encountered
 an error: TypeError: No loop matching the specified signature and casting was found for ufunc add.</div>
<div><br>
</div>
<div>If anyone has encountered this issue and knows how to resolve it, I would greatly appreciate your help.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Here is the code and error in detail:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<span style="font-size:12pt;color:rgb(66,66,66);background-color:rgb(255,255,255)">def statistic(x, y):</span><br>
<span style="font-size:12pt;color:rgb(66,66,66);background-color:rgb(255,255,255)">    return pearsonr(x,
 y).statistic</span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<div><span style="font-size:12pt;color:rgb(66,66,66);background-color:rgb(255,255,255)">c_obs,
 clusters_c, cluster_p_values, H0 = \</span></div>
<div><span style="font-size:12pt;color:rgb(66,66,66);background-color:rgb(255,255,255)"> 
   permutation_cluster_test([sigma,behavioral],tail=0,threshold=0.05,stat_fun=statistic,n_jobs=-1,n_permutations=1000)#competition vs noncompetition</span></div>
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
error:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<img style="max-width: 100%;" size="182451" src="cid:1862732a835cb971f161"></div>
<div>Thank you,</div>
Tao
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<div></div>
<div><br>
</div>
<div><br>
</div>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-2191724872675439223Signature">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="margin:0px;text-align:start;background-color:rgb(255,255,255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica,Arial,sans-serif;margin:0px"><br>
</span></font></span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
</div>
</div>

_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://secure-web.cisco.com/1UjXhlGpYe7yfAo_XNJzAzd3DS9wp3WH51M4nZyG1BAoIfFliPiknaQJunAEJzzNgnXBY2PeajGINS-VBUQqu-uXubDiwd5Q-rxCeiMi6tu9z-26U0QB_1o-31y-PooWl9JR71esePo0VOEaO-ntEU0b29mCzH8fDRVxLZMZkVo5fZviIxQYHp1SyVSgW7eR44YX-Blu7RELj4p625CNbYbmg8DmRU0MnRQW7LR0dzVrHDx1aNEKWtWeEVz-aL_JXfmLZB_o5f8VAiJkvhUNiwpdtBEVozFeIO7auIxb5dnnOxTcl1tfadg3fFDXlbI6sNWcipwxnjeFj5QDUB77XQQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Fmne_analysis" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
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 Mass General Brigham Compliance HelpLine at <a href="https://secure-web.cisco.com/1oYkB70EVUJVu1qrmwyyre_nYKeE1LJrGqL9sZ7yvlH3ggywPdRjya3V8iyyOKOMwiP5ePFaT9LLZsMxHkz4eCVLpzodqh163KnGSskKOFgpjxL20VNWhASlmlFOjS3ss2otQEShtrLL91b5EbCPtyjfbHqpfuTKI7ylhMNGIZe1M6jrcw0TY3kacy1imSVpWs1Kgnt5mtoZQLPuYchxDdPIm8e1p6ndKm6jLrvjxubueVmEnB7Cv1LqA6YBCxHTe20e3fLZiB4SlsKQM00ZERSYnyqjc-Tpc5PIK0q9m1eUrb6cOYIMJxv0S1BVV_vbbxfyLKFYsdKoL7YsUE3fi7w/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://www.massgeneralbrigham.org/complianceline</a> &lt;<a href="https://secure-web.cisco.com/1oYkB70EVUJVu1qrmwyyre_nYKeE1LJrGqL9sZ7yvlH3ggywPdRjya3V8iyyOKOMwiP5ePFaT9LLZsMxHkz4eCVLpzodqh163KnGSskKOFgpjxL20VNWhASlmlFOjS3ss2otQEShtrLL91b5EbCPtyjfbHqpfuTKI7ylhMNGIZe1M6jrcw0TY3kacy1imSVpWs1Kgnt5mtoZQLPuYchxDdPIm8e1p6ndKm6jLrvjxubueVmEnB7Cv1LqA6YBCxHTe20e3fLZiB4SlsKQM00ZERSYnyqjc-Tpc5PIK0q9m1eUrb6cOYIMJxv0S1BVV_vbbxfyLKFYsdKoL7YsUE3fi7w/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline" rel="noreferrer" target="_blank"><font color="red"><b>MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be</b></font> https://www.massgeneralbrigham.org/complianceline</a>&gt; .<br>
</div></blockquote></div>