Search bioRxiv⌕ Search

bioRxiv · 10.1101/2025.01.13.632603

dlmoR: An open-source R package for the dim-light melatonin onset (DLMO) hockey-stick method

Abstract

The dim-light melatonin onset (DLMO) is a commonly used circadian marker indicating the start time of evening melatonin synthesis in humans. Several quantitative techniques have been developed to determine DLMO from melatonin time series, including fixed- or variable-threshold techniques and the hockey-stick method developed by Danilenko et al. (2014). Here, we introduce dlmoR, an open-source (MIT License) implementation of the hockey-stick method written in R. Our clean-room implementation follows the original algorithm description, supported by iterative validation against the existing binary executable. We benchmarked dlmoR on 112 melatonin time series datasets from two independent studies (Heinrichs and Spitschan (2025); Blume et al. (2024)) and found high agreement with the reference implementation: mean discrepancies were -1.482 {+/-} 21.7 minutes for the Heinrichs and Spitschan (2025) dataset and 1.165 {+/-} 28.5 minutes for the Blume et al. (2024) dataset, with circular correlation coefficients of 0.964 and 0.986, respectively. Paired t-tests (p > 0.05) indicated no systematic difference or bias between methods. Beyond reproducing the hockey-stick algorithm, dlmoR adds capabilities absent from the original executable, including interactive visual diagnostics and bootstrapped confidence intervals, offering qualitative and quantitative views of estimation uncertainty. It supports programmatic, reproducible analysis of melatonin profiles, including batch processing and parameter manipulation. Leveraging this flexibility, we evaluated the sensitivity of the hockey-stick algorithm to controlled changes in sampling schedules, threshold levels, data completeness, and noise. Moderate changes, such as small timing jitter, limited data loss, or modest threshold shifts, kept estimates stable within {+/-}10 minutes, whereas pronounced alterations to sampling schedules, large multi-point deletions, or substantial threshold changes delayed estimates by over 40 minutes or prevented estimation. This analysis reveals fundamental limitations in the algorithms internal mechanics, particularly in how it identifies the onset window and models the melatonin rise, and underscores the need for new uncertainty-aware approaches to DLMO estimation.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Thalji, S. M., Spitschan, M.. 2025-01-13. dlmoR: An open-source R package for the dim-light melatonin onset (DLMO) hockey-stick method. https://doi.org/10.1101/2025.01.13.632603

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Functional validation of allele-specific LMNB1 silencing in patient-derived astrocytes as a therapeutic option for Autosomal Dominant Leukodystrophy

Adult-onset Autosomal Dominant Leukodystrophy (ADLD) is a rare fatal leukodystrophy caused by increased LMNB1 gene dosage, most commonly resulting from duplication of the LMNB1 locus. Because ADLD is a gene dosage disorder, selective reduction of pathological LMNB1 expression represents a rational therapeutic strategy. Although allele-specific RNA interference has previously been shown to lower LMNB1 levels in patient-derived fibroblasts and directly reprogrammed neurons, its therapeutic effects have not been evaluated in disease-relevant human glial cells or using functional efficacy endpoints. Here, we established human induced pluripotent stem cell-derived astrocytes from ADLD patients as a human glial model in which to validate allele-specific LMNB1 silencing across molecular, cellular, and functional readouts. ADLD astrocytes recapitulated increased LMNB1 expression and characteristic nuclear abnormalities and displayed transcriptional alterations affecting extracellular matrix organization, calcium homeostasis, metabolism and RNA processing. Functionally, these cells also exhibited functional phenotypes suitable for therapeutic evaluation: astrocyte-conditioned medium impaired the viability of both murine and human oligodendroglial cultures, while conditioned-medium and direct astrocyte-seeding paradigms revealed impaired post-lesion myelin recovery in lysolecithin-treated cerebellar organotypic slices. Allele-specific LMNB1 silencing restored physiological LMNB1 levels, corrected nuclear abnormalities, attenuated astrocyte-mediated oligodendroglial toxicity, improved post-lesion myelin recovery, and was associated with selective transcriptional programs associated with extracellular support and cholesterol metabolism. Together, these findings provide molecular, cellular, and functional validation of allele-specific LMNB1 dosage correction in patient-derived human astrocytes and offer key support for LMNB1-lowering strategies in disease-relevant human glial cells.

neuroscience↗

Perceptual integration of multisensory haptic, visual, and auditory feedback for roughness discrimination in augmented reality

Understanding how our different senses interact to shape our perception is essential to design realistic and immersive virtual and augmented reality (VR/AR) experiences. The present study investigated how roughness perception can be modulated through haptic, visual, and auditory cues in AR using a vibrotactile wristband. Participants compared virtual textures varying in vibration frequency/amplitude, visual grain size, and friction sound. Results revealed strong linear relationships between stimulus parameters and perceived roughness, with haptic frequency and visual cues driving the highest discrimination performance. Adding non-informative sensory feedback reduced perceptual sensitivity, acting as noise. Individual differences emerged: participants who rated haptic as the easiest modality showed greater sensitivity to haptic variations, while visual-reliant participants performed better with visual cues. We conclude that roughness in AR can be systematically manipulated, but is vulnerable to perceptual interference from irrelevant inputs, where our work provides actionable insights for implementing optimized and adaptive AR/VR interfaces.

neuroscience↗

Structural and functional MRI signatures of Gambling Disorder: a case-control study

Gambling disorder (GD) is a behavioural addiction that may help identify addiction-related neural features without the direct neurobiological effects of a primary substance of dependence. We examined regional grey matter volume (GMV) and resting-state functional connectivity (rsFC) in the same well-characterised sample. Eighteen men with GD and 21 matched healthy controls underwent high-resolution structural and resting-state functional MRI. GMV was quantified across 214 cortical and subcortical regions, and seed-based rsFC analyses focused on striatal subdivisions and mesocorticolimbic regions. Group differences were evaluated using permutation testing and cluster-corrected mixed-effects modelling. GD was associated with lower GMV in the ventromedial prefrontal cortex, orbitofrontal regions and other cortical and subcortical areas, alongside higher GMV in a subset of limbic and default-mode regions. Participants with GD also showed lower connectivity between the limbic striatum and the hippocampus, thalamus and putamen. In exploratory analyses, somatomotor connectivity was positively associated with gambling severity (Problem Gambling Severity Index: Spearman's rho = 0.71, p = 0.003, false-discovery-rate-adjusted q = 0.016). Structural and functional findings overlapped spatially in regions associated with valuation, memory, reward and habit formation, but regional GMV did not mediate group differences in rsFC. These findings are broadly consistent with corticostriatal models of GD and identify candidate circuit-level differences for independent replication. Larger, more diverse and longitudinal samples are required to establish their reproducibility, temporal direction and clinical relevance.

neuroscience↗