REMs Details
Module name: REMsDetails
Package: CEAMSModules 7.4.0
Version: 2.2.0
Overview
To average REMs events characteristics such as duration, amplitude and density per stage and sleep cycle.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
string |
— |
The recording path. |
|
dict |
— |
filename : Recording filename without path and extension.
id1 : Identification 1
id2 : Identification 2
first_name : first name of the subject recorded
last_name : last name of the subject recorded
sex :
…
|
|
a list of SignalModel |
— |
Each item of the list is a SignalModel object as described below:
signal.samples : The actual signal data as numpy list
signal.sample_rate : the sampling rate of the signal
signal.channel : current channel label
signal.start_time : The start time of the signal in sec
signal.end_time : The end time of the signal in sec
(for more info : look into common/SignalModel)
|
|
Pandas DataFrame |
— |
REMs events defined as (columns=[‘group’, ‘name’, ‘start_sec’,’duration_sec’,’channels’]) |
|
Pandas DataFrame |
— |
Artifact events defined as (columns=[‘group’, ‘name’,’start_sec’,’duration_sec’,’channels’])
Artifacts are forced to zeros for the detection (with a tukey window)
|
|
Dict |
— |
Options used to define the cycles |
|
Pandas DataFrame |
— |
Events defined as (columns=[‘group’, ‘name’,’start_sec’,’duration_sec’,’channels’])
The sleep stage group has to be commons.sleep_stage_group “stage” and
the sleep cycle group has to be commons.sleep_cycle_group “cycle”.
|
|
Dict |
— |
rems_event_name : String label of the event name
stage_sel : Sleep stages selection to detect REMs in.
|
|
dict |
{} |
Constants used in the report (N_HOURS, N_CYCLES) |
|
string |
— |
Path and filename to save the REMs characteristics for the cohort. |
|
bool or string |
False |
True : generate a file per subject of the characteristics of each REM event. |
Outputs
This module has no outputs.
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find REMs Details 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.