Dear Arno and eeglablist,<br><br>Once the ERSP condition differences are plotted, is there also a way to mask the difference plot with the significant values (e.g. p<0.05 FDR corrected)?<br><br>Thanks,<br><br>Burcu<br><br>

<div class="gmail_quote">On Mon, Feb 25, 2013 at 9:07 PM, Arnaud Delorme <span dir="ltr"><<a href="mailto:arno@ucsd.edu" target="_blank">arno@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word">Dear Pete,<div><br></div><div>something like this could help for single channels</div><div><br></div><div><div><div><div>[STUDY ersp times freqs] = std_erspplot(STUDY,ALLEEG, 'channels',{'OZ'});</div>

</div><div>erspDiff = ersp{2}-ersp{1};</div><div>erspDiff = mean(erspDiff, 4); % average across subjects</div><div>figure; tftopo(erspDiff, times, freqs);</div></div></div><div><br></div><div>For scalp topographies</div>
<div>
<br></div><div><div><div>chanlocs = eeg_mergelocs(ALLEEG.chanlocs);</div><div>[STUDY ersp times freqs] = std_erspplot(STUDY,ALLEEG, 'channels',{ chanlocs.labels }, 'topotime', [200 400], 'topofreq', [8 12]);</div>

</div><div>erspDiff = ersp{2}-ersp{1};</div><div>erspDiff = mean(erspDiff, 4);</div><div>figure; topoplot(erspDiff, chanlocs);</div></div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><div class="h5">
<div>
<br><div><div>On 25 Feb 2013, at 18:39, Makoto Miyakoshi wrote:</div><br><blockquote type="cite"><div><span style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">Dear Pete,</span></div><div>

<span style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif"><br>

</span></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14.285714149475098px">This is what I wrote 5 days ago for a similar question to the list. I hope this helps.</span></font></div><div>



<font color="#222222" face="arial, sans-serif"><span style="font-size:14.285714149475098px"><br></span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14.285714149475098px">%%%%%%%%%%%%%%%%%%%%</span></font></div>



<div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">If you don't mind doing a little hack here is description of how to do it. Here I show you the case of <span style="background-color:rgb(255,255,204)">ICA</span>-based clustering, not channel, but they should be more or less the same I guess (I hope).</div>



<div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">

1. Plot 'Edit/plot clusters.'</div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">2. Show all ERSPs.</div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">



3. Close it by pressing 'ok'. This updates your STUDY.</div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">4. You should be able to find STUDY.cluster(1,x).<span style="background-color:rgb(255,255,204)">icaersp</span>which is a cell that contains group x condition data (each of them have the size of frequency x timepoint).</div>



<div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">5. You select pick them up to calculate subtraction. You can also find frequency and time scales there.</div>

<div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">6. FYI to plot time-frequency plot use 'imagesc(); axis xy'.</div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">



<br></div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">Sorry I can't provide exactly matched information. If you find this method does not help much let me know.</div>

<div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">%%%%%%%%%%%%%%%%%</div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">

<br></div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">Maybe I should write a little plug-in for this. Sorry for this apparent inconvenience.</div>

<div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:14.285714149475098px;font-family:arial,sans-serif">

Makoto </div><br><div class="gmail_quote">2013/2/25 Pete Manza <span dir="ltr"><<a href="mailto:pete.manza@gmail.com" target="_blank">pete.manza@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="ltr"><div><div>Hello all,<br><br>I know there have been several posts on this but I haven't been able to make sense of how to proceed with my own code, as I'm not an experienced MATLAB user.  <br><br></div>




I was wondering if anyone would be willing to share some code for plotting the ERSP subtraction of conditions (i.e., Condition A - Condition B): at the single channel level and if possible, for scalp maps of the difference also.  (And, if it's necessary, code for precomputing the difference -- do you have to precompute the difference first in order to plot it?  There was some disagreement in one of the older threads I had seen.) <br>




<br>I'm working within a STUDY design.  I'm not using ICA-based clusters, just channels.<br><br></div>Thanks very much for the help!<span><font color="#888888"><br>Pete Manza<br>Stony Brook University<br>

</font></span></div>
<br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all">

<div><br></div>

-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>

For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu" target="_blank">eeglablist-request@sccn.ucsd.edu</a></blockquote></div><br></div></div></div>

</div><br>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.edu</a><br></blockquote></div><br><br clear="all"><br>-- <br>Burcu Aysen Urgen, PhD candidate<br>

Department of Cognitive Science<br>University of California, San Diego<br><br>Email: <a href="mailto:burgen@cogsci.ucsd.edu" target="_blank">burgen@cogsci.ucsd.edu</a><br><br>