RemLogic Event Files

  • 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.

regards

Robert

RemLogic Event Export
Patient:	
Patient ID:
Recording Date:	01/01/2009

Events Included:
MCAP-A1
MCAP-A2
MCAP-A3
SLEEP-REM
SLEEP-S0
SLEEP-S1
SLEEP-S2
SLEEP-S3
SLEEP-S4
SLEEP-UNSCORED

Scoring Session:
Scorer Name:
Scoring Time:

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
1 Like

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?

Best wishes,

Richard

Hi Richard

After searching more I think there is a solution using:

annot = Annotations(onset, duration, description)

where onset, duration and 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

regards

Robert

1 Like

Hi Rob,

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?

Thanks,
Saurish