<div dir="ltr">Dear Rich,<div><br></div><div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px">> Since I have continuous data only (no repeated epochs), does EEGLAB not recognize the data as an epoch and so determine epoch consistency = no based on that?</div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">Yes, that's true. If there is one epoch, it cannot be recognized as epoched.</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">> If so, would putting a copy of the 30 block data in the same file allow STUDY to see </span><span style="font-size:13.3333px">determine epoch consistency = yes.</span><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">No no, don't complicate the situation.</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">You just need to epoch all the trials into the same length. It should be done by a few cricks.</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">> Also, while the data seem to be pretty clean overall, there are some segments identified for rejection.  However, if I reject the data, the epochs will be of different lengths and then would EEGLAB  </span><span style="font-size:13.3333px">determine epoch consistency = no because of unequal epoch length?  Sort of a catch 22.</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">You have different types of conditions and multiple repetitions of it, let's say.</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">What you want to do is to make something like this:</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">Continuous data </span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">Extract epochs: extract condition A only</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">Save this condition A epoched data</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px">Go back to the Continuous data</span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><div style="font-size:13.3333px"><span style="font-size:13.3333px">Extract epochs: extract condition B only</span></div><div><div style="font-size:13.3333px"><span style="font-size:13.3333px">Save this condition B epoched data</span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">Go back to the Continuous data</span></div></div></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><div style="font-size:13.3333px"><span style="font-size:13.3333px">Extract epochs: extract condition C only</span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">...</span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">> I know that EEGLAB is designed with ERP in mind but I'm trying to figure out how to best use it for analyzing continuous data.</span><br></div><div style="font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">If you want to analyze your data as continuous, then you probably want to perform frequency analysis. In this case, you want to separate data into different .set files according to conditions. Use 'Select data' and enter the latency to crop data into blocks. You can then merge multiple segments into one big chunk and there you go.</span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">By the way, you want to run ICA on the continuous data BEFORE separate it into conditions. This is so that you can compare within-IC difference across conditions, which is more straightforward than running ICA on two saparate data (you'll have hard time identifying corresponding ICs then.)</span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">Good luck.</span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="font-size:13.3333px"><span style="font-size:13.3333px">Makoto</span></div></div></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div style="color:rgb(0,0,0);font-family:tahoma;font-size:13.3333px"><span style="font-size:13.3333px"><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 6:54 AM, Ingram, Richard E - ingramre <span dir="ltr"><<a href="mailto:ingramre@jmu.edu" target="_blank">ingramre@jmu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt">Hi all - I have a question about epoch consistency when using the STUDY feature.  I've seen 6 other posts on this but haven't seen a resolution.  Can anyone help?
<div><br>
</div>
<div>I have collected continuous data throughout an experimental session.  I wrote software to display stimuli, capture performance data, and send marker from software to EEG data stream.</div>
<div><br>
</div>
<div>The experiment structure has 8 30 second blocks per subject (120 blocks total).  (this is exploratory so subject N is low.)  I used EEGLAB epoch to extract the 30 sec from each block based on unique marker for a particular block.  So, for each subject,
 I have 15 30 sec blocks of continuous data.  All are 3840 frames (30 x 128 sampling).</div>
<div><br>
</div>
<div>I have tried several different iterations of setting up a STUDY but all say that epoch consistency is no.  I double checked allpnts etc as noted by Arno in another post and these parameters check out.  A couple of questions:</div>
<div><br>
</div>
<div>Since I have continuous data only (no repeated epochs), does EEGLAB not recognize the data as an epoch and so determine epoch consistency = no based on that?  If so, would putting a copy of the 30 block data in the same file allow STUDY to see <span style="font-size:13.3333px">determine
 epoch consistency = yes.</span></div>
<div><span style="font-size:13.3333px"><br>
</span></div>
<div><span style="font-size:13.3333px">Also, while the data seem to be pretty clean overall, there are some segments identified for rejection.  However, if I reject the data, the epochs will be of different lengths and then would EEGLAB  </span><span style="font-size:13.3333px">determine
 epoch consistency = no because of unequal epoch length?  Sort of a catch 22.</span></div>
<div><span style="font-size:13.3333px"><br>
</span></div>
<div><span style="font-size:13.3333px">I know that EEGLAB is designed with ERP in mind but I'm trying to figure out how to best use it for analyzing continuous data.</span></div>
<div><span style="font-size:13.3333px"><br>
</span></div>
<div><span style="font-size:13.3333px">Thanks for any and all advice.</span></div>
<div><span style="font-size:13.3333px"><br>
</span></div>
<div><span style="font-size:13.3333px">Rich<br>
</span>
<div style="font-family:'times new roman';color:rgb(0,0,0);font-size:16px">
<hr>
<div id="m_6020058263108611458gmail-m_6513650305985707335divRpF946958" style="direction:ltr"><font face="Tahoma" size="2" color="#000000"><b>From:</b> <a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@sccn.ucsd.e<wbr>du</a> [<a href="mailto:eeglablist-bounces@sccn.ucsd.edu" target="_blank">eeglablist-bounces@sccn.ucsd.<wbr>edu</a>] on behalf of Makoto Miyakoshi [<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</a>]<br>
<b>Sent:</b> Friday, March 18, 2016 3:32 AM<br>
<b>To:</b> Whitehead, Kimberley<br>
<b>Cc:</b> <a href="mailto:eeglablist@sccn.ucsd.edu" target="_blank">eeglablist@sccn.ucsd.edu</a><br>
<b>Subject:</b> Re: [Eeglablist] epochconsist treats files with only one epoch as a continuous file<br>
</font><br>
</div><div><div class="m_6020058263108611458gmail-h5">
<div></div>
<div>
<div dir="ltr">Dear Kim,
<div><br>
</div>
<div>Thank you for your suggestion. If you wish, would you please share your finding in EEGLAB Bugzilla as enhancement? </div>
<div><br>
</div>
<div><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__sccn.ucsd.edu_bugzilla_enter-5Fbug.cgi&d=BQMFaQ&c=eLbWYnpnzycBCgmb7vCI4uqNEB9RSjOdn_5nBEmmeq0&r=MNemh5cDBpfHugrLsdnWIQ&m=DLYGVpCNw1x2U8nCpCfUyVtrj3scQCzX3-d_6I8-r6w&s=SsINElwl-XLHZ0hl21YqnZj8gw0PVvHYbo6mVlsqkJ4&e=" target="_blank">https://sccn.ucsd.edu/bugzilla<wbr>/enter_bug.cgi</a><br>
</div>
<div><br>
</div>
<div>By the way I've encountered a similar situation. I learned that one cannot make a single epoch with EEGLAB. Unfortunately I forgot how I work around the issue (probably I repeated the epoch twice so that it is recognized as a one-time repeated two epochs?)</div>
<div><br>
</div>
<div>Makoto</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jan 20, 2016 at 4:46 PM, Whitehead, Kimberley <span dir="ltr">
<<a href="mailto:k.whitehead@ucl.ac.uk" target="_blank">k.whitehead@ucl.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div lang="EN-GB">
<div>
<p class="MsoNormal">Hello<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I wonder if anybody could please offer some advice on altering the eeg_checkset code so that it doesn’t automatically treat files with one epoch as continuous. I think the issue is here:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In eeg_checkset line 182:<u></u><u></u></p>
<p class="MsoNormal">case 'epochconsist', % test epoch consistency<u></u><u></u></p>
<p class="MsoNormal">                % ----------------------<u></u><u></u></p>
<p class="MsoNormal">                res = 'no';<u></u><u></u></p>
<p class="MsoNormal">                datasettype = unique_bc( [ EEG.trials ] );<u></u><u></u></p>
<p class="MsoNormal">                if datasettype(1) == 1 & length(datasettype) == 1, return; %<u></u><u></u></p>
<p class="MsoNormal">continuous data<u></u><u></u></p>
<p class="MsoNormal">                elseif datasettype(1) == 1,                        return; %<u></u><u></u></p>
<p class="MsoNormal">continuous and epoch data<u></u><u></u></p>
<p class="MsoNormal">                end;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The code says that if there is only 1 epoch, the file is continuous. This means<u></u><u></u></p>
<p class="MsoNormal">that if I try to include this file in a study in which most files have several<u></u><u></u></p>
<p class="MsoNormal">epochs, it says there is no epoch consistency and there is an error when I try<u></u><u></u></p>
<p class="MsoNormal">to do FFT analysis. However, the nature of my analysis means there are many<u></u><u></u></p>
<p class="MsoNormal">files with only 1 epoch. (My epochs are spontaneous transients in EEG which<u></u><u></u></p>
<p class="MsoNormal">I've zeropadded to make the same duration/same number of data points. I've<u></u><u></u></p>
<p class="MsoNormal">split them up by topography so it's common that in 1 file there may be just one<u></u><u></u></p>
<p class="MsoNormal">with, for example, a right occipital topography.)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks, Kim<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Eeglablist page: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__sccn.ucsd.edu_eeglab_eeglabmail.html&d=BQMFaQ&c=eLbWYnpnzycBCgmb7vCI4uqNEB9RSjOdn_5nBEmmeq0&r=MNemh5cDBpfHugrLsdnWIQ&m=DLYGVpCNw1x2U8nCpCfUyVtrj3scQCzX3-d_6I8-r6w&s=8OcnBiZTHFOWIlEN5WZ_1aL-yLur2SF6muyBVNkemIc&e=" rel="noreferrer" target="_blank">
http://sccn.ucsd.edu/eeglab/ee<wbr>glabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">
eeglablist-unsubscribe@sccn.uc<wbr>sd.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.e<wbr>du</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_6020058263108611458gmail-m_6513650305985707335gmail_signature">
<div dir="ltr">Makoto Miyakoshi<br>
Swartz Center for Computational Neuroscience<br>
Institute for Neural Computation, University of California San Diego<br>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_6020058263108611458gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div></div>