<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div class="gmail_default" style="font-family:georgia,serif">Hello Fieldtrippers,</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
</div>
<div class="gmail_default" style="font-family:georgia,serif">My name is Danielle Taylor, and I have been developing a script that reads in data which have been preprocessed using EEGlab, in order to run a frequency analysis.</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
</div>
<div class="gmail_default" style="font-family:georgia,serif">I've been successful at compiling an ERP thus far in FieldTrip. However, when I attempted to run a frequency analysis on a particular channel (Oz), it turned out that I could not select this channel,
as channels had never been assigned when loading my EEGlab file.</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
</div>
<div class="gmail_default" style="font-family:georgia,serif">Therefore, I am reformatting my Fieldtrip preprocessing script, but have run into an error. I can't seem to find any record of others running into this error in the discussion either, so I'm not quite
sure how to move forward. My guess is that because the file is no longer a bdf (biosemi file), but instead a .set (from eeglab), that there might be problems assigning channels, but that is purely a guess.</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
</div>
<div class="gmail_default" style="font-family:georgia,serif">The error I get is:</div>
<div class="gmail_default" style="font-family:georgia,serif">Error using load<br>
Unknown text on line number 1 of ASCII file C:\Users\danie\fieldtrip\template\layout\biosemi32.lay<br>
"Fp1".<br>
</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
</div>
<div class="gmail_default" style="font-family:georgia,serif">Here is the script I have so far:</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
path_ft = 'C:/Users/danie/fieldtrip';<br>
path_data = 'C:/Users/danie/OneDrive - Oklahoma A and M System/LEAP/ALE/EEG/SSVEP/';<br>
<br>
addpath(path_ft);<br>
ft_defaults;<br>
<br>
subjects = {'001' '002' '003' '004' '005' '006' '007' '008' '009' '010'...<br>
'012' '013' '014' '015' '016' '017' '018' '021' '022' '023'...<br>
'025' '026' '027' '029' '031' '032' '033' '035' '036' '037'...<br>
'038' '040' '041' '043' '044' '045' '047' '049' '050' '051'...<br>
'052' '053' '054' '055' '056' '057' '058' '059' '060' '061'...<br>
'062' '063' '064' '065' '066' '067' '068' '069' '070' '071'...<br>
'072' '073' '074' '075' '076'};<br>
<br>
load (fullfile(path_ft,'template','layout','biosemi32.lay'));<br>
biosemi32_layout = ft_prepare_layout(cfg);<br>
<br>
for i=1:length(subjects)<br>
<br>
ftype = 'eeglab_set';<br>
datapath = strcat(path_data, subjects{i});<br>
dataset = fullfile(datapath, strcat(subjects{i},'.set'));<br>
<br>
cfg = [];<br>
cfg.dataset = dataset;<br>
cfg.headerfile = dataset;<br>
cfg.dataformat = ftype;<br>
cfg.headerformat = ftype;<br>
<br>
cfg = [];<br>
cfg.dataset = dataset;<br>
cfg.trialfun = 'ft_trialfun_general';<br>
cfg.trialdef.eventtype = 'trigger'; <br>
cfg.trialdef.eventvalue = 'B3(5)'; <br>
cfg.trialdef.prestim = .2;<br>
cfg.trialdef.poststim = 3; <br>
cfg = ft_definetrial(cfg); </div>
<div class="gmail_default" style="font-family:georgia,serif"> trl = cfg.trl;<br>
<br>
cfg.dataset = dataset;<br>
cfg.channel = biosemi32_layout;<br>
cfg.outputfile = fullfile(datapath, 'dataPNU');<br>
ft_preprocessing(cfg);<br>
end<br>
<br>
</div>
<div class="gmail_default" style="font-family:georgia,serif">Any assistance would be greatly appreciated!</div>
<div class="gmail_default" style="font-family:georgia,serif">Thank you all,</div>
<div class="gmail_default" style="font-family:georgia,serif"><br>
</div>
<div>
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<p class="MsoNormal"><font color="#000000"><span style="font-size:9.5pt;font-family:Georgia,serif">Danielle Taylor, M.S.</span><span style="font-size:9.5pt"><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font color="#000000"><span style="font-size:9.5pt;font-family:Georgia,serif">Doctoral Candidate,</span><span style="font-size:9.5pt"><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><font color="#000000"><span style="font-size:9.5pt;font-family:Georgia,serif">Clinical Psychology</span><span style="font-size:9.5pt"><u></u><u></u></span></font></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:Georgia,serif"><font color="#000000">Oklahoma State University</font></span><span style="color:rgb(80,0,80);font-size:9.5pt"><u></u><u></u></span></p>
</div>
<div style="color:rgb(80,0,80)">
<p class="MsoNormal"><span style="font-size:9.5pt"><u></u> <u></u></span></p>
</div>
<p class="MsoNormal" style="color:rgb(80,0,80)"><i><u><span style="font-size:7.5pt;font-family:Georgia,serif;color:rgb(153,153,153)">Breach of Confidentiality or Accidental Breach of Confidentiality:</span></u></i><i><span style="font-size:7.5pt;font-family:Georgia,serif;color:rgb(153,153,153)"> 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></p>
</div>
</div>
</div>
</div>
</body>
</html>