-
Notifications
You must be signed in to change notification settings - Fork 66
Timestamp awareness of .mat files #210
Comments
I would say the easiest alternative is saving the time offset in the sample zero and then add it for your processing after wave_clus. But if you want you can add a way to read the map files (or just a custom file type with a made-up extension), check a reader code. You have to change just the function to convert samples in milliseconds adding the offset. |
Thanks for your response Fernando! Will try that asap. Two more questions:
I've attached a sample file that I use for testing. Start timestamp: 3305.35936 (seconds) |
|
That's great! The time between the experiment blocs is on the scale of (~5) minutes and the animal was head fixed, but I will try to take care of the timestamp conversion after concatenating (admittedly an intricate procedure). Many thanks for your insight, and for this great package Fernando. |
Hi Fernando!
I've recently came upon wave_clus, and want to use its automatic/batch sorting capabilities for processing of my single channel .mat files. These files were converted from Alphalab .map files (since the latter format is currently not supported by the package) and contain continuous data.
Following the guidelines in the wiki, I made a .mat file with two variables: data (for the continuous data), and sr (for the sampling rate, 25 KHz).
Understandbly however, since there was no indication of start and end times of the recorded data, the timestamps of the results of this spike sorting do not align with the actual timestamps of the recordings.
I wanted to ask if there is a way to make the scripts aware of the actual timestamps of the continuous .mat files, either as an extra variable or file.
Thanks for your insight.
The text was updated successfully, but these errors were encountered: