bioRxivBioinformaticsPreprint
Identification and characterisation of variable rhythms using CosinorPy
- Citations
- 2
Abstract
Background and objectiveAnalysis of rhythmic data has become an important aspect in biological and medical science, as well as other fields of science. Parametric methods based on trigonometric regression reflect several advantages in comparison to their alternatives. Software packages for parametric analysis of rhythmic data are mostly based on a single-component cosinor model, which is not able to describe asymmetric rhythms that might reflect multiple peaks per period. Moreover, a basic cosinor model is unable to describe rhythmicity that is changed with time. Here, we present some important extensions of the recently developed CosinorPy Python package to address these gaps. MethodsThe extended package CosinorPy provides the functionalities to perform a detailed individual or comparative analysis of rhythms reflecting (1) multiple asymmetric peaks per period, (2) forced, damped, or sustained rhythms, and (3) shift of the midline statistics of rhythm over time. In all these cases the package is able to assess the (differential) rhythmicity parameters, evaluate their significance and confidence intervals, and provide a set of publication-ready figures. ResultsWe demonstrate the package in some typical scenarios that incorporate different types of rhythmic dynamics, such as asymmetric, damped, and forced rhythms. We show that the proposed implementation of a generalised cosinor model is capable of reducing the error of estimated rhythmicity parameters in cases that tend to be problematic for alternative models. The implementation of the presented package is available together with scripts to reproduce the reported results at https://github.com/mmoskon/CosinorPy. ConclusionAccording to our knowledge, CosinorPy currently presents the only implementation that is able to cover all the above scenarios using a parametric model with vast applications in biology and medicine as well as in other scientific domains.
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- GLMMcosinor: Flexible Cosinor Modeling to Characterize Rhythmic Time Series Using a Generalized Linear Mixed Modeling Framework
Rex Parsons, Oliver Jayasinghe, … Oliver Rawashdeh·bioRxiv·Apr 10, 2024
- Time distributed data analysis by Cosinor.Online application
Ľuboš Molčan·bioRxiv·Jan 18, 2023
- PyCycleBio: modelling non-sinusoidal-oscillator systems in temporal biology
Alex Bennett, George M. H. Birchenough, Daniel Bojar·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- PowerCHORD: constructing optimal experimental designs for biological rhythm discovery
Turner Silverthorne, Matthew Carlucci, … Adam R. Stinchcombe·bioRxiv·May 19, 2024
- Analytical Choices Impact the Estimation of Rhythmic and Arrhythmic Components of Brain Activity
Jason da Silva Castanheira, Mathieu Landry, Stephen M. Fleming·bioRxiv·Sep 24, 2025
- Introducing circStudio, a Python package for preprocessing, analyzing and modeling actigraphy data
Daniel Marques, Carina Fernandes, … Nuno L. Barbosa‐Morais·bioRxiv·Apr 1, 2026