[FieldTrip] Is it a bug for ft_spike* functions or something wrong with my data?
Jing Wang
wljj09 at gmail.com
Tue May 29 20:09:29 CEST 2012
Dear Robert,
Thank you so much for letting me know this. It is really very helpful.
Thanks a lot.
I will work on that!
Best wishes
Jing
2012/5/29 Robert Oostenveld <r.oostenveld at donders.ru.nl>
> Dear Jing,
>
> The missing ft_write_spike function has been re-added to the release
> version as of last week, it was also reported missing by someone else in a
> personal mail by me.
>
> The specest_nanfft function should be located in the fieldtrip/private
> directory, where ft_spiketriggeredspectrum should be able to find it.
>
> best regards,
> Robert
>
>
>
>
> On 21 May 2012, at 15:08, Jing Wang wrote:
>
> > Hello Eelke,
> >
> > Thank you very much for your answers. I will file this bug in Bugzilla
> tracking system.
> >
> > I also found that there are some functions which are used in the
> ft_spike* function are not in the Fieldtrip. One is specest_nanfft.m which
> is used in ft_spiketriggeredspectrum.m and another is ft_write_spike which
> is used in ft_spikedetection. We could not find the two functions in
> Fieldtrip to run these main functions about spike analysis.
> >
> > Whether it has been changed names or put somewhere else? Would you
> please give me some idea about that?
> > Thanks again!
> >
> > Best Regards
> >
> > Jing
> >
> >
> >
> > 2012/5/21 Eelke Spaak <eelke.spaak at donders.ru.nl>
> > Dear Jing Wang,
> >
> > This is a bug in the functions you mention. ft_checkconfig should be
> > called like this:
> >
> > cfg = ft_checkconfig(cfg, 'forbidden', {'inputfile', 'outputfile'});
> >
> > so with the forbidden options grouped in a cell array, rather than as
> > it was done in the code snippet you posted. There also seem to be a
> > few other minor bugs in the ft_getopt/checkopt calls.
> >
> > Could you file a bug on this on our Bugzilla tracking system?
> > http://bugzilla.fcdonders.nl/ Thank you for reporting this!
> >
> > Best,
> > Eelke
> >
> > On 21 May 2012 13:44, Jing Wang <wljj09 at gmail.com> wrote:
> > > Dear Fieldtrip developers and users,
> > >
> > > I have found same error when I using ft_spiketriggeredaverage and
> > > ft_spiketriggeredspectrum.m.
> > > After I run the following script, an error appeared at line 51
> > > cfg=ft_checkconfig. This error also is same when I run
> > > ft_spiketriggeredspectrum.m. But after I use comment to silent a part
> of
> > > these functions. it could work well. It is same for both the latese and
> > > 20120420 version of Fieldtrip. I donnot know whether it is a bug or
> > > something wrong with my data? Would anybody who knows can help me?
> > > That will be really appreciated! Thanks in advance!
> > > Jing
> > >
> > > I have append spike and LFP into data. The folloing is the script and
> error
> > > information.
> > > cfg=[];
> > > cfg.timwin = [-0.01 0.01];
> > > cfg.spikechannel =data.label{1};
> > > cfg.channel = data.label{2};
> > > cfg.keeptrials ='yes';
> > > cfg.feedback='yes';
> > > [timelock] = ft_spiketriggeredaverage(cfg, data);
> > >
> > > Error using ft_getopt
> > > the first input should contain key-value pairs
> > > Error in ft_checkconfig (line 83)
> > > renamed = ft_getopt(varargin, 'renamed');
> > > Error in ft_spiketriggeredaverage (line 51)
> > > cfg = ft_checkconfig(cfg, 'forbidden', 'inputfile', ...
> > >
> > > For ft_spikertriggerespectrum, I silent the line like this, the script
> can
> > > work well.
> > > % cfg = ft_checkconfig(cfg, 'forbidden', 'inputfile', ...
> > > % 'outputfile'); % see
> > > http://bugzilla.fcdonders.nl/show_bug.cgi?id=1056
> > >
> > > For ft_spiketriggeredaverage, the script can work when I silent these
> part.
> > > it can work well.
> > > % cfg.timwin = ft_getopt(cfg, 'timwin',[-0.1 0.1]);
> > > % cfg.spikechannel = ft_getopt(cfg,'spikechannel', []);
> > > % cfg.channel = ft_getopt(cfg,'channel', 'all');
> > > % cfg.keeptrials = ft_checkopt(cfg,'keeptrials', 'char', {'yes',
> 'no'});
> > > % cfg.feedback = ft_checkopt(cfg,'feedback', 'yes');
> > >
> > > _______________________________________________
> > > 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
> >
> > _______________________________________________
> > fieldtrip mailing list
> > fieldtrip at donders.ru.nl
> > http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at science.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120529/d9df759c/attachment-0002.html>
More information about the fieldtrip
mailing list