PyRASA - Spectral parametrization in python based on IRASA
The electric signals generated by physiological activity exhibit both activity patterns that are regularly repeating over time (i.e.periodic) and activity patterns that are temporally irregular (i.e.aperiodic).In recent years several algorithms have been proposed to separate the periodic from the aperiodic parts of the signal, such as the irregular-resampling auto-spectral analysis (IRASA, (Wen & Liu, 2016)).IRASA separates periodic and aperiodic components by up-/downsampling time domain signals and computing their respective auto-power spectra.Finally, the aperiodic component is isolated by averaging over the resampled auto-power spectra removing any frequency-specific activity.The aperiodic component can then be subtracted from the original power spectrum yielding the residual periodic component.PyRASA is a package that is built upon and extends the IRASA algorithm (Wen & Liu, 2016).The package not only allows its users to separate power spectra, but also contains functionality to further parametrize the periodic and aperiodic spectra, by means of peak detection and several slope fitting options (eg.spectral knees).Furthermore, we implemented a function to use the IRASA algorithm in the time-frequency domain allowing for a time-resolved spectral parametrization using IRASA.
Authors
- Nathan Weisz (ORCID: https://orcid.org/0000-0001-7816-0037)
- Thomas Hartmann (ORCID: https://orcid.org/0000-0002-8298-8125)
- Fabian Schmidt (ORCID: https://orcid.org/0000-0002-9839-1614)
Institutions
- University of Salzburg (AT)
- Paracelsus Medical University (AT)
Publication Details
- Journal
- The Journal of Open Source Software
- Published
- 2025-05-17
- DOI
- https://doi.org/10.21105/joss.07852
- Primary Topic
- Neural dynamics and brain function
- Type
- article
- Field-Weighted Citation Impact
- 0.00