You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple question that I'm having trouble finding the answer to in the documentation. I am recording simultaneously from a neuropixels probe (recorded in spikeGLX) and a DBC probe (recorded in open ephys). I'd like to extract the timestamps of the sync events from each stream and save them as .npy files. In open ephys, the sync signal is a ttl pulse fed into digital input 1. I imagine there are straightforward functions for extracting and saving these, but I can't find them!
Thanks!
Gabe
The text was updated successfully, but these errors were encountered:
I feel like @alejoe91 is going to need to be the person to comment on this. I don't actually use ephys or any of the event based code in spikeinterface. So just ping this issue if you don't get a response soon!
This will return an Event object, which will allow you to interact with the event data. There can be events from multiple channel ids, which you can retrieve with the events.channel_ids field.
In particular, calling evts = events.get_events(channel_id) will return a structured numpy array with the following field: dtype([('time', '<f8'), ('duration', '<f8'), ('label', '<U100')]). For open ephys, the label is the channel the event was recorded on, so you can select all events from channel 1 as follows:
Thanks @alejoe91. And is there a way to automatically get the timestamps at which the sync channel went high in the spikeGLX data, or do I need to extract this manually? If not, could be nice to have a built-in function that takes the channel as input and returns timestamps.
Hi Guys,
I have a simple question that I'm having trouble finding the answer to in the documentation. I am recording simultaneously from a neuropixels probe (recorded in spikeGLX) and a DBC probe (recorded in open ephys). I'd like to extract the timestamps of the sync events from each stream and save them as .npy files. In open ephys, the sync signal is a ttl pulse fed into digital input 1. I imagine there are straightforward functions for extracting and saving these, but I can't find them!
Thanks!
Gabe
The text was updated successfully, but these errors were encountered: