Sleep Report
Module name: SleepReport
Package: CEAMSModules 7.4.0
Version: 2.1.0
Overview
Generate a sleep report in CSV file. The sleep report is made of about 300 statistics. These stats are based on the sleep stages and the sleep cycles produced by the module SleepCycleDelimiter.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
string |
None |
The name of the file being analysed, it will be written in the report in the first column. |
|
pandas DataFrame |
None |
A dataframe with all sleep stages of the file to analyze. |
|
array |
None |
Array of sleep cycles. This is the one selected by the user. |
|
dict |
None |
Parameters that were selected by the user to create the sleep cycles. |
|
dict |
None |
Information about the user from the PSG file. |
|
array |
None |
List of REM periods |
|
dict |
None |
Constants used in the report (N_HOURS, N_CYCLES) |
|
bool |
True |
Generate the HTML report if True. |
|
None |
None |
This input is not used in the module. |
|
bool |
True |
Generate the CSV report if True. |
|
string |
None |
The prefix of the report filename |
|
string |
None |
The path to the output directory |
Outputs
Output |
Format |
Description |
|---|---|---|
|
pandas DataFrame |
Dataframe with all statistics of the report. This is then used as an input to another module to produce the HTML report. |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Sleep Report under the Hypnogram Analysis 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.