<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=iso-8859-1">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@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="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear Community, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My name is Luisa Roeder and I am a postdoc in Prof Joachim Hermsdoerfer’s lab at Technical University Munich. Currently, we are working on a grip force control project, and I am analysing combined EEG-EMG data.
<o:p></o:p></p>
<p class="MsoNormal">I hope my email is not too long; I have a few questions re importing data from EEGLAB to Fieldtrip.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have pre-processed the data in EEGLAB and would now like to import them into Fieldtrip. For this, I used ft_preprocessing with the details shown below. However, in the Fieldtrip structure I receive, I cannot seem to find any information
 on the events/triggers I had in the .set file.<o:p></o:p></p>
<p class="MsoNormal">Where do I find the event information that was saved in the eeglab (.set) file as EEG.event? Is it possible to also import this event information (i.e. their indices and type of event) into Fieldtrip, or do I need to save this information
 separately and then use ft_definetrial to re-create my events in fieldtrip? If this is the case, what would be the best way/structure and file format for saving the events from eeglab?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below are the details of my code and output:<o:p></o:p></p>
<p class="MsoNormal">cfg = []; cfg.dataset = 'data01_cond1.set'; ft_data1 = ft_preprocessing(cfg);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">and receive the output <o:p></o:p></p>
<p class="MsoNormal">ft_data1 = <o:p></o:p></p>
<p class="MsoNormal">  struct with fields:<o:p></o:p></p>
<p class="MsoNormal">           hdr: [1×1 struct]<o:p></o:p></p>
<p class="MsoNormal">         label: {61×1 cell}<o:p></o:p></p>
<p class="MsoNormal">          time: {[1×692901 double]}<o:p></o:p></p>
<p class="MsoNormal">         trial: {[61×692901 double]}<o:p></o:p></p>
<p class="MsoNormal">       fsample: 500<o:p></o:p></p>
<p class="MsoNormal">    sampleinfo: [1 692901]<o:p></o:p></p>
<p class="MsoNormal">          elec: [1×1 struct]<o:p></o:p></p>
<p class="MsoNormal">           cfg: [1×1 struct]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I noticed when I use <o:p></o:p></p>
<p class="MsoNormal">ft_data1 = eeglab2fieldtrip(EEG, ‘raw’);<o:p></o:p></p>
<p class="MsoNormal">with segmented (epoched) EEGLAB data, I receive some information on my trigger events I used for segmenting (in ft_data1.trialinfo), but this does not include the indices of the events (‘latency’ in EEG.event), nor the other types of events
 I had in EEGLAB in addition to the trigger I used for segmenting (also saved in EEG.event). In my case I have six different types of events in EEG.event which I would like to import into Fieldtrip.<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal">The output from eeglab2fieldtrip(EEG,’raw’) is<o:p></o:p></p>
<p class="MsoNormal">ft_data1 = <o:p></o:p></p>
<p class="MsoNormal">  struct with fields:<o:p></o:p></p>
<p class="MsoNormal">         elec: [1×1 struct]<o:p></o:p></p>
<p class="MsoNormal">      fsample: 500<o:p></o:p></p>
<p class="MsoNormal">        trial: {1×99 cell}<o:p></o:p></p>
<p class="MsoNormal">         time: {1×99 cell}<o:p></o:p></p>
<p class="MsoNormal">        label: {1×61 cell}<o:p></o:p></p>
<p class="MsoNormal">    trialinfo: [99×2 table]<o:p></o:p></p>
<p class="MsoNormal">          cfg: [1×1 struct]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In general, is it best to import continuous data into Fieldtrip or segmented data?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have another few questions re importing/book-keep the ICA results from EEGLAB once I import my data into Fieldtrip.
<o:p></o:p></p>
<p class="MsoNormal">Is it best to exclude ICs in EEGLAB, then back project onto channels and then export the clean channel data into Fieldtrip? How do I keep track of the rank/dimensionality of the clean data then? Should I additionally also export the ICA
 results via ft_ICdata = eeglab2fieldtrip(EEG, 'comp'); and save those results separately? In the EEGLAB tutorials it is recommended to only mark/flag the ICs but not to reject artefact ICs – if I do that, how do get this information across to Fieldtrip?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you for your help. <o:p></o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Luisa<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>