<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear community, <div class=""><br class=""></div><div class="">I have several questions regarding source localization. Basically I have never done source localization with EEG so the questions may be a bit broad. </div><div class=""><br class=""></div><div class="">I have conducted two similar experiments, one in MRI and one in EEG (with Biosemi, different participants). Basically we observe differences in two experimental conditions in EEG but not between the two same conditions in MRI. We thus would like to localize the source of the differences between the ERPs in EEG, and then to apply this to MRI data. The EEG has 64 electrodes (classic headcap) and we do not have MRI anatomical scan for the EEG participants. </div><div class=""><br class=""></div><div class="">Questions:</div><div class="">(1) I don’t have anatomical scans for EEG participants, I was wondering what was the best option to select a standard head model file. (I have found this standard_mi.mat file here: <a href="https://github.com/fieldtrip/fieldtrip/blob/master/template/headmodel/standard_mri.mat" class="">https://github.com/fieldtrip/fieldtrip/blob/master/template/headmodel/standard_mri.mat</a>) but I don’t know if it’s the best head model for my set up or not. Would you have some recommendations?</div><div class=""><br class=""></div><div class="">(2)  I have also tried to start a script for source localization. I first timelock the data as follow, after preprocessing, which works well.</div><div class=""><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">        cfg = [];</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">        cfg.trials = <span style="color: #b245f3" class="">'all'</span>;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">        cfg.covariance = <span style="color: #b245f3" class="">'yes'</span>;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">        cfg.covariancewindow = [-inf 0]; </div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">        AVG_ERP_Shock_Source = ft_timelockanalysis(cfg, cleandata);</div><p style="margin: 0px; font-size: 10px; font-family: Courier; min-height: 12px;" class="">        <br class="webkit-block-placeholder"></p></div><div class="">And then I calculate the inverse solution:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; font-family: Courier; color: rgb(178, 69, 243);" class=""><span style="color: #000000" class="">vol = ft_read_headmodel(</span>'/Volumes/Commander_Empathy_EEG/standard_mri.mat'<span style="color: #000000" class="">);</span></div><p style="margin: 0px; font-size: 10px; font-family: Courier; min-height: 12px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg               = [];</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg.method        = <span style="color: #b245f3" class="">'mne'</span>;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg.grid          = <span style="color: #b245f3" class="">'biosemi64.lay'</span>;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg.headmodel     = vol;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg.mne.prewhiten = <span style="color: #b245f3" class="">'yes'</span>;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg.mne.lambda    = 3;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">cfg.mne.scalesourcecov = <span style="color: #b245f3" class="">'yes'</span>;</div><div style="margin: 0px; font-size: 10px; font-family: Courier;" class="">sourceSHOCK          = ft_sourceanalysis(cfg, AVG_ERP_Shock_Source);</div><div style="margin: 0px; font-size: 12px; font-family: Courier; min-height: 14px;" class=""><br class=""></div></div><div style="margin: 0px; font-size: 12px; font-family: Courier; min-height: 14px;" class=""><span style="font-family: Garamond; font-size: 13px;" class="">But here </span><span style="font-family: Garamond; font-size: 13px;" class="">ft_read_headmodel is not recognized as a function (</span>Undefined function or variable ‘ft_read_headmodel’).</div><div style="margin: 0px; min-height: 14px;" class="">Would you know what is the issue?</div><div style="margin: 0px; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; min-height: 14px;" class="">(3) For cfg.grid, I used the classical electrode headcap from biosemi so I though that using the biosemi64.lay would be good since it contains the position of each electrode, but I am not sure at all that this is the case. Would someone know more about this?</div><div style="margin: 0px; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; min-height: 14px;" class="">(4) And then a final question, is is better to compute a source localization for each participant individually and then to average them, or to perform the source localization on the grand average? </div><div style="margin: 0px; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; min-height: 14px;" class="">Many thanks for your help!!</div><div style="margin: 0px; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; min-height: 14px;" class="">Emilie</div><div class=""><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></div></div></div></div></div></div></div>
</div>
<br class=""></div></body></html>