Filter Events
Module name: FilterEvents
Package: CEAMSModules 7.4.0
Version: 2.0.0
Overview
Select (filter) events from specific sleep stages.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
Pandas DataFrame (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’]) |
— |
Events to select based on the sleep stages. |
|
pandas DataFrame |
— |
Sleep stages used to select events. |
|
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 |
— |
The group event to select. Can have many group separated by a comma. |
|
String |
— |
The name event to select. Can have many name separated by a comma. |
Outputs
Output |
Format |
Description |
|---|---|---|
|
pandas DataFrame |
Events selected from specific sleep stages (stages_selection). |
|
andas DataFrame |
Sleep stages selected from specific sleep stages (stages_selection). |
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find Filter 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.