PSA Pics Generator
Module name: PSAPicsGenerator
Package: CEAMSModules 7.5.0
Version: 2.0.1
Overview
group-level plots (individual groups, single or all channels)
Cohort-level plots (group averages with standard deviation bands)
Support for multiple sleep stages, frequency ranges, and log/linear scales
Automatic color expansion for scenarios with many recordings
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
dict |
— |
Keys are filenames. Each file contains a TSV file with PSA data. |
|
dict |
— |
Keys are filenames. Values are the group label for cohort analysis. |
|
dict |
— |
Keys are ROI names and values are [channels_list, blank_flag].
blank_flag=True requires all channels to be present.
|
|
dict |
— |
Keys are channel labels or ROI names. Values are boolean selection flags. |
|
dict |
True |
Plotting parameters with keys:
- ‘cohort_avg’, ‘cohort_sel’, ‘group_avg’, ‘group_sel’: bool flags for plot types
- ‘display’: str, display mode (‘all’, ‘mean’, ‘mean_std’)
- ‘force_axis’: bool or [xmin, xmax, ymin, ymax]
- ‘output_folder’: str, path to save figures
- ‘freq_range’: [float, float], frequency range to display
- ‘log_scale’: bool, use log scale for y-axis
- ‘show_legend’: bool, show legend on plots
- ‘font’: str, font family for all text
- ‘fontsize’: int, font size for axis labels and legend
- ‘figure_width’: float, figure width in inches
- ‘figure_height’: float, figure height in inches
- ‘sleep_stage_selection’: list of str, sleep stages to include
- ‘activity_var’: str, variable for activity (‘total’, ‘clock_h’, ‘stage_h’, ‘cyc’)
- ‘hour’: int, hour for ‘clock_h’ and ‘stage_h’ variables
- ‘cycle’: int, cycle for ‘cyc’ variable
|
|
dict |
— |
Color palettes for different plot types with keys:
- ‘group_avg’, ‘group_sel’, ‘cohort’: list of color strings
|
Outputs
This module has no outputs.
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find PSA Pics Generator 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.