[FieldTrip] channelrepair issue

Jim Li megjim1 at gmail.com
Thu Jul 7 21:26:26 CEST 2011


Dear Fieldtrip developer,

Can anybody help me with this channel-repair issue I've been having? I can
provide the raw data if you need. I really want to solve the problem, you
know.

Thanks a lot,

Jim

On Thu, Jul 7, 2011 at 2:22 PM, Jim Li <megjim1 at gmail.com> wrote:

> Hi Odelia,
>
> Yes, I downloaded the latest version of Fieldtrip and tried your suggestion
> "cfg.neighbourdist = 0.03",   but it still weirdly uses the far-away
> channels like A121 to do the channel-repair for A234 (these two channels are
> 24.1172cm apart!).  Here is the detail:
>
> ---------------------------
>  cfg                         = [];
> cfg.dataset                 = 'e,rfhp0.1Hz';
> cfg.trialdef.eventtype      = 'TRIGGER';
> cfg.trialdef.eventvalue     = 320;
>  cfg.trialdef.prestim        = 1;
> cfg.trialdef.poststim       = 1;
> cfg                         = ft_definetrial(cfg);
> cfg.blc                     = 'yes';                              % do
> baseline correction with the complete trial
>
> cfg.blcwindow               = [-1 0];
> cfg.channel                 = {'MEG'};
> raw_DATA                    = ft_preprocessing(cfg);
>
>
> cfg = [];
> cfg.badchannel = {'A234'};
> cfg.neighbourdist =  0.03;
>
> [raw_DATA] = ft_channelrepair(cfg, raw_DATA)
>
> ---------------------------------------------------------------------
>
> And here is the outcome: -----------------------------
>
> the input is raw data with 248 channels and 201 trials
> repairing channel A234
>   using neighbour A121
>   using neighbour A143
>   using neighbour A173
>   using neighbour A8
>
> repairing bad channels for trial 1
> repairing bad channels for trial 2
> repairing bad channels for trial 3
> repairing bad channels for trial 4
> repairing bad channels for trial 5
> repairing bad channels for trial 6
> repairing bad channels for trial 7
> repairing bad channels for trial 8
> repairing bad channels for trial 9
> repairing bad channels for trial 10
> ....
>
> -------------------------
>
> Thank you.
>
> Jim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110707/588030ab/attachment-0002.html>


More information about the fieldtrip mailing list