<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:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:바탕;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:굴림;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"맑은 고딕";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@맑은 고딕";}
@font-face
        {font-family:"\@바탕";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
        {font-family:"\@굴림";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:굴림;}
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:40.0pt;
        margin-bottom:.0001pt;
        mso-para-margin-top:0cm;
        mso-para-margin-right:0cm;
        mso-para-margin-bottom:0cm;
        mso-para-margin-left:4.0gd;
        mso-para-margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:굴림;}
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:굴림;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"맑은 고딕";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1102726125;
        mso-list-type:hybrid;
        mso-list-template-ids:1475346662 -197616760 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"\(%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:38.0pt;
        text-indent:-18.0pt;
        mso-ascii-font-family:"맑은 고딕";
        mso-fareast-font-family:"맑은 고딕";
        mso-hansi-font-family:"맑은 고딕";
        mso-bidi-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:60.0pt;
        text-indent:-20.0pt;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:80.0pt;
        text-indent:-20.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:100.0pt;
        text-indent:-20.0pt;}
@list l0:level5
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:120.0pt;
        text-indent:-20.0pt;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:140.0pt;
        text-indent:-20.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:160.0pt;
        text-indent:-20.0pt;}
@list l0:level8
        {mso-level-number-format:alpha-upper;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:180.0pt;
        text-indent:-20.0pt;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        margin-left:200.0pt;
        text-indent:-20.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=KO link=blue vlink=purple><div class=WordSection1><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Yes, I read Dong et al</span><span style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>’<span lang=EN-US>s paper published in Frontiers in Neuroscience (2017). In the paper, the REST EEG was expressed in two equations<o:p></o:p></span></span></p><p class=MsoListParagraph style='margin-left:38.0pt;mso-para-margin-left:0gd;text-indent:-18.0pt;mso-list:l0 level1 lfo1;word-break:break-hangul'><![if !supportLists]><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><span style='mso-list:Ignore'>(1)<span style='font:7.0pt "Times New Roman"'>   </span></span></span><![endif]><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>V_REST = R_AR * V_AR<o:p></o:p></span></p><p class=MsoListParagraph style='margin-left:38.0pt;mso-para-margin-left:0gd;text-indent:-18.0pt;mso-list:l0 level1 lfo1;word-break:break-hangul'><![if !supportLists]><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><span style='mso-list:Ignore'>(2)<span style='font:7.0pt "Times New Roman"'>   </span></span></span><![endif]><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>V_REST = V_AR + l*average(V_REST)<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>, where the V_REST in (2) was calculated by using (1). At first, I assumed that (1) was enough to get V_REST, but now I figured out that (2) was used to get better approximation of V_REST. I will check whether my leadfield was calculated properly. The 2<sup>nd</sup> term in (2), i.e., l*average(V_REST), was order of 10^(-20), which was why my V_AR and V_REST were almost the same. Maybe I messed up with some unit conversions. Wish me luck!<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>All the best,<o:p></o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Min-Young<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph;text-autospace:none;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Min-Young Kim, Ph.D.<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph;text-autospace:none;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Tel: +82) 42 - 868 - 5204 (Office)<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph;text-autospace:none;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Email: <a href="mailto:mykim@kriss.re.kr"><span style='color:#0563C1'>mykim@kriss.re.kr</span></a><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph;text-autospace:none;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Quantum Technology Institute<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph;text-autospace:none;word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'>Korea Research Institute of Standards and Science<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='word-break:break-hangul'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕";color:#1F497D'><o:p> </o:p></span></p><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 [mailto:fieldtrip-bounces@science.ru.nl] <b>On Behalf Of </b>Schoffelen, J.M. (Jan Mathijs)<br><b>Sent:</b> Wednesday, October 21, 2020 4:49 PM<br><b>To:</b> FieldTrip discussion list <fieldtrip@science.ru.nl><br><b>Subject:</b> Re: [FieldTrip] EEG rereferencing with REST method<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Hi Min-Young, <o:p></o:p></span></p><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Did you check the original paper that is referenced in the code? I suggest to start there.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Also, re-referencing to the average is achieved by <b>subtraction</b> of the mean over channels, i.e. : data - mean(data)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>The line you refer to is <b>adding</b> the mean of some variable (data_z) to data, which is not average rereferencing.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Best wishes,<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US>Jan-Mathijs<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US><br><br><o:p></o:p></span></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal><span lang=EN-US>On 21 Oct 2020, at 04:06, Min-Young Kim <<a href="mailto:mykim@kriss.re.kr">mykim@kriss.re.kr</a>> wrote:<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Dear FieldTrippers,<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'> <o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>I am working with 19 Ch EEG data acquired with Biosemi system. To test re-reference options, I tried average earlobes, common average, and REST methods in the preprocessing. However, I found that the EEG for REST was almost the same as the EEG for common average. When I looked at the ft_preproc_rereference.m, the line 141 says<span class=apple-converted-space> </span><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>>>data_z = G * pinv(Gar, 0.05) * data;<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>But then in line 144<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>>>data_z = data + repmat(mean(data_z), size(G,1), 1);<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'> <o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Isn</span><span style='font-size:10.0pt;font-family:"맑은 고딕"'>’<span lang=EN-US>t the line 141 enough to generate REST EEG signals? To me, the line 144 seems to be the common average referenced EEG data. I would appreciate if someone explains the meaning of the line 144.<o:p></o:p></span></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'> <o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Thanks,<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Min-Young<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'> <o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Min-Young Kim, Ph.D.<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Tel: +82) 42 - 868 - 5204 (Office)<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Email:<span class=apple-converted-space> </span></span><span lang=EN-US><a href="mailto:mykim@kriss.re.kr"><span style='font-size:10.0pt;font-family:"맑은 고딕";color:#954F72'>mykim@kriss.re.kr</span></a></span><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'><o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Quantum Technology Institute<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'>Korea Research Institute of Standards and Science<o:p></o:p></span></p><p class=MsoNormal style='text-align:justify;text-justify:inter-ideograph'><span lang=EN-US style='font-size:10.0pt;font-family:"맑은 고딕"'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Helvetica",sans-serif'>_______________________________________________<br>fieldtrip mailing list<br></span><span lang=EN-US><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip"><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#954F72'>https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span></a></span><span lang=EN-US style='font-size:10.5pt;font-family:"Helvetica",sans-serif'><br></span><span lang=EN-US><a href="https://doi.org/10.1371/journal.pcbi.1002202"><span style='font-size:10.5pt;font-family:"Helvetica",sans-serif;color:#954F72'>https://doi.org/10.1371/journal.pcbi.1002202</span></a><o:p></o:p></span></p></div></blockquote></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></div></body></html>