[FieldTrip] error with Computing cross-correlations between spike trains tutorial

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Sat Feb 20 12:49:35 CET 2016


Hi Valentina,

Danial Arabali (in BCC) has also encountered this, and filed a bug on bugzilla.fieldtriptoolbox.org<http://bugzilla.fieldtriptoolbox.org>, as bug 3058. Perhaps you could create yourself an account, add yourself on the CC-list of this bug, and team up with Danial to do some extra detective work. You seem to be on the right track, with respect to your debugging attempt. I suspect it’s probably relatively easy to solve. Note that the error relating to the issue in ft_checkconfig has been fixed in the current version of the code, that can be easily obtained from github.com/fieldtrip<http://github.com/fieldtrip>

The ft_checkconfig bug is referenced here:

http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3062

The current issue is referenced here:

http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3058

Best,
Jan-Mathijs




On Feb 19, 2016, at 6:17 PM, Valentina Mione <valentina.mione at uniroma1.it<mailto:valentina.mione at uniroma1.it>> wrote:

Hi everyone,

I am Valentina and I am a fresh new FieldTrip user.

I was following the tutorial http://www.fieldtriptoolbox.org/tutorial/spike, in particular the cross correlation part with the example data ftp://ftp.fieldtriptoolbox.org/pub/fieldtrip/tutorial/spike/p029_sort_final_01.nex, but I'm stuck with a MatLab error.

I loaded the data exactly how it's explained and I defined the channels and the trials (just copying the matlab instructions) and all worked fine.

Then I followed this part of the tutorial:

 and then compute the cross-correlogram (and the shift-predictor cross-correlogram) by

cfg             = [];
cfg.maxlag      = 0.2; % maximum 200 ms
cfg.binsize     = 0.001; % bins of 1 ms
cfg.outputunit  = 'proportion'; % make unit area
cfg.latency     = [-2.5 0];
cfg.vartriallen = 'no'; % do not allow variable trial lengths
cfg.method      = 'xcorr'; % compute the normal cross-correlogram
Xc = ft_spike_xcorr(cfg,spikeTrials);


But after processing all the 600 trials the ft_spike_xcorr function interrupts working with the error:

"??? Subscript indices must either be real positive integers or logicals.

Error in ==> ft_spike_xcorr at 350

stat.label       = spike.label(chansel);"

Trying to understand the error I set I breakpoint on the 350 line of the script and I got  another error in ft_checkconfig.m

"??? Error using ==> ft_checkconfig at 208

The field cfg.progress is not allowed

Error in ==> ft_spike_xcorr at 126

cfg = ft_checkconfig(cfg, 'allowed', {'latency', 'trials',

'keeptrials', 'method', 'channelcmb', 'vartriallen', 'debias',

'maxlag', 'binsize', 'outputunit'});"


I hope someone can help me because I really can't understand what's wrong (I feel there is a problem with the selection of the channels maybe) and I just followed the instructions.


Best,


Valentina

_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.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/20160220/7e325a6d/attachment-0002.html>


More information about the fieldtrip mailing list