Sleep Stage Events
Module name: SleepStageEvents
Package: CEAMSModules 7.4.0
Version: 2.1.0
Overview
Create a list of event from specific sleep stages during a recording.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
double |
— |
The epoch length in second (only required for sleep_stages as array) |
|
array or pandas DataFrame |
— |
A sleep stage per epoch (an array of stages from 0-9). Valid values are :
0 = Wake
1 = Stage 1
2 = Stage 2
3 = Stage 3
4 = Stage 4
5 = REM
6 = Movement time
7 = Technical time
9 = undetermined
pandas DataFrame of events with field
‘group’: Group of events this event is part of (String)
‘name’: Name of the event (String)
‘start_sec’: Starting time of the event in sec (Float)
‘duration_sec’: Duration of the event in sec (Float)
‘channels’ : Channel where the event occures (String)
|
|
string |
— |
A string of each sleep stage separeted by a comma with the same
valid values as sleep_stages. Example : ‘1,4,5,7’
|
|
String |
0 |
1 to merge selected continuous events, 0 to let them in epochs. |
|
string (optional) |
— |
To rename selected event. The original name is kept if let blank. |
|
— |
0 |
See module settings for configuration details. |
|
— |
0 |
See module settings for configuration details. |
|
String |
0 |
‘1’ to keep only events inluded in the sleep cycles.
‘0’ do not use sleep cycles information.
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
pandas DataFrame |
List of events from specific stages |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Sleep Stage Events under the Events Utilities category.
Drag the module onto the process canvas.
Connect the required inputs from upstream modules (or set values in the Settings tab).
Connect outputs to downstream modules as needed.
Double-click the module to configure parameters in the Settings tab.
Run the process and inspect results in the Results tab.
Note
For general guidance on building processes with modules, see Explore examples.