[FieldTrip] Update - transfering TF data from SPM

Duncan Astle Duncan.Astle at mrc-cbu.cam.ac.uk
Thu Sep 27 17:55:12 CEST 2012


Dear Vladimir,

Thanks for your help; I worked out what it wanted. 

Anyone who is interested should contact me and I will take them through it. 

Best,
Duncan

________________________________________________
Dr. Duncan Astle,
Programme Leader Track,
British Academy Research Fellow,
MRC Cognition and Brain Sciences Unit,
Chaucer Road,
Cambridge.
Duncan.Astle at mrc-cbu.cam.ac.uk


-----Original Message-----
From: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] On Behalf Of Vladimir Litvak
Sent: 27 September 2012 16:32
To: FieldTrip discussion list
Subject: Re: [FieldTrip] Update - transfering TF data from SPM

Dear Duncan,

You should look in the code how FT differentiates between different structures and what goes wrong. For instance it might be that it is confused by the fsample field that shouldn't be there. It's been a while since I did something like that and FT code has evolved with more stringent checks now.

Best,

Vladimir

On Thu, Sep 27, 2012 at 4:08 PM, Duncan Astle <Duncan.Astle at mrc-cbu.cam.ac.uk> wrote:
> Dear all,
>
>
>
> I keep thinking that I have done it, in that I think that I have 
> recreated all the information that should be needed in a field trip TF 
> object. I did this by bringing in the extra information from 
> D.fttimelock, and creating the cfg field as if I had run it through 
> FT_FREQANALYSIS. The structure has these fields:
>
>
>
> l5d19 =
>
>
>
>       fsample: 250.0000
>
>         label: {68x1 cell}
>
>         trial: {[68x73 single]}
>
>          time: {[1x376 double]}
>
>     trialinfo: 1
>
>           cfg: [1x1 struct]
>
>     powspctrm: [68x73x376 single]
>
>          freq: [1x73 double]
>
>        dimord: 'chan_freq_time'
>
>
>
> However, when I try and use my file in 'FT_FREQGRANDAVERAGE' , it does 
> not recognise this as a TF object, and produces this error message:
>
>
>
> ??? Error using ==> ft_checkdata at 324
>
> This function requires freq data as input.
>
>
>
> Error in ==> ft_freqgrandaverage at 66
>
>   varargin{i} = ft_checkdata(varargin{i}, 'datatype', 'freq', 
> 'feedback', 'no');
>
>
>
> What is it that I am missing??
>
>
>
> Best,
>
> Duncan
>
>
>
> ________________________________________________
>
> Dr. Duncan Astle,
>
> Programme Leader Track,
>
> British Academy Research Fellow,
>
> MRC Cognition and Brain Sciences Unit,
>
> Chaucer Road,
>
> Cambridge.
>
> Duncan.Astle at mrc-cbu.cam.ac.uk
>
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip




More information about the fieldtrip mailing list