[FieldTrip] Still about channel repair (jan-mathijs schoffelen)

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Wed Feb 5 12:47:46 CET 2014


Hi Ivano,

your input seems a bit ambigious and wrong. First of, try using a new 
FieldTrip version. Second, you specify cfg.elecfile, then you set 
data.elec to some layout, and finally you do not use the data variable 
but rawdataout as your input to ft_channelrepair. Resolving these issues 
and, let me repeat, updating to a new FT version, will resolve your issues.

Buono fortuna,
Jörn

On 2/5/2014 10:25 AM, Ivano Triggiani wrote:
> Dear Jan-Mathijs,
>
> Thanks a lot for you quick answer, but I can assure you that I read 
> every document before sending any boring message to community :-D .
> I prepared that electrodes position file (although it is not so clear 
> how to prepare channels position file!), but I don't understand where 
> it has to be declared... I searched for some template scripts but 
> nothing seems to help.
> My problem seems easy. I have a bad channel (P3 referred to AFz, from 
> standard 10-10 System), and I want to 'repair' it...
>
> Ivano
>
> ------------------------------------------------------------------------
>
>
> "No man can wear one face to himself
> and another to the multitude,
> without finally getting bewildered
> as to which one is true."
>
>
> Nathaniel Hawthorne
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 4 Feb 2014 18:08:37 +0100
> From: jan-mathijs schoffelen <jan.schoffelen at donders.ru.nl 
> <mailto:jan.schoffelen at donders.ru.nl>>
> To: Fieldtrip List <fieldtrip at science.ru.nl 
> <mailto:fieldtrip at science.ru.nl>>
> Subject: Re: [FieldTrip] Still about channel repair
> Message-ID: <0AF44F48-1472-4609-86AE-3CFFB5E20D62 at donders.ru.nl 
> <mailto:0AF44F48-1472-4609-86AE-3CFFB5E20D62 at donders.ru.nl>>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Ivano,
> Please have a look at the link attached.
>
> http://fieldtrip.fcdonders.nl/faq/how_are_electrodes_magnetometers_or_gradiometers_described
>
> Best,
> Jan-Mathijs
>
> On Feb 4, 2014, at 6:01 PM, Ivano Triggiani wrote:
>
> > Hi Fieldtrippers,
> >
> > I read many answers about problems on channel repair, but still 
> something miss me to understand hot to fix a channel. I tried with:
> > cfg                = [];
> > replace_channels  = ft_channelselection('gui',hdr.label);
> > cfg.badchannel    = replace_channels;
> > cfg.layout        = 'EEG_layout.lay';
> > cfg.method        = 'triangulation';
> > cfg.elecfile      = 'EEG_cap.sfp';
> > cfg.neighbours    = neighbours;
> > cfg.trials        = 'all';
> > elec.label        = hdr.label;
> > data.elec          = ft_prepare_layout(cfg);
> > repaired_data      = ft_channelrepair(cfg,rawdataout);
> >
> > but it returns:
> > ??? Error using ==> ft_channelrepair at 92
> > the data should contain either an electrode or a gradiometer definition
> >
> > I cannot find into documentation what it means.
> > I guess I have to specify the kind of measurement (EEG/MEG), but where?
> > Furthermore I read the docs about electrode position , channel 
> position and so on, but can we get some example?
> >
> > Thanks a lot,
> >
> > Ivano
> > ------------------------------------------------------------------------
> >
> >
> >
> >
> > "No man can wear one face to himself
> > and another to the multitude,
> > without finally getting bewildered
> > as to which one is true."
> >
> >
> > Nathaniel Hawthorne
> > _______________________________________________
> > fieldtrip mailing list
> > fieldtrip at donders.ru.nl <mailto:fieldtrip at donders.ru.nl>
> > http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
> Jan-Mathijs Schoffelen, MD PhD
>
> Donders Institute for Brain, Cognition and Behaviour,
> Centre for Cognitive Neuroimaging,
> Radboud University Nijmegen, The Netherlands
>
> Max Planck Institute for Psycholinguistics,
> Nijmegen, The Netherlands
>
> J.Schoffelen at donders.ru.nl <mailto:J.Schoffelen at donders.ru.nl>
> Telephone: +31-24-3614793
>
> http://www.hettaligebrein.nl <http://www.hettaligebrein.nl/>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140204/692422d4/attachment.html>
>
> ------------------------------
>
>
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands




More information about the fieldtrip mailing list