<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0
        {mso-style-name:gmail-m_-8975964047182920878gmail-m_-8975460521388408673gmail-m_7438377151133083810gmail-br0;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-co2
        {mso-style-name:gmail-m_-8975964047182920878gmail-m_-8975460521388408673gmail-m_7438377151133083810gmail-co2;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.br0
        {mso-style-name:br0;}
span.co2
        {mso-style-name:co2;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Danielle<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">You can use your existing bins – you need to define your import file and the event types and  values.<o:p></o:p></span></p>
<pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">So first find out what those are using the code provided on the wiki page below e.g., something like<o:p></o:p></span></pre>
<pre><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></pre>
<pre>events = ft_read_event( EEGLABFILE, 'header', hdr );<o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Then you need to import your data to field trip using something like the following – note that this was data pre-processed and imported
 from BVA but steps will be similar:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg = [];</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg.dataset = filename;</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg.trialdef.eventtype =
</span><span style="font-size:13.0pt;font-family:"Courier New";color:#A020F0">'Stimulus'</span><span style="font-size:13.0pt;font-family:"Courier New";color:black">; %[this will change depending on what your event types actually are]</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg.trialdef.eventvalue =
</span><span style="font-size:13.0pt;font-family:"Courier New";color:#A020F0">'S120’; %[that was mine, obviously yours will be different]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg.trialdef.prestim    = 2;
</span><span style="font-size:13.0pt;font-family:"Courier New";color:forestgreen">%seconds - import as much around your event marker as you have/need
</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg.trialdef.poststim   = 0.5; %ditto             <o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">cfg = ft_definetrial(cfg); %[this is just using the standard trialfun but you might want to write your own]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:13.0pt;font-family:"Courier New";color:black">MypreProcData = ft_preprocessing(cfg);</span><span style="font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hope this helps.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#757B80">---------------------------------------------------------------------</span></b><span style="font-family:"Calibri",sans-serif;color:black"><br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#757B80">Poppy Watson<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> fieldtrip <fieldtrip-bounces@science.ru.nl>
<b>On Behalf Of </b>Taylor, Danielle<br>
<b>Sent:</b> Tuesday, 21 May 2019 6:25 AM<br>
<b>To:</b> FieldTrip discussion list <fieldtrip@science.ru.nl><br>
<b>Subject:</b> Re: [FieldTrip] Beginner in FieldTrip: EEGLab to FieldTrip + SSVEP Analysis<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">Thank you very much Dr. Delorme,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">I appreciate the information you shared, and have referenced the EEGLab website for converting data to FieldTrip.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">However, I am still left with a couple questions after referencing the website. Is it okay to import data to FieldTrip that has already been assigned bins in EEGLab or would I need to import the
 data from back a few steps and then assign bins using EEGLab? In addition, I am still unclear on how to evaluate specific windows for evaluating the SSVEP (400-700 ms, 700-1000, 1000-2000 and 2000-3000).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">Again, apologies if these questions appear ill-informed. I have read several posts from the forum and watched/read several tutorials, and I am not quite sure how to begin.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">Thank you again!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif;color:black">Danielle Taylor, M.S.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif;color:black">Doctoral Candidate,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif;color:black">Clinical Psychology</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif;color:black">Oklahoma State University</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;color:#500050"> </span><span style="color:#500050"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><u><span style="font-size:7.5pt;font-family:"Georgia",serif;color:#999999">Breach of Confidentiality or Accidental Breach of Confidentiality:</span></u></i><i><span style="font-size:7.5pt;font-family:"Georgia",serif;color:#999999"> This
 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you have received this email in error please notify the sender. This message contains confidential information
 and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute, or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from
 your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.</span></i><span style="color:#500050"><o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Mon, May 20, 2019 at 11:32 AM Arnaud Delorme <<a href="mailto:arno@ucsd.edu" target="_blank">arno@ucsd.edu</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Dear Danielle, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">check out these two wiki pages.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://sccn.ucsd.edu/wiki/EEGLAB_and_Fieldtrip#Converting_between_EEGLAB_and_Fieldtrip_data_structures" target="_blank">https://sccn.ucsd.edu/wiki/EEGLAB_and_Fieldtrip#Converting_between_EEGLAB_and_Fieldtrip_data_structures</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="https://sccn.ucsd.edu/wiki/A08:_DIPFIT#Advanced_source_reconstruction_using_DIPFIT.2FFieldtrip" target="_blank">https://sccn.ucsd.edu/wiki/A08:_DIPFIT#Advanced_source_reconstruction_using_DIPFIT.2FFieldtrip</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Best wishes,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Arno<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On May 20, 2019, at 9:03 AM, Taylor, Danielle <<a href="mailto:danielle.taylor@okstate.edu" target="_blank">danielle.taylor@okstate.edu</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">Hello FieldTrippers,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">My name is Danielle Taylor and I am a graduate student at Oklahoma State University. I am currently trying to learn to use FieldTrip, and I am quite the novice. I am, however, quite familiar with
 EEGLab, and have previously used Matlab to run EEGLab processes.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"> I am currently processing data for a study in which I am evaluating an ERP (the LPP) and the SSVEP. I have compiled my ERPs, and therefore hoped to import my EEGLab data to Fieldtrip and complete
 SSVEP analyses.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">My questions are quite broad. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">1) Can I import EEGLab data that has been processed through artifact rejection (I have used filters, ICA, have data binned and epoched, and have run automated artifact rejection routines)? Is it
 possible to import from this point and then complete fourier transformation in fieldtrip? If so, how? I have seen that one can use eeglab2fieldtrip, but do I need other specifications in my code? Alternatively, the EEGLab website recommends this code: <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New";background:#F9F9F9">hdr = ft_read_header</span><span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0"><span style="font-family:"Courier New";color:#008800">(</span></span><span style="font-family:"Courier New";background:#F9F9F9">
 EEGLABFILE </span><span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0"><span style="font-family:"Courier New";color:#008800">)</span></span><span style="font-family:"Courier New";background:#F9F9F9">; </span><span style="font-family:"Georgia",serif"><o:p></o:p></span></p>
</div>
<pre style="line-height:14.4pt;background:#F9F9F9;vertical-align:top;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal"><span style="font-size:12.0pt">data = ft_read_data<span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0"><span style="color:#008800">(</span></span> EEGLABFILE, <span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-co2"><span style="color:#A020F0">'header'</span></span>, hdr <span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0"><span style="color:#008800">)</span></span>; <o:p></o:p></span></pre>
<pre style="line-height:14.4pt;background:#F9F9F9;vertical-align:top"><span style="font-size:12.0pt">events = ft_read_event<span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0"><span style="color:#008800">(</span></span> EEGLABFILE, <span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-co2"><span style="color:#A020F0">'header'</span></span>, hdr <span class="gmail-m-8975964047182920878gmail-m-8975460521388408673gmail-m7438377151133083810gmail-br0"><span style="color:#008800">)</span></span>;<o:p></o:p></span></pre>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">Does it matter which method I use?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">2) I am evaluating the SSVEP in 4 separate windows that are the same measurements as my ERP (400-700ms, 700-1000, 1000-2000 and 2000-3000). I have seen samples of code that use a moving window,
 but not that have used specific windows such as this. <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">I apologize if these questions are too vague, but any help or even a sample script would be much appreciated. Thank you very much for your assistance in advance!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia",serif"><o:p> </o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif">Danielle Taylor, M.S.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif">Doctoral Candidate,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif">Clinical Psychology</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;font-family:"Georgia",serif">Oklahoma State University</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.5pt;color:#500050"> </span><span style="color:#500050"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><i><u><span style="font-size:7.5pt;font-family:"Georgia",serif;color:#999999">Breach of Confidentiality or Accidental Breach of Confidentiality:</span></u></i><i><span style="font-size:7.5pt;font-family:"Georgia",serif;color:#999999"> This
 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you have received this email in error please notify the sender. This message contains confidential information
 and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute, or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete this email from
 your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.</span></i><span style="color:#500050"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</body>
</html>