REMs to mini-epochs
Module name: REMsEventsToMiniEpochs
Package: CEAMSModules 7.4.0
Version: 0.0.0
Overview
Class to generate a list of mini-epochs identified as a MOR_DET or NO_DET based on the list of REM detections.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
string |
— |
The name of the current PSG file. |
|
Pandas DataFrame (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’]) |
— |
List of detections from REMDetectorShotGroup |
|
Pandas DataFrame (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’]) |
— |
List of mini-epochs to identify as a MOR_DET or NO_DET.
|
|
dict |
None |
Dictionary of group and name of the mini-epoch.
‘mini_epoch_group’: ‘DET_MOR’
‘mini_epoch_name_Phasic’: ‘Snooz_MOR_Phasic’
‘mini_epoch_name_Tonic’: ‘Snooz_MOR_Tonic’
|
Outputs
Output |
Format |
Description |
|---|---|---|
|
Pandas DataFrame (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’]) |
List of mini-epochs identified as a MOR_DET or NO_DET. |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find REMs to mini-epochs 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.