[FieldTrip] Problems of reading Blackrock data

Jens Klinzing jens.klinzing at uni-tuebingen.de
Wed May 8 11:18:03 CEST 2019


Hi all,
some time ago I was able to read in Blackrock LFP and events by using 
the provided fieldtrip functions. However, I had to turn event time 
points into samples:

---
cfg = [];
cfg.dataset = 'yourdata.ns2';
data = ft_preprocessing(cfg);

try
    evt = ft_read_event('yourdata.nev');
catch
    warning('No triggers in dataset.');
    evt = [];
end

for i=1:numel(evt)
    evt(i).sample = round(evt(i).sample * data.hdr.Fs);
end
---

The Blackrock folks have their Matlab toolkit on Github, but seem not 
very responsive to pull requests.
https://github.com/BlackrockMicrosystems/NPMK

I guess the challenge would be to use their code for reading in the spikes:
spikes = openNEV('yourdata.nev')

...and to turn the result into fieldtrip spike format, as described here:
http://www.fieldtriptoolbox.org/reference/ft_datatype_spike/

Right? I currently don't work with spike data. Jichen, are you up for 
taking a look at it?

Jens



Schoffelen, J.M. (Jan Mathijs) wrote on 05/05/2019 12:56:
> Hi,
>
> There is a (by now fixed: it used to be broken) link on the getting 
> started page that you refer to in your message that contains more 
> information about the support for blackrock spike data.
>
> http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=2964
>
>
> Long story short: the neuroshare implementation is not functional and 
> a dead end street. We have been working on support for blackrock data 
> quite a while ago, but nobody has finished it. As far as I know, 
> support for lfp data is more or less implemented, I don¿t think that 
> spike reading is fully supported by now. Feel free to re-open the bug 
> constructrively, and provide a working implementation.
>
> Best wishes,
> Jan-Mathijs
>
>> On 4 May 2019, at 12:13, ¿¿¿ <wjcpsysci at gmail.com 
>> <mailto:wjcpsysci at gmail.com>> wrote:
>>
>> Hello, I am try to read Blackrock data of NEV, like the step in the 
>> website http://www.fieldtriptoolbox.org/getting_started/blackrock/
>> I was using |ft_read_spike| , followed this code:
>> |spike = ft_read_spike(filename, 'spikeformat', 'neuroshare');|
>> and found an error that root in |ns_SetLibrary|.
>> That function only use one function of 'mexprog', there are no such 
>> function but an file of 'mexprog.dll'.
>> How could I use this file?
>> Thanks
>>
>> Jichen Wang
>> _______________________________________________
>> fieldtrip mailing list
>> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>> https://doi.org/10.1371/journal.pcbi.1002202
>
>
>
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20190508/36130419/attachment-0002.html>
-------------- next part --------------
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202


More information about the fieldtrip mailing list