ECG artifact with MEG data

Ingrid Nieuwenhuis ingrid.nieuwenhuis at DONDERS.RU.NL
Thu Jul 30 21:52:47 CEST 2009


Dear Virginie,

You're problem was caused by a too strict check of the input data by
checkdata. This function only allowed raw data as input, but it also works
on component data. I've fixed the bug and the ftp fieldtrip version of
tomorrow should not give the problem. You can also fix the problem yourself
by changing line 165 in freqanalysis into
data = checkdata(data, 'datatype', {'raw', 'comp'}, 'feedback', 'yes',
'hasoffset', 'yes');

Best Ingrid

___________________________________
Ingrid Nieuwenhuis
PhD student
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging
Radboud University Nijmegen, The Netherlands
Email: ingrid.nieuwenhuis at donders.ru.nl
Tel: 0031 (0)24 - 36 10887


> -----Original Message-----
> From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On
> Behalf Of Virginie van Wassenhove
> Sent: Thursday, July 30, 2009 10:40 AM
> To: FIELDTRIP at NIC.SURFNET.NL
> Subject: [FIELDTRIP] ECG artifact with MEG data
>
> Hi everyone,
>
> I am testing the ECG artifact removal using the ICA method described here:
> http://fieldtrip.fcdonders.nl/example/use_independent_component_analysis_i
> ca_to_remove_ecg_artifacts
>
> At the stage where freqanalysis is to be computed on the components
> comp_ecg, I encounter this error, anyone else has experienced such issue?
>
> the input is component data with 204 components and 204 original channels
> ??? Error using ==> checkdata at 388
> This function requires raw data as input.
>
> Error in ==> freqanalysis at 165
> data = checkdata(data, 'datatype', 'raw', 'feedback', 'yes', 'hasoffset',
> 'yes');
>
> Thanks in advance,
> Virginie
>
> ----------------------------------
> The aim of this list is to facilitate the discussion between users of the
> FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG
> and EEG analysis. See also
> http://listserv.surfnet.nl/archives/fieldtrip.html and
> http://www.ru.nl/neuroimaging/fieldtrip.

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.




More information about the fieldtrip mailing list