Detections Cohort Review
Module name: DetectionsCohortReview
Package: CEAMSModules 7.4.0
Version: 2.1.0
Overview
Class to read the spindle/sw output files and generate the “Detected events cohort report” file clean or transposed.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
List of String |
[] |
List of filename (including path) to the PSA output file. |
|
dict |
{} |
Keys are the subjects
Each item is a list of 3 elements [original chan label, modified chan label, bool selection flag]
|
|
dict |
{} |
Dict to manage the ROI created at the cohort level
keys are ROIs labels
Each item is a list of 2 elements [channel list to average, blank flag]
|
|
dict |
{} |
Dict to manage the ROI at the subject level
keys are the subjects
Each item is a list of n_ROIs with its selection label [ROI#1 label, bool selection flag]
[ROI#2 label, bool selection flag]
…
|
|
string |
Total |
The activity variable to export/save i.e. ‘Total’, ‘distribution per sleep cycle’, ‘distribution per clock hour’, ‘distribution per hour spent in each sleep stage’. |
|
bool |
0 |
Flag to generate and save the output file with only selected channels. |
|
bool |
1 |
Flag to generate and save the transposed file (1 subject per row) |
|
string |
— |
Output path to save the file clean and/or transposed. |
Outputs
Output |
Format |
Description |
|---|---|---|
|
pandas DataFrame |
Detection events data converted into a dataframe with modifications applied. |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Detections Cohort Review under the Files I/O 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.