PSA Compilation FOOOF
Module name: PSACompilationFOOOF
Package: CEAMSModules 7.4.0
Version: 0.0.0
Overview
Class to analyse and report the PSD output designed specifically for FOOOF analysis. Average the PSD per channel, stage, cycle, hour… Append all subjects in the same output file.
Inputs
Input |
Format |
Default |
Description |
|---|---|---|---|
|
dict |
— |
filename : Recording filename without path and extension.
id1 : Identification 1
id2 : Identification 2
first_name : first name of the subject recorded
last_name : last name of the subject recorded
sex :
…
|
|
list of dicts |
— |
psd : power (µV^2)
freq_bins : frequency bins (Hz)
win_len : windows length (s)
win_step : windows step (s)
sample_rate : sampling rate of the original signal (Hz)
chan_label : channel label
|
|
Pandas Dataframe [‘group’,’name’,’start_sec’,’duration_sec’,’channels’] |
— |
List of events. |
|
Pandas Dataframe [‘group’,’name’,’start_sec’,’duration_sec’,’channels’] |
— |
List of sleep stages that match the PSD input. Sleep stages selected to analyse the spectral power. |
|
float |
— |
The bandwidth of eah mini band division (Hz) |
|
float |
— |
The minimum (first) frequency analyzed. |
|
float |
— |
The maximum (last) frequency analysed.
! Warning : the last frequency is limited to fs/2
|
|
bool |
— |
True to write the total spectral activity. |
|
bool |
— |
True to write the spectral activity per hour. |
|
bool |
— |
True to write the spectral activity per cycle. |
|
String (dict converted into a string) |
— |
{‘defined_option’:’Minimum Criteria’
‘Include_SOREMP’ : ‘1’
‘Include_last_incompl’ : ‘1’
‘Include_all_incompl: : ‘1’,
‘dur_ends_REMP’ = ‘15’,
‘NREM_min_len_first’:’0’,
‘NREM_min_len_mid_last’:’15’,
‘NREM_min_len_val_last’:’0’,
‘REM_min_len_first’:’0’,
‘REM_min_len_mid’:’0’,
‘REM_min_len_last’:’0’,
‘mv_end_REMP’:’0’,
‘sleep_stages’:’N1, N2, N3, N4, R’,
‘details’: ‘Adjust options based on minimum criteria.’}
|
|
String |
— |
Event group to ignore, each group is separated by a comma. |
|
String |
— |
Event name to ignore, each name is separated by a comma. |
|
pandas DataFrame |
— |
List of NREM and REM periods (columns=[‘group’,’name’,’start_sec’,’duration_sec’,’channels’])
where the group is the recording filename.
|
|
dict |
— |
Constants used in the report (N_HOURS, N_CYCLES) |
|
string |
— |
Path and filename to write the output. |
Outputs
This module has no outputs.
Usage in a process
Open Dev Tools -> New process in Snooz.
In the Module Library, find PSA Compilation FOOOF under the Signal Processing 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.