[FieldTrip] Update - transfering TF data from SPM

Vladimir Litvak litvak.vladimir at gmail.com
Thu Sep 27 17:32:02 CEST 2012


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




More information about the fieldtrip mailing list