- MNE-Python version: 0.23.4
- operating system: Mac OS 10.15
I am trying to read in a RemLogic Events export file that looks like the snippet below. Has anyone worked with RemLogic Files before or know how to convert this file to events?
Thank you very much for your help.
RemLogic Event Export
Recording Date: 01/01/2009
Sleep Stage Position Time [hh:mm:ss] Event Duration[s] Location
W Unknown Position 22:09:33 SLEEP-S0 30 ROC-LOC
W Unknown Position 22:10:03 SLEEP-S0 30 ROC-LOC
W Unknown Position 22:10:33 SLEEP-S0 30 ROC-LOC
Hello @robkoneksa and welcome to the forum!
I have never worked with such data, however, parsing it should be relatively easy. This just to say that it shouldn’t be too hard to write some custom code to turn these events into annotations for raw data. Would you know how to get started, or do you need some advice?
After searching more I think there is a solution using:
annot = Annotations(onset, duration, description)
description are numpy arrays parsed from row 21 down of the raw file. Am testing this now
thank you for the welcome too - very impressive set of tools
Just based on the snippet of the file, I am assuming that this was for the CAP Sleep Database. Were you able to resolve this issue? I am in the same boat, but still unsure how to create events. Would the onset just be the hh:mm:ss for each row subtracted by the original time?