<div dir="ltr">Hi Kathrin,<div>I like having my data saved before (I can apply a montage later) and after repairing channels.  As Hweeling suggests, you will have difficulty grand averaging if the channel of interest is missing from one of your subjects.  </div>

<div><br></div><div>I no longer have your original post and apologize if I am repeating suggestions from others.  Did you review and display your neighbors before repairing channels?  Are you sure your channels had neighbors?  I've used this function for years - when I switched EEG systems, I was unaware of the change in units, and ran into the same problem you are having.  I think you are best off understanding why ft_channelrepair isn't working.  I also found it helpful to have the ft_default settings provide me with feedback:</div>

<div><span style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;font-size:12px;text-align:justify;white-space:pre-wrap;background-color:rgb(247,249,250)">ft_default.trackconfig =  'report';</span><span style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;font-size:12px;text-align:justify;white-space:pre-wrap;background-color:rgb(247,249,250)">   </span></div>

<div><span style="color:rgb(0,0,0);font-family:Consolas,'Andale Mono',Menlo,Monaco,monospace;font-size:12px;text-align:justify;white-space:pre-wrap;background-color:rgb(247,249,250)">ft_default.checkconfig = 'pendantic';</span></div>

<div class="gmail_extra"><br>Hopefully my suggestions help you determine what's going on.  If not, I could review your neighbors, and data structure.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Best,</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">Raquel</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 18, 2014 at 2:58 AM, Hwee Ling Lee <span dir="ltr"><<a href="mailto:hweeling.lee@gmail.com" target="_blank">hweeling.lee@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Kathrin,<div><br></div><div>Re your previous post about repairing bad channels, I've also tried this on Fieldtrip and it works for me. I've not used the triangulation method, but maybe you could try again. I guess it depends on your template. For me, I was using Easycap 64 channels, but maybe it's different for you. Here's how I set up my repair channels options:</div>


<div><br></div><div><div>    % repairing bad channels with averaged of its neighbours</div><div>    load('/home/leeh/Programs/fieldtrip-20140803/template/layout/easycapM11.mat');</div><div>    </div><div>    cfg_neighb.method = 'template';</div>


<div>    cfg_neighb.layout = lay;</div><div>    neighbours = ft_prepare_neighbours(cfg_neighb, data2);</div><div>    </div><div>    cfg = [];</div><div>    if strcmp('S004', dir_analysis{sub}) == 1</div><div>        cfg.badchannel = {'C4', 'TP9', 'FC4', 'C2', 'F4'};</div>


<div>    end</div><div>    cfg.trials = 'all';</div><div>    cfg.method = 'average';</div><div>    cfg.layout = lay;</div><div>    cfg.neighbours = neighbours;</div><div>    data3 = ft_channelrepair(cfg, data2);</div>


</div><div><br></div><div>Re removing bad channels. Your question regarding if this will create problems for your grand average over subjects later. Well, it depends which channels you remove for individual subjects. As far as I'm aware, when you averaged your data across subjects, it will only pick the common channels across subjects for the statistical analyses. When you plot, you can always call for the template layout (e.g. 'EEG1020.lay'). This will plot the available channels across all subjects, and leave out the ones that are not in the data.</div>


<div><br></div><div>I hope this helps.</div><div><br>Cheers,</div><div>Hweeling</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On 17 August 2014 11:23, KatrinH Heimann <span dir="ltr"><<a href="mailto:katrinheimann@gmail.com" target="_blank">katrinheimann@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear all<div>I still have problem with the channel interpolation (just not working at all, without error message, see my previous post). Now I am thinking if I just remove the bad channels for the single subjects and leave it like that. My question is though: Will this create problems for my Grand average over subjects later (as in each subject I remove different channels)? and which layout do I have to use to plot my Grand average data later?</div>



<div>Every help is very welcome</div><div>Cheers</div><span><font color="#888888"><div>k</div></font></span></div>
<br></div></div>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">


=================================================<br>Dr. rer. nat. Lee, Hwee Ling<br>Postdoc<br>German Center for Neurodegenerative Diseases (DZNE) Bonn<br><br>Email 1: hwee-ling.lee<at><a href="http://dzne.de" target="_blank">dzne.de</a><br>


Email 2: hweeling.lee<at><a href="http://gmail.com" target="_blank">gmail.com</a><div><br></div><div><a href="https://sites.google.com/site/hweelinglee/home" target="_blank">https://sites.google.com/site/hweelinglee/home</a><br>


<br>Correspondence Address:<br>Ernst-Robert-Curtius Strasse 12, 53117, Bonn, Germany<br>=================================================<br></div></div>
</div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div></div>