<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;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
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;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1903832420;
mso-list-type:hybrid;
mso-list-template-ids:1895093902 68419599 68419609 68419611 68419599 68419609 68419611 68419599 68419609 68419611;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I just submitted a pull request to read Nicolet/Nervus files with fieldtrip (<a href="https://github.com/fieldtrip/fieldtrip/pull/186">https://github.com/fieldtrip/fieldtrip/pull/186</a>) based on Joost Wagenaar’s code from <a href="https://github.com/ieeg-portal/Nicolet-Reader">https://github.com/ieeg-portal/Nicolet-Reader</a> with some updates from me. Nicolet/Nervus is popular for clinical EEG. The chief advantage is that it reads the file without depending on any external (vendor-supplied) DLLs or conversion to EDF.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have two questions that concern EEGLAB and fieldtrip integration:<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US>How can I make EEGLAB know that the Nervus/Nicolet EEG file read with fieldtrip was originally recorded with a common reference (Fp1-REF, Fp2-REF)? As far as I know, almost all clinical EEG is recorded with REF in this way. There is an example in ft_read_header.m line 299 for the ‘Anywave’ format, which says “hdr.reference = orig.reference(:);” but apparently EEGLAB doesn’t use this field. In fieldtrip2eeglab.m there is no functionality to say that this is a common reference. There are many references in the EEGLAB code similar to EEG.ref = ‘common’ but I can’t quite make heads or tails of it.<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US>How can I make EEGLAB know the original filename of the Nervus/Nicolet EEG file read with fieldtrip? In fieldtrip2eeglab.m line 25 it simply says “EEG.filename = '';”. Could I submit a pull request to EEGLAB with “EEG.filename = hdr.filename;” (with a check to see if the filename field exists?)<o:p></o:p></span></p><p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span lang=EN-US><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'> </span></span></span><![endif]><span lang=EN-US>There are often breaks in clinical EEG recordings (e.g. adjusting the photic lamps, instructing in hyperventilation etc.). Currently the Nicolet/Nervus code handles this by creating events of type ‘boundary’, which should make it work for EEGLAB. I hope I don’t have to use the “trials” functionality of fieldtrip to indicate discontinuities. Will fieldtrip understand events of type ‘boundary’?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:NO-BOK'>Yours sincerely,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:NO-BOK'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:NO-BOK'>Jan Brogger<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Clinical neurophysiologist/software developer, MD PhD<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Bergen, Norway<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>